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

Disassembly:
sub esp, 0x6c
mov eax, dword [0x43565c]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
push 0x38
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x6064b50
push eax
push dword [esp + 0x8c]
push dword [esp + 0x8c]
call fcn.0040e557
cmp eax, 2
je 0x40da0e
mov eax, dword [0x44f5c8]
sub eax, dword [0x44f5c4]
cdq
mov esi, eax
mov edi, edx
add esi, dword [0x44f608]
lea eax, [esp + 0x3c]
push 0x3c
adc edi, dword [0x44f60c]
push eax
call fcn.0040b882
test eax, eax
jne 0x40d7fa
push 0x33
pop eax
jmp 0x40da10
lea eax, [esp + 0x4c]
push eax
call fcn.0040b6ec
movzx ebx, ax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x34], ebx
call fcn.0040b6ec
movzx ebp, ax
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x3c], ebp
call fcn.0040b669
mov dword [esp + 0x14], eax
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x1c], edx
call fcn.0040b669
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x24], edx
call fcn.0040b669
mov dword [esp + 0x24], eax
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x2c], edx
call fcn.0040b669
mov dword [esp + 0x10], eax
mov ecx, 0xffff
mov ax, word [0x44f680]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], ecx
cmp ax, cx
je 0x40d881
cmp ax, bx
jne 0x40da0e
mov dx, word [0x44f682]
cmp dx, cx
je 0x40d896
cmp dx, bp
jne 0x40da0e
mov ecx, dword [0x44f688]
mov ebx, 0xffff
mov eax, dword [0x44f68c]
cmp ecx, ebx
jne 0x40d8ae
test eax, eax
je 0x40d8c2
cmp ecx, dword [esp + 0x14]
jne 0x40da0e
cmp eax, dword [esp + 0x18]
jne 0x40da0e
mov eax, dword [0x44f690]
mov ebp, dword [0x44f694]
cmp eax, ebx
jne 0x40d8d5
test ebp, ebp
je 0x40d8e9
cmp eax, dword [esp + 0x1c]
jne 0x40da0e
cmp ebp, dword [esp + 0x20]
jne 0x40da0e
mov eax, dword [0x44f698]
mov ebx, dword [0x44f69c]
cmp eax, 0xffffffff
jne 0x40d8fd
test ebx, ebx
je 0x40d911
cmp eax, dword [esp + 0x24]
jne 0x40da0e
cmp ebx, dword [esp + 0x28]
jne 0x40da0e
mov ecx, dword [0x44f6a0]
mov eax, dword [0x44f6a4]
cmp ecx, 0xffffffff
jne 0x40d925
test eax, eax
je 0x40d939
cmp ecx, dword [esp + 0x10]
jne 0x40da0e
cmp eax, dword [esp + 0x2c]
jne 0x40da0e
mov ebx, 0xffff
cmp word [0x44f680], bx
mov ebx, dword [0x44f69c]
jne 0x40d95e
mov ebp, dword [esp + 0x30]
mov word [0x44f680], bp
mov ebp, dword [0x44f694]
cmp dx, word [esp + 0x34]
jne 0x40d970
mov edx, dword [esp + 0x38]
mov word [0x44f682], dx
mov edx, 0xffff
cmp dword [0x44f688], edx
jne 0x40d99f
cmp dword [0x44f68c], 0
jne 0x40d99f
mov edx, dword [esp + 0x14]
mov dword [0x44f688], edx
mov edx, dword [esp + 0x18]
mov dword [0x44f68c], edx
mov edx, 0xffff
cmp dword [0x44f690], edx
jne 0x40d9bf
test ebp, ebp
jne 0x40d9bf
mov edx, dword [esp + 0x1c]
mov dword [0x44f690], edx
mov edx, dword [esp + 0x20]
mov dword [0x44f694], edx
cmp dword [0x44f698], 0xffffffff
jne 0x40d9e0
test ebx, ebx
jne 0x40d9e0
mov edx, dword [esp + 0x24]
mov dword [0x44f698], edx
mov edx, dword [esp + 0x28]
mov dword [0x44f69c], edx
cmp ecx, 0xffffffff
jne 0x40d9fb
test eax, eax
jne 0x40d9fb
mov eax, dword [esp + 0x10]
mov dword [0x44f6a0], eax
mov eax, dword [esp + 0x2c]
mov dword [0x44f6a4], eax
mov dword [0x43f578], esi
mov dword [0x43f57c], edi
mov byte [0x45076c], 1
xor eax, eax
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00416329
add esp, 0x6c
ret 8