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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov edi, dword [ebp + 8]
movzx ecx, word [eax + 0x44]
movzx ebx, word [eax + 0x42]
mov dword [ebp - 4], ecx
test edi, edi
jne 0x40edfd
or eax, 0xffffffff
jmp 0x40f5d3
and dword [ebp - 8], 0
push esi
mov dword [ebp - 0xc], eax
lea eax, [edi + 4]
push eax
push 0x31
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
lea ecx, [edi + 8]
mov esi, eax
push ecx
push 0x32
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0xc]
push eax
push 0x33
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x10]
push eax
push 0x34
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
add esp, 0x50
or esi, eax
lea eax, [edi + 0x14]
push eax
push 0x35
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x18]
push eax
push 0x36
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
push edi
push 0x37
push ebx
or esi, eax
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x20]
push eax
push 0x2a
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
add esp, 0x50
or esi, eax
lea eax, [edi + 0x24]
push eax
push 0x2b
push ebx
push 1
lea eax, [ebp - 0xc]
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x28]
push eax
push 0x2c
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x2c]
push eax
push 0x2d
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x30]
push eax
push 0x2e
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
add esp, 0x50
or esi, eax
lea eax, [edi + 0x34]
push eax
push 0x2f
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x1c]
push eax
push 0x30
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x38]
push eax
push 0x44
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x3c]
push eax
push 0x45
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
add esp, 0x50
or esi, eax
lea eax, [edi + 0x40]
push eax
push 0x46
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x44]
push eax
push 0x47
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x48]
push eax
push 0x48
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x4c]
push eax
push 0x49
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
add esp, 0x50
or esi, eax
lea eax, [edi + 0x50]
push eax
push 0x4a
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x54]
push eax
push 0x4b
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x58]
push eax
push 0x4c
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x5c]
push eax
push 0x4d
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
add esp, 0x50
or esi, eax
lea eax, [edi + 0x60]
push eax
push 0x4e
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x64]
push eax
push 0x4f
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x68]
push eax
push 0x38
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x6c]
push eax
push 0x39
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
add esp, 0x50
or esi, eax
lea eax, [edi + 0x70]
push eax
push 0x3a
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x74]
push eax
push 0x3b
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x78]
push eax
push 0x3c
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x7c]
push eax
push 0x3d
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
add esp, 0x50
or esi, eax
lea eax, [edi + 0x80]
push eax
push 0x3e
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x84]
push eax
push 0x3f
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x88]
push eax
push 0x40
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x8c]
push eax
push 0x41
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
add esp, 0x50
or esi, eax
lea eax, [edi + 0x90]
push eax
push 0x42
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x94]
push eax
push 0x43
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x98]
push eax
push 0x28
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x9c]
push eax
push 0x29
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
add esp, 0x50
or esi, eax
lea eax, [edi + 0xa0]
push eax
push 0x1f
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0xa4]
push eax
push 0x20
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0xa8]
push eax
push 0x1003
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0xb0]
push eax
push 0x1009
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.00414747
add esp, 0x50
or esi, eax
mov eax, dword [ebp - 4]
mov dword [edi + 0xac], eax
lea eax, [edi + 0xbc]
push eax
push 0x31
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0xc0]
push eax
push 0x32
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0xc4]
push eax
push 0x33
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0xc8]
push eax
push 0x34
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
add esp, 0x50
or esi, eax
lea eax, [edi + 0xcc]
push eax
push 0x35
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0xd0]
push eax
push 0x36
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0xb8]
push eax
push 0x37
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0xd8]
push eax
push 0x2a
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
add esp, 0x50
or esi, eax
lea eax, [edi + 0xdc]
push eax
push 0x2b
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0xe0]
push eax
push 0x2c
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0xe4]
push eax
push 0x2d
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0xe8]
push eax
push 0x2e
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
add esp, 0x50
or esi, eax
lea eax, [edi + 0xec]
push eax
push 0x2f
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0xd4]
push eax
push 0x30
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0xf0]
push eax
push 0x44
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0xf4]
push eax
push 0x45
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
add esp, 0x50
or esi, eax
lea eax, [edi + 0xf8]
push eax
push 0x46
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0xfc]
push eax
push 0x47
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x100]
push eax
push 0x48
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x104]
push eax
push 0x49
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
add esp, 0x50
or esi, eax
lea eax, [edi + 0x108]
push eax
push 0x4a
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x10c]
push eax
push 0x4b
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x110]
push eax
push 0x4c
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x114]
push eax
push 0x4d
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
add esp, 0x50
or esi, eax
lea eax, [edi + 0x118]
push eax
push 0x4e
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x11c]
push eax
push 0x4f
push ebx
push 2
lea eax, [ebp - 0xc]
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x120]
push eax
push 0x38
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x124]
push eax
push 0x39
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
add esp, 0x50
or esi, eax
lea eax, [edi + 0x128]
push eax
push 0x3a
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x12c]
push eax
push 0x3b
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x130]
push eax
push 0x3c
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x134]
push eax
push 0x3d
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
add esp, 0x50
or esi, eax
lea eax, [edi + 0x138]
push eax
push 0x3e
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x13c]
push eax
push 0x3f
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x140]
push eax
push 0x40
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x144]
push eax
push 0x41
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
add esp, 0x50
or esi, eax
lea eax, [edi + 0x148]
push eax
push 0x42
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x14c]
push eax
push 0x43
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x150]
push eax
push 0x28
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x154]
push eax
push 0x29
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
mov ebx, dword [ebp - 4]
add esp, 0x50
or esi, eax
lea eax, [edi + 0x158]
push eax
push 0x1f
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x15c]
push eax
push 0x20
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
or esi, eax
lea eax, [edi + 0x160]
push eax
push 0x1003
push ebx
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00414747
add esp, 0x3c
or eax, esi
pop esi
pop edi
pop ebx
leave
ret