Function at 0x40d9ad
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.0040e77b
cmp eax, 2
je 0x40dc32
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.0040baa6
test eax, eax
jne 0x40da1e
push 0x33
pop eax
jmp 0x40dc34
lea eax, [esp + 0x4c]
push eax
call fcn.0040b910
movzx ebx, ax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x34], ebx
call fcn.0040b910
movzx ebp, ax
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x3c], ebp
call fcn.0040b88d
mov dword [esp + 0x14], eax
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x1c], edx
call fcn.0040b88d
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x24], edx
call fcn.0040b88d
mov dword [esp + 0x24], eax
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x2c], edx
call fcn.0040b88d
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 0x40daa5
cmp ax, bx
jne 0x40dc32
mov dx, word [0x44f682]
cmp dx, cx
je 0x40daba
cmp dx, bp
jne 0x40dc32
mov ecx, dword [0x44f688]
mov ebx, 0xffff
mov eax, dword [0x44f68c]
cmp ecx, ebx
jne 0x40dad2
test eax, eax
je 0x40dae6
cmp ecx, dword [esp + 0x14]
jne 0x40dc32
cmp eax, dword [esp + 0x18]
jne 0x40dc32
mov eax, dword [0x44f690]
mov ebp, dword [0x44f694]
cmp eax, ebx
jne 0x40daf9
test ebp, ebp
je 0x40db0d
cmp eax, dword [esp + 0x1c]
jne 0x40dc32
cmp ebp, dword [esp + 0x20]
jne 0x40dc32
mov eax, dword [0x44f698]
mov ebx, dword [0x44f69c]
cmp eax, 0xffffffff
jne 0x40db21
test ebx, ebx
je 0x40db35
cmp eax, dword [esp + 0x24]
jne 0x40dc32
cmp ebx, dword [esp + 0x28]
jne 0x40dc32
mov ecx, dword [0x44f6a0]
mov eax, dword [0x44f6a4]
cmp ecx, 0xffffffff
jne 0x40db49
test eax, eax
je 0x40db5d
cmp ecx, dword [esp + 0x10]
jne 0x40dc32
cmp eax, dword [esp + 0x2c]
jne 0x40dc32
mov ebx, 0xffff
cmp word [0x44f680], bx
mov ebx, dword [0x44f69c]
jne 0x40db82
mov ebp, dword [esp + 0x30]
mov word [0x44f680], bp
mov ebp, dword [0x44f694]
cmp dx, word [esp + 0x34]
jne 0x40db94
mov edx, dword [esp + 0x38]
mov word [0x44f682], dx
mov edx, 0xffff
cmp dword [0x44f688], edx
jne 0x40dbc3
cmp dword [0x44f68c], 0
jne 0x40dbc3
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 0x40dbe3
test ebp, ebp
jne 0x40dbe3
mov edx, dword [esp + 0x1c]
mov dword [0x44f690], edx
mov edx, dword [esp + 0x20]
mov dword [0x44f694], edx
cmp dword [0x44f698], 0xffffffff
jne 0x40dc04
test ebx, ebx
jne 0x40dc04
mov edx, dword [esp + 0x24]
mov dword [0x44f698], edx
mov edx, dword [esp + 0x28]
mov dword [0x44f69c], edx
cmp ecx, 0xffffffff
jne 0x40dc1f
test eax, eax
jne 0x40dc1f
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.00416559
add esp, 0x6c
ret 8