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

Disassembly:
push 0xffffffffffffffff
push 0x4531a3
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x468400]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
mov edi, dword [esp + 0x180]
mov eax, dword [esp + 0x188]
mov eax, dword [eax + 0x18]
test eax, eax
mov eax, edi
jne 0x40bab8
push 0x45ba84
call fcn.0040c7c0
add esp, 4
xor al, al
jmp 0x40c2d6
push 0x45ba18
call fcn.0040c7c0
mov ecx, dword [esp + 0x18c]
mov eax, dword [ecx + 0x14]
mov esi, dword [eax]
mov eax, dword [ecx]
add esp, 4
mov ebx, eax
mov ebp, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebp
test eax, eax
jne 0x40bcee
call fcn.00436e91
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x40bb00
call fcn.00436e91
mov edx, dword [esp + 0x188]
mov eax, dword [edx + 0x18]
mov ecx, dword [esi]
push eax
push 0x45ba2c
mov eax, edi
mov dword [esp + 0x20], ecx
call fcn.0040c7c0
add esp, 8
cmp byte [esp + 0x18c], 1
jne 0x40c2f2
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x188]
mov esi, dword [eax + 0x14]
mov eax, dword [eax]
test eax, eax
je 0x40bb48
cmp eax, dword [esp + 0x14]
je 0x40bb4d
call fcn.00436e91
cmp esi, edi
je 0x40c14d
test ebx, ebx
jne 0x40bcf5
call fcn.00436e91
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x40bb6e
call fcn.00436e91
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40bcfc
call fcn.00436e91
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x40bb8b
call fcn.00436e91
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 8]
ja 0x40be18
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40bd03
call fcn.00436e91
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x40bbb4
call fcn.00436e91
test ebx, ebx
jne 0x40bd0a
call fcn.00436e91
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x40bbcd
call fcn.00436e91
test ebx, ebx
jne 0x40bd11
call fcn.00436e91
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x40bbe6
call fcn.00436e91
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp + 8]
cmp dword [edi + 8], ecx
ja 0x40be18
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40bd18
call fcn.00436e91
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x40bc12
call fcn.00436e91
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40bd1f
call fcn.00436e91
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x40bc2f
call fcn.00436e91
test ebx, ebx
jne 0x40bd26
call fcn.00436e91
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x40bc48
call fcn.00436e91
test ebx, ebx
jne 0x40bd2d
call fcn.00436e91
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x40bc61
call fcn.00436e91
mov edx, dword [edi + 0xc]
mov eax, dword [ebp + 0xc]
add edx, dword [edi + 8]
add eax, dword [ebp + 8]
cmp edx, eax
ja 0x40bd4d
test ebx, ebx
jne 0x40bd34
call fcn.00436e91
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x40bc8e
call fcn.00436e91
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40bd3b
call fcn.00436e91
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x40bcab
call fcn.00436e91
mov ecx, dword [ebp + 8]
mov dword [edi + 8], ecx
test ebx, ebx
jne 0x40bd42
call fcn.00436e91
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x40bcca
call fcn.00436e91
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40bd49
call fcn.00436e91
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x40bce3
call fcn.00436e91
mov edx, dword [ebp + 0xc]
mov dword [edi + 0xc], edx
jmp 0x40c066
mov eax, dword [eax]
jmp 0x40baf6
mov eax, dword [ebx]
jmp 0x40bb64
mov eax, dword [eax]
jmp 0x40bb81
mov eax, dword [eax]
jmp 0x40bbaa
mov eax, dword [ebx]
jmp 0x40bbc3
mov eax, dword [ebx]
jmp 0x40bbdc
mov eax, dword [eax]
jmp 0x40bc08
mov eax, dword [eax]
jmp 0x40bc25
mov eax, dword [ebx]
jmp 0x40bc3e
mov eax, dword [ebx]
jmp 0x40bc57
mov eax, dword [ebx]
jmp 0x40bc84
mov eax, dword [eax]
jmp 0x40bca1
mov eax, dword [ebx]
jmp 0x40bcc0
mov eax, dword [eax]
jmp 0x40bcd9
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40bdfa
call fcn.00436e91
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x40bd6a
call fcn.00436e91
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40be01
call fcn.00436e91
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x40bd87
call fcn.00436e91
test ebx, ebx
jne 0x40be08
call fcn.00436e91
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x40bd9c
call fcn.00436e91
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40be0c
call fcn.00436e91
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x40bdb5
call fcn.00436e91
mov eax, dword [edi + 0xc]
sub eax, dword [ebp + 8]
add eax, dword [edi + 8]
mov dword [edi + 0xc], eax
test ebx, ebx
jne 0x40be10
call fcn.00436e91
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x40bdd6
call fcn.00436e91
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40be14
call fcn.00436e91
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x40bdef
call fcn.00436e91
mov ecx, dword [ebp + 8]
mov dword [edi + 8], ecx
jmp 0x40c066
mov eax, dword [eax]
jmp 0x40bd60
mov eax, dword [eax]
jmp 0x40bd7d
mov eax, dword [ebx]
jmp 0x40bd92
mov eax, dword [eax]
jmp 0x40bdab
mov eax, dword [ebx]
jmp 0x40bdcc
mov eax, dword [eax]
jmp 0x40bde5
lea edx, [esp + 0x5c]
push edx
call fcn.00403b90
mov dword [esp + 0x178], 0
test ebx, ebx
jne 0x40bf1b
call fcn.00436e91
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x40be46
call fcn.00436e91
test ebx, ebx
jne 0x40bf22
call fcn.00436e91
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x40be5f
call fcn.00436e91
mov eax, dword [ebp + 0xc]
push eax
push ecx
push 0x45ba4c
push ecx
mov ecx, dword [ebp + 8]
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.0040d890
add esp, 4
push eax
call fcn.00405260
add esp, 0xc
push eax
call fcn.0040d890
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040da10
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx + esi]
xor edi, edi
test byte [eax + 8], 6
jne 0x40bebb
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x40bebb
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x40bedc
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], 0
jne 0x40bed4
or eax, 4
push 0
push eax
call fcn.004019a0
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x5c]
call fcn.00403cc0
mov edi, dword [eax + 0x14]
mov esi, 0x10
cmp dword [esp + 0x34], esi
jb 0x40bf04
mov edx, dword [esp + 0x20]
push edx
call fcn.00419a12
add esp, 4
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x5c]
call fcn.00403cc0
cmp dword [eax + 0x18], esi
jb 0x40bf29
mov eax, dword [eax + 4]
jmp 0x40bf2c
mov eax, dword [ebx]
jmp 0x40be3c
mov eax, dword [ebx]
jmp 0x40be55
add eax, 4
mov ecx, dword [esp + 0x184]
push ecx
push edi
push 1
push eax
call fcn.004387c6
add esp, 0x10
cmp dword [esp + 0x34], 0x10
mov esi, eax
jb 0x40bf56
mov edx, dword [esp + 0x20]
push edx
call fcn.00419a12
add esp, 4
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
cmp esi, edi
jne 0x40c0aa
xor esi, esi
push esi
push 0x45aaeb
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], esi
mov byte [esp + 0x4c], 0
call fcn.00404b10
mov byte [esp + 0x178], 2
test byte [esp + 0xa8], 1
je 0x40bfb6
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
push eax
call fcn.00419a12
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword [ecx], esi
mov edx, dword [esp + 0x88]
mov dword [edx], esi
mov eax, dword [esp + 0x98]
mov dword [eax], esi
mov ecx, dword [esp + 0x7c]
mov dword [ecx], esi
mov edx, dword [esp + 0x8c]
mov dword [edx], esi
mov eax, dword [esp + 0x9c]
mov dword [eax], esi
and dword [esp + 0xa8], 0xfffffffe
cmp dword [esp + 0x58], 0x10
mov ecx, dword [esp + 0x44]
jae 0x40bffd
lea ecx, [esp + 0x44]
mov eax, dword [esp + 0x54]
mov dword [esp + 0xa4], esi
cmp eax, esi
je 0x40c01c
push ecx
mov ebx, eax
lea esi, [esp + 0x6c]
call fcn.00404e70
mov ebx, dword [esp + 0x38]
cmp dword [esp + 0x58], 0x10
jb 0x40c030
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00419a12
add esp, 4
lea ecx, [esp + 0xb0]
mov dword [esp + 0x178], 0xffffffff
call fcn.00403c30
lea edx, [esp + 0xb0]
push edx
mov dword [esp + 0xb4], vtable.std::ios_base.0
call fcn.0044ffc6
mov edi, dword [esp + 0x1c]
add esp, 4
test ebx, ebx
jne 0x40c0a2
call fcn.00436e91
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x40c07b
call fcn.00436e91
mov eax, dword [esp + 0x14]
mov ebp, dword [ebp]
test eax, eax
jne 0x40c0a6
call fcn.00436e91
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x40c097
call fcn.00436e91
mov edi, dword [edi]
mov dword [esp + 0x18], edi
jmp 0x40bb32
mov eax, dword [ebx]
jmp 0x40c071
mov eax, dword [eax]
jmp 0x40c08d
push edi
push esi
mov esi, dword [esp + 0x188]
push 0x45ba50
mov eax, esi
mov dword [esp + 0x48], ebp
call fcn.0040c7c0
add esp, 0xc
push 0x45aaeb
lea ecx, [esp + 0x20]
call fcn.004037b0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x178], 1
call fcn.00403ce0
lea ecx, [esp + 0x1c]
call fcn.004037f0
mov eax, dword [esp + 0x184]
push eax
call fcn.004375bd
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
add esp, 4
push 0
push 0x69
push ecx
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0xb0]
mov dword [esp + 0x178], 0xffffffff
call fcn.00403c30
lea eax, [esp + 0xb0]
push eax
mov dword [esp + 0xb4], vtable.std::ios_base.0
call fcn.0044ffc6
add esp, 4
xor al, al
jmp 0x40c2d6
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x40], ebp
call fcn.00403b90
lea esi, [esp + 0x38]
mov dword [esp + 0x178], 3
call fcn.0040e020
mov edi, eax
call fcn.0040e020
mov edx, dword [eax + 4]
mov eax, dword [edi]
push edx
push ecx
push 0x45ba4c
push ecx
push eax
lea ecx, [esp + 0x78]
push ecx
call fcn.0040d890
add esp, 4
push eax
call fcn.00405260
add esp, 0xc
push eax
call fcn.0040d890
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040da10
mov ecx, esi
call fcn.004038c0
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x5c]
call fcn.00403cc0
mov esi, dword [eax + 0x14]
lea ecx, [esp + 0x1c]
call fcn.004037f0
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x5c]
call fcn.00403cc0
cmp dword [eax + 0x18], 0x10
jb 0x40c1e3
mov eax, dword [eax + 4]
jmp 0x40c1e6
add eax, 4
mov ebx, dword [esp + 0x184]
push ebx
push esi
push 1
push eax
call fcn.004387c6
add esp, 0x10
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.004037f0
cmp edi, esi
je 0x40c284
push esi
mov esi, dword [esp + 0x184]
push edi
push 0x45ba50
mov eax, esi
call fcn.0040c7c0
add esp, 0xc
push 0x45aaeb
lea ecx, [esp + 0x20]
call fcn.004037b0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x178], 4
call fcn.00403ce0
lea ecx, [esp + 0x1c]
call fcn.004037f0
push ebx
call fcn.004375bd
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
add esp, 4
push 0
push 0x69
push edx
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [esp + 0x5c]
mov dword [esp + 0x178], 0xffffffff
call fcn.00402cf0
xor al, al
jmp 0x40c2d6
push 0x45aaeb
lea ecx, [esp + 0x20]
call fcn.004037b0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x178], 5
call fcn.00403ce0
lea ecx, [esp + 0x1c]
call fcn.004037f0
lea eax, [esp + 0x5c]
mov dword [esp + 0x178], 0xffffffff
call fcn.00402cf0
mov ecx, dword [esp + 0x184]
push ecx
call fcn.004375bd
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x168
ret 0x10
mov ecx, dword [esp + 0x188]
mov eax, dword [ecx + 0x14]
mov edi, dword [ecx]
mov ebp, dword [eax]
mov dword [esp + 0x38], edi
mov esi, dword [ecx + 0x14]
mov eax, dword [ecx]
test edi, edi
je 0x40c311
cmp edi, eax
je 0x40c316
call fcn.00436e91
cmp ebp, esi
je 0x40c2c4
lea ecx, [esp + 0xe4]
push ecx
call fcn.00403b90
mov ebx, 6
mov dword [esp + 0x178], ebx
test edi, edi
jne 0x40c428
call fcn.00436e91
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x40c34c
call fcn.00436e91
test edi, edi
jne 0x40c42f
call fcn.00436e91
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x40c365
call fcn.00436e91
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push ecx
push 0x45ba4c
push ecx
push eax
lea ecx, [esp + 0x100]
push ecx
call fcn.0040d890
add esp, 4
push eax
call fcn.00405260
add esp, 0xc
push eax
call fcn.0040d890
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040da10
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
xor edi, edi
test byte [eax + 8], bl
jne 0x40c3c2
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x40c3c2
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x40c3e3
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], 0
jne 0x40c3db
or eax, 4
push 0
push eax
call fcn.004019a0
lea ecx, [esp + 0x1c]
lea eax, [esp + 0xe4]
call fcn.00403cc0
mov edi, dword [eax + 0x14]
mov ebx, 0x10
cmp dword [esp + 0x34], ebx
jb 0x40c40e
mov edx, dword [esp + 0x20]
push edx
call fcn.00419a12
add esp, 4
lea ecx, [esp + 0x1c]
lea eax, [esp + 0xe4]
call fcn.00403cc0
cmp dword [eax + 0x18], ebx
jb 0x40c436
mov eax, dword [eax + 4]
jmp 0x40c439
mov eax, dword [edi]
jmp 0x40c342
mov eax, dword [edi]
jmp 0x40c35b
add eax, 4
mov ecx, dword [esp + 0x184]
push ecx
push edi
push 1
push eax
call fcn.004387c6
add esp, 0x10
mov esi, eax
cmp dword [esp + 0x34], ebx
jb 0x40c462
mov edx, dword [esp + 0x20]
push edx
call fcn.00419a12
add esp, 4
mov ebx, 0xf
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
cmp esi, edi
jne 0x40c567
xor edi, edi
push edi
push 0x45aaeb
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], edi
mov byte [esp + 0x4c], 0
call fcn.00404b10
lea esi, [esp + 0xf0]
mov byte [esp + 0x178], 8
call fcn.004049b0
cmp dword [esp + 0x58], 0x10
mov ecx, dword [esp + 0x44]
jae 0x40c4c1
lea ecx, [esp + 0x44]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x12c], edi
cmp eax, edi
je 0x40c4e4
push ecx
mov ebx, eax
lea esi, [esp + 0xf4]
call fcn.00404e70
xor edi, edi
lea ebx, [edi + 0xf]
cmp dword [esp + 0x58], 0x10
jb 0x40c4f8
mov eax, dword [esp + 0x44]
push eax
call fcn.00419a12
add esp, 4
lea ecx, [esp + 0x138]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], edi
mov byte [esp + 0x44], 0
mov dword [esp + 0x178], 0xffffffff
call fcn.00403c30
lea ecx, [esp + 0x138]
push ecx
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0044ffc6
mov eax, dword [esp + 0x3c]
add esp, 4
cmp eax, edi
jne 0x40c563
call fcn.00436e91
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x40c550
call fcn.00436e91
mov ebp, dword [ebp]
mov ecx, dword [esp + 0x188]
mov edi, dword [esp + 0x38]
jmp 0x40c304
mov eax, dword [eax]
jmp 0x40c546
push edi
mov edi, dword [esp + 0x184]
push esi
push 0x45ba50
mov eax, edi
call fcn.0040c7c0
add esp, 0xc
mov dword [esp + 0x34], ebx
xor ebx, ebx
push ebx
push 0x45aaeb
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00404b10
lea esi, [esp + 0xf0]
mov byte [esp + 0x178], 7
call fcn.004049b0
cmp dword [esp + 0x34], 0x10
mov ecx, dword [esp + 0x20]
jae 0x40c5bf
lea ecx, [esp + 0x20]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x12c], ebx
cmp eax, ebx
je 0x40c5e4
push ecx
mov ebx, eax
lea esi, [esp + 0xf4]
call fcn.00404e70
mov edi, dword [esp + 0x180]
cmp dword [esp + 0x34], 0x10
jb 0x40c5f8
mov edx, dword [esp + 0x20]
push edx
call fcn.00419a12
add esp, 4
mov eax, dword [esp + 0x184]
push eax
call fcn.004375bd
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
add esp, 4
push 0
push 0x69
push ecx
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x138]
mov dword [esp + 0x178], 0xffffffff
call fcn.00403c30
lea eax, [esp + 0x138]
push eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0044ffc6
add esp, 4
xor al, al
jmp 0x40c2d6