Function at 0x40b650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4504fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x528
mov eax, dword [0x46aa78]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x48]
mov dword [esp + 0x52c], eax
call fcn.004091a0
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 4]
lea edi, [esi + 0x58]
push ecx
mov ecx, edi
call fcn.0040b550
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
xor ebx, ebx
mov dword [edi + 8], ebx
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x78], ebx
call fcn.004472e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
push 0x40
mov dword [esp + 0x540], ebx
call fcn.004069d0
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x40b6e8
xor eax, eax
jmp 0x40b6f1
push edi
call fcn.0043124b
add esp, 4
push eax
push edi
lea ecx, [esp + 0x28]
call fcn.00402510
mov eax, dword [esp + 0x20]
mov ecx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push eax
push 0x6401
push ecx
call edi
mov edx, dword [esi]
push ebx
push 0x453e50
push 0x6400
push edx
call edi
mov eax, dword [esi]
push ebx
push ebx
push 0x6402
push eax
call edi
mov ecx, dword [esi]
push ebx
push ebx
push 0x6403
push ecx
call edi
mov ecx, esi
call fcn.00409620
push 0x456758
push str._version_
call fcn.00430c3e
add esp, 8
cmp eax, ebx
mov dword [esp + 0xc], eax
jne 0x40b81c
call fcn.004472e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
push 5
mov byte [esp + 0x540], 1
call fcn.004069d0
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x40b78e
xor eax, eax
jmp 0x40b797
push edi
call fcn.0043124b
add esp, 4
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.00402510
mov eax, dword [esp + 0xc]
mov ecx, dword [esi]
push ebx
push eax
push 0x6404
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x49
call fcn.004069d0
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x40b7ca
xor eax, eax
jmp 0x40b7d3
push edi
call fcn.0043124b
add esp, 4
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.00402510
mov edi, dword [esp + 0xc]
mov edx, dword [esi]
push ebx
push edi
push 0x6401
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [edi - 0x10]
mov byte [esp + 0x53c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c1c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40c1c3
xor eax, eax
mov byte [esp + 0x118], bl
mov ecx, 0x103
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x11c]
push 0x410
push ecx
call fcn.00431aed
lea eax, [esp + 0x124]
add esp, 0xc
mov dword [esp + 0xd4], 0xf
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc0], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40b873
sub eax, edx
push eax
lea edx, [esp + 0x11c]
push edx
lea ecx, [esp + 0xc4]
call fcn.004023a0
push 2
push 0xffffffffffffffff
push 0x456860
lea ecx, [esp + 0xc8]
mov byte [esp + 0x548], 2
call fcn.00406bc0
cmp eax, 0xffffffff
jne 0x40b8b7
or eax, eax
jmp 0x40b8b8
inc eax
push eax
push ebx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0xc8]
call fcn.00406d30
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xc8]
mov byte [esp + 0x548], 3
call fcn.00402270
mov eax, dword [esp + 0x54]
mov edi, 0x10
cmp eax, edi
jb 0x40b8fd
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00446915
add esp, 4
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
cmp dword [esp + 0xd4], edi
mov eax, dword [esp + 0xc0]
mov byte [esp + 0x53c], 4
jae 0x40b928
lea eax, [esp + 0xc0]
push ebx
push 1
push 0x45685c
lea edx, [esp + 0x34]
push edx
push eax
call fcn.00412fe0
mov edi, dword [esp + 0x40]
add esp, 0x14
cmp edi, ebx
je 0x40b968
mov ecx, dword [esp + 0x30]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x40ba6b
mov eax, dword [esp + 0xc]
push eax
call fcn.00430a3e
add esp, 4
call fcn.004472e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
push 5
mov byte [esp + 0x540], 5
call fcn.004069d0
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x40b9a4
xor eax, eax
jmp 0x40b9ad
push edi
call fcn.0043124b
add esp, 4
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.00402510
mov eax, dword [esp + 0xc]
mov ecx, dword [esi]
push ebx
push eax
push 0x6404
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x49
call fcn.004069d0
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x40b9e0
xor eax, eax
jmp 0x40b9e9
push edi
call fcn.0043124b
add esp, 4
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.00402510
mov edi, dword [esp + 0xc]
mov edx, dword [esi]
push ebx
push edi
push 0x6401
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [edi - 0x10]
mov byte [esp + 0x53c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ba2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x28]
call fcn.004098c0
cmp dword [esp + 0xd4], 0x10
jb 0x40ba4d
mov eax, dword [esp + 0xc0]
push eax
call fcn.00446915
add esp, 4
mov dword [esp + 0xd4], 0xf
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc0], bl
jmp 0x40c1c3
cmp dword [edi + 0x34], 0x10
jb 0x40ba76
mov edi, dword [edi + 0x20]
jmp 0x40ba79
add edi, 0x20
push edi
call fcn.00431011
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x120]
push 0x410
push ecx
call fcn.00431aed
add esp, 0x10
test eax, eax
je 0x40c086
lea eax, [esp + 0x118]
lea edx, [eax + 1]
jmp 0x40bab0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40bab0
sub eax, edx
push eax
lea edx, [esp + 0x11c]
push edx
lea ecx, [esp + 0xc4]
call fcn.004023a0
push 2
push 0xffffffffffffffff
push 0x456860
lea ecx, [esp + 0xc8]
call fcn.00406bc0
cmp eax, 0xffffffff
jne 0x40baec
or eax, eax
jmp 0x40baed
inc eax
push eax
push ebx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0xc8]
call fcn.00406d30
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xc8]
mov byte [esp + 0x548], 6
call fcn.00402270
mov eax, dword [esp + 0x54]
mov edi, 0x10
cmp eax, edi
jb 0x40bb32
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00446915
add esp, 4
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0xd4], edi
mov eax, dword [esp + 0xc0]
mov byte [esp + 0x53c], 7
jae 0x40bb6d
lea eax, [esp + 0xc0]
push ebx
push 1
push 0x45685c
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.00412fe0
add esp, 0x14
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x548], 8
call fcn.00402270
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x34], edi
jb 0x40bbc6
mov eax, dword [eax + 0x20]
jmp 0x40bbc9
add eax, 0x20
lea ecx, [esp + 0xf4]
push ecx
push str._08X
push eax
call fcn.00431db8
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x50]
add esp, 0xc
cmp ecx, edi
jb 0x40bbef
mov eax, dword [eax + 0x3c]
jmp 0x40bbf2
add eax, 0x3c
lea edx, [esp + 0xf8]
push edx
push str._08X
push eax
call fcn.00431db8
mov edi, dword [esp + 0x20]
add esp, 0xc
cmp edi, ebx
je 0x40c0ff
mov ecx, dword [esp + 0x18]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 4
jne 0x40c0ff
mov ecx, dword [edi + 0x68]
cmp ecx, ebx
lea eax, [edi + 0x54]
jne 0x40be43
cmp dword [edi + 0x18], 0x10
jb 0x40bc4f
mov edi, dword [edi + 4]
jmp 0x40bc52
add edi, 4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
cmp eax, ebx
je 0x40bc7c
push str..ini
push eax
call fcn.00432a58
add esp, 8
test eax, eax
jne 0x40bc7c
cmp dword [esp + 0xf0], 0x10
jmp 0x40bda6
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x18]
mov edi, 0x10
cmp ecx, edi
jb 0x40bc91
mov eax, dword [eax + 4]
jmp 0x40bc94
add eax, 4
mov ecx, dword [0x469224]
push ecx
push eax
call fcn.00432a58
add esp, 8
test eax, eax
jne 0x40bd0d
cmp dword [esp + 0xf0], edi
jb 0x40bcc1
mov edx, dword [esp + 0xdc]
push edx
call fcn.00446915
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
mov byte [esp + 0x53c], 4
je 0x40c058
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
push ecx
push eax
call fcn.004080e0
mov edx, dword [esp + 0x24]
push edx
jmp 0x40c050
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x18], edi
jb 0x40bd1b
mov eax, dword [eax + 4]
jmp 0x40bd1e
add eax, 4
mov ecx, dword [str.Launch.bin]
push ecx
push eax
call fcn.00432a58
add esp, 8
test eax, eax
jne 0x40bd7a
cmp dword [esp + 0xf0], edi
jb 0x40bd4b
mov edx, dword [esp + 0xdc]
push edx
call fcn.00446915
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
mov byte [esp + 0x53c], 4
call fcn.004098c0
jmp 0x40c064
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x18], edi
jb 0x40bd88
mov eax, dword [eax + 4]
jmp 0x40bd8b
add eax, 4
push 8
push str.DirectX9
push eax
call fcn.00431d39
add esp, 0xc
test eax, eax
jne 0x40bde7
cmp dword [esp + 0xf0], edi
jb 0x40bdb8
mov eax, dword [esp + 0xdc]
push eax
call fcn.00446915
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
mov byte [esp + 0x53c], 4
call fcn.004098c0
jmp 0x40c064
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x18], edi
jb 0x40bdf5
mov eax, dword [eax + 4]
jmp 0x40bdf8
add eax, 4
push 5
push str.Patch
push eax
call fcn.00431d39
add esp, 0xc
test eax, eax
jne 0x40be2e
lea ecx, [esp + 0xd8]
call fcn.00419910
lea ecx, [esp + 0x10]
mov byte [esp + 0x53c], 4
call fcn.004098c0
jmp 0x40c064
lea ecx, [esp + 0xd8]
push ecx
lea ecx, [esi + 0x48]
call fcn.00409b00
jmp 0x40bfe5
push 1
push 1
push eax
lea edx, [esp + 0x108]
push edx
call fcn.00412350
add esp, 0x10
lea eax, [esp + 0xfc]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edi, [esi + 0x58]
mov ecx, edi
mov byte [esp + 0x544], 0xa
call fcn.00407a00
mov ecx, dword [esi + 0x5c]
mov eax, dword [esp + 0x24]
cmp eax, ecx
jne 0x40bf9d
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x34], esp
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x84], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x130]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [esp + 0x574], 0xb
mov byte [ecx + 4], bl
call fcn.00402270
lea eax, [esp + 0xb4]
push eax
mov byte [esp + 0x56c], 0xa
call fcn.00409b90
add esp, 0x30
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x540], 0xc
call fcn.004099c0
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0xb8]
push edx
mov ecx, edi
mov byte [esp + 0x544], 0xd
call fcn.0040b0a0
lea ecx, [esp + 0x78]
call fcn.004091a0
cmp dword [esp + 0x74], 0x10
jb 0x40bf2c
mov eax, dword [esp + 0x60]
push eax
call fcn.00446915
add esp, 4
lea ecx, [esp + 0xa4]
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
mov byte [esp + 0x53c], 0xa
call fcn.004091a0
cmp dword [esp + 0xa0], 0x10
jb 0x40bf6a
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.00446915
add esp, 4
lea edx, [esp + 0xfc]
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
call fcn.00407a00
mov eax, dword [eax]
mov dword [esp + 0x24], eax
lea ecx, [esp + 0xd8]
push ecx
lea ecx, [eax + 0x28]
call fcn.00409b00
cmp dword [esp + 0x114], 0x10
jb 0x40bfc7
mov edx, dword [esp + 0x100]
push edx
call fcn.00446915
add esp, 4
mov dword [esp + 0x114], 0xf
mov dword [esp + 0x110], ebx
mov byte [esp + 0x100], bl
mov edi, 0x10
mov eax, dword [esp + 0xf4]
mov ecx, dword [esi + 0x64]
add ecx, eax
cmp dword [esp + 0xf0], edi
mov dword [esi + 0x64], ecx
jb 0x40c00d
mov ecx, dword [esp + 0xdc]
push ecx
call fcn.00446915
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
mov byte [esp + 0x53c], 4
je 0x40c058
mov edx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call fcn.004080e0
mov eax, dword [esp + 0x24]
push eax
call fcn.00446915
add esp, 0x14
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x11c]
push 0x410
push edx
call fcn.00431aed
add esp, 0xc
test eax, eax
jne 0x40baa1
mov eax, dword [esp + 0xc]
push eax
call fcn.00430a3e
add esp, 4
lea ecx, [esp + 0x28]
call fcn.004098c0
cmp dword [esp + 0xd4], 0x10
jb 0x40c0b6
mov ecx, dword [esp + 0xc0]
push ecx
call fcn.00446915
add esp, 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0xd4], 0xf
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc0], bl
mov dword [esp + 0x53c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c0f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, 1
jmp 0x40c1ee
mov eax, dword [esp + 0xc]
push eax
call fcn.00430a3e
add esp, 4
call fcn.004472e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
push 5
mov byte [esp + 0x540], 9
call fcn.004069d0
add esp, 4
push eax
lea ecx, [esp + 0x10]
call fcn.004028f0
mov eax, dword [esp + 0xc]
mov ecx, dword [esi]
push ebx
push eax
push 0x6404
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x49
call fcn.004069d0
add esp, 4
push eax
lea ecx, [esp + 0x10]
call fcn.004028f0
mov edi, dword [esp + 0xc]
mov edx, dword [esi]
push ebx
push edi
push 0x6401
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [edi - 0x10]
mov byte [esp + 0x53c], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c199
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0xd8]
call fcn.00419910
lea ecx, [esp + 0x10]
call fcn.004098c0
lea ecx, [esp + 0x28]
call fcn.004098c0
lea ecx, [esp + 0xbc]
call fcn.00419910
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x53c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c1ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor al, al
mov ecx, dword [esp + 0x534]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x52c]
call fcn.00430cd9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret