Function at 0x40bdc0
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c8442
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x54e864]
xor eax, esp
mov dword [esp + 0x14c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54e864]
xor eax, esp
push eax
lea eax, [esp + 0x164]
mov dword fs:[0], eax
mov eax, dword [esp + 0x180]
mov esi, dword [esp + 0x178]
xor ebx, ebx
push 0xa0
mov ebp, ecx
lea ecx, [esp + 0xc4]
push ebx
push ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0xc8], ebx
call sub.MSVCR100.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [esi + 0xb8]
mov ecx, dword [esi + 0xc4]
mov dword [esp + 0x18], eax
mov eax, 3
mov dword [esp + 0xbc], edx
mov edx, dword [esi + 0xb4]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xdc], eax
mov eax, 0xf
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xd4], edx
mov byte [esp + 0x17], bl
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov dword [esp + 0x16c], ebx
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
push 0x40
mov byte [esp + 0x170], 1
mov dword [esp + 0x38], ebx
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
cmp edi, ebx
je 0x40c355
mov dword [edi], edi
mov dword [esp + 0x30], edi
mov dword [edi + 4], edi
mov byte [esp + 0x16c], 2
mov ecx, dword [esp + 0xd4]
cmp byte [esp + 0x184], 0
je 0x40bf25
mov eax, dword [sym.imp.imagehlp.dll_SymGetModuleBase]
mov ecx, dword [sym.imp.imagehlp.dll_SymFunctionTableAccess]
push ebx
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x24]
push ebx
push ebx
lea edx, [esp + 0xd0]
push edx
push eax
push ecx
push 0x14c
call dword [sym.imp.imagehlp.dll_StackWalk]
mov ecx, dword [esp + 0xd4]
jmp 0x40bf6a
mov edx, dword [ecx + 4]
mov dword [esp + 0xbc], edx
mov ebx, dword [ecx]
test bl, 3
je 0x40bf3a
xor eax, eax
jmp 0x40bf68
cmp ebx, ecx
ja 0x40bf42
xor eax, eax
jmp 0x40bf68
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x40bf5a
mov ecx, dword [esp + 0xd4]
xor eax, eax
jmp 0x40bf68
mov ecx, ebx
mov dword [esp + 0xd4], ecx
mov eax, 1
xor ebx, ebx
mov edx, dword [esp + 0x2c]
mov esi, edx
inc edx
mov dword [esp + 0x2c], edx
cmp esi, dword [esp + 0x17c]
jl 0x40bee5
cmp eax, ebx
je 0x40c138
cmp ecx, ebx
je 0x40c138
mov edx, dword [ebp + 0x90]
lea eax, [esp + 0x68]
push eax
mov eax, dword [edx]
or eax, 0x100
push eax
push ecx
mov ecx, dword [esp + 0xc8]
push ecx
mov ecx, ebp
call fcn.00409ce0
cmp byte [esp + 0x17], 0
jne 0x40bfd6
push 0xc
push ebx
push str.__dbg_util::
lea ecx, [esp + 0x74]
call fcn.004061c0
cmp eax, 0xffffffff
jne 0x40bede
push 2
push 0x4d20f8
lea ecx, [esp + 0x70]
mov byte [esp + 0x1f], 1
call fcn.00406bb0
mov edx, dword [ebp + 0x90]
test byte [edx], 2
je 0x40c039
mov ecx, dword [esp + 0xbc]
lea eax, [esp + 0x4c]
push eax
push ecx
mov ecx, ebp
call fcn.00408640
push 8
push 0x4d2a30
push ebx
lea ecx, [esp + 0x58]
call fcn.004072d0
push 3
push 0x4d2a2c
lea ecx, [esp + 0x54]
call fcn.00406bb0
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x20], eax
jg 0x40c039
mov dword [esp + 0x20], eax
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x54]
mov esi, 0xf
push edx
lea ecx, [esp + 0x90]
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], 0
call fcn.00406cd0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0xac]
mov byte [esp + 0x178], 3
mov dword [esp + 0xc0], esi
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], 0
call fcn.00406cd0
mov edx, dword [edi + 4]
lea ecx, [esp + 0x84]
push ecx
push edx
push edi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x178], 4
call fcn.0040b640
mov ecx, 0x4924923
sub ecx, dword [esp + 0x34]
cmp ecx, 1
jb 0x40c12d
inc dword [esp + 0x34]
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
cmp dword [esp + 0xb4], 0x10
mov byte [esp + 0x16c], 2
jb 0x40c0f4
mov edx, dword [esp + 0xa0]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x98], 0x10
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], 0
jb 0x40bede
mov eax, dword [esp + 0x84]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x40bede
push str.list_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
mov ebx, dword [edi]
push 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov esi, eax
mov dword [esp + 0x24], esi
cmp esi, 0xf
je 0x40c168
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 0xf
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov byte [esp + 0x16c], 5
cmp ebx, edi
je 0x40c2a0
mov ecx, dword [ebp + 0x90]
test byte [ecx], 2
je 0x40c212
mov edx, dword [esp + 0x20]
sub edx, dword [ebx + 0x18]
push 0x20
lea esi, [ebx + 8]
push edx
mov ecx, esi
call fcn.00407120
mov eax, dword [esi + 0x10]
inc eax
push eax
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
cmp dword [esi + 0x14], 0x10
mov edi, eax
jb 0x40c1b2
mov esi, dword [esi]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x174]
cmp eax, 0xfffffffe
jne 0x40c1fe
mov eax, dword [ebp + 0x38]
push 2
push 0
mov dword [esp + 0x20], 0
mov ecx, dword [eax]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [esp + 0x1c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40c209
push 0
push edi
push eax
mov ecx, ebp
call fcn.00407ef0
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [ebx + 0x34]
lea edi, [ebx + 0x24]
inc eax
push eax
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
cmp dword [edi + 0x14], 0x10
mov esi, eax
jb 0x40c22c
mov edi, dword [edi]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x174]
cmp eax, 0xfffffffe
jne 0x40c278
mov edx, dword [ebp + 0x38]
push 2
push 0
mov dword [esp + 0x20], 0
mov eax, dword [edx]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp + 0x38]
push eax
mov eax, dword [edx]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40c283
push 0
push esi
push eax
mov ecx, ebp
call fcn.00407ef0
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
mov ebx, dword [ebx]
add esp, 4
cmp ebx, dword [esp + 0x1c]
jne 0x40c178
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40c2b0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov esi, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
cmp esi, edi
je 0x40c2e2
jmp 0x40c2c0
mov edi, dword [esi]
lea ecx, [esp + 0x38]
push esi
push ecx
call fcn.0040b520
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 0xc
mov esi, edi
cmp edi, dword [esp + 0x1c]
jne 0x40c2c0
mov edi, dword [esp + 0x1c]
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov esi, 0x10
add esp, 4
cmp dword [esp + 0x60], esi
jb 0x40c303
mov edx, dword [esp + 0x4c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
cmp dword [esp + 0x7c], esi
jb 0x40c32b
mov eax, dword [esp + 0x68]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x164]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14c]
xor ecx, esp
call fcn.004c6212
add esp, 0x15c
ret 0x14
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x28], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x51e22c
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x48], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3