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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx ecx, word [eax + 0x42]
movzx edx, word [eax + 0x44]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
test esi, esi
jne 0x40967b
or eax, 0xffffffff
leave
ret
and dword [ebp - 0xc], 0
push ebx
push edi
mov dword [ebp - 0x10], eax
lea eax, [esi + 4]
push eax
push 0x31
push ecx
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
mov edi, eax
lea eax, [esi + 8]
push eax
push 0x32
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0xc]
push eax
push 0x33
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x10]
push eax
push 0x34
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
add esp, 0x50
or edi, eax
lea eax, [esi + 0x14]
push eax
push 0x35
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x18]
push eax
push 0x36
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
push esi
push 0x37
push dword [ebp - 4]
or edi, eax
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x20]
push eax
push 0x2a
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
add esp, 0x50
or edi, eax
lea eax, [esi + 0x24]
push eax
push 0x2b
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x28]
push eax
push 0x2c
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x2c]
push eax
push 0x2d
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x30]
push eax
push 0x2e
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
add esp, 0x50
or edi, eax
lea eax, [esi + 0x34]
push eax
push 0x2f
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x1c]
push eax
push 0x30
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x38]
push eax
push 0x44
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x3c]
push eax
push 0x45
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
add esp, 0x50
or edi, eax
lea eax, [esi + 0x40]
push eax
push 0x46
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x44]
push eax
push 0x47
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x48]
push eax
push 0x48
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x4c]
push eax
push 0x49
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
add esp, 0x50
or edi, eax
lea eax, [esi + 0x50]
push eax
push 0x4a
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x54]
push eax
push 0x4b
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x58]
push eax
push 0x4c
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x5c]
push eax
push 0x4d
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
add esp, 0x50
or edi, eax
lea eax, [esi + 0x60]
push eax
push 0x4e
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x64]
push eax
push 0x4f
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x68]
push eax
push 0x38
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x6c]
push eax
push 0x39
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
add esp, 0x50
or edi, eax
lea eax, [esi + 0x70]
push eax
push 0x3a
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x74]
push eax
push 0x3b
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x78]
push eax
push 0x3c
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x7c]
push eax
push 0x3d
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
add esp, 0x50
or edi, eax
lea eax, [esi + 0x80]
push eax
push 0x3e
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x84]
push eax
push 0x3f
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x88]
push eax
push 0x40
push dword [ebp - 4]
push ebx
lea eax, [ebp - 0x10]
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x8c]
push eax
push 0x41
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
add esp, 0x50
or edi, eax
lea eax, [esi + 0x90]
push eax
push 0x42
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x94]
push eax
push 0x43
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x98]
push eax
push 0x28
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0x9c]
push eax
push 0x29
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
add esp, 0x50
or edi, eax
lea eax, [esi + 0xa0]
push eax
push 0x1f
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0xa4]
push eax
push 0x20
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0xa8]
push eax
push 0x1003
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00404d0d
or edi, eax
lea eax, [esi + 0xb0]
push eax
push 0x1009
mov ebx, dword [ebp - 8]
push ebx
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.00404d0d
add esp, 0x50
or edi, eax
mov eax, edi
pop edi
mov dword [esi + 0xac], ebx
pop ebx
leave
ret