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

Disassembly:
sub esp, 0x68
push 0x38
lea eax, [esp + 4]
mov dword [esp + 4], 0x6064b50
push eax
push dword [esp + 0x78]
push dword [esp + 0x78]
call fcn.0040ca14
cmp eax, 2
jne 0x40bd81
xor eax, eax
jmp 0x40bfd3
mov eax, dword [0x44b598]
sub eax, dword [0x44b594]
push esi
cdq
push edi
mov esi, eax
mov edi, edx
add esi, dword [0x44b5d8]
lea eax, [esp + 0x34]
push 0x3c
adc edi, dword [0x44b5dc]
push eax
call fcn.0040a0ee
test eax, eax
jne 0x40bdb7
push 0x33
pop eax
jmp 0x40bfd1
push ebx
push ebp
lea eax, [esp + 0x4c]
push eax
call fcn.00409f63
movzx ebx, ax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x34], ebx
call fcn.00409f63
movzx ebp, ax
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x3c], ebp
call fcn.00409ee0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x1c], edx
call fcn.00409ee0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x24], edx
call fcn.00409ee0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x2c], edx
call fcn.00409ee0
mov dword [esp + 0x10], eax
mov ecx, 0xffff
mov ax, word [0x44b650]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], ecx
cmp ax, cx
je 0x40be40
cmp ax, bx
jne 0x40bfcd
mov dx, word [0x44b652]
cmp dx, cx
je 0x40be55
cmp dx, bp
jne 0x40bfcd
mov ecx, dword [0x44b658]
mov ebx, 0xffff
mov eax, dword [0x44b65c]
cmp ecx, ebx
jne 0x40be6d
test eax, eax
je 0x40be81
cmp ecx, dword [esp + 0x14]
jne 0x40bfcd
cmp eax, dword [esp + 0x18]
jne 0x40bfcd
mov eax, dword [0x44b660]
mov ebp, dword [0x44b664]
cmp eax, ebx
jne 0x40be94
test ebp, ebp
je 0x40bea8
cmp eax, dword [esp + 0x1c]
jne 0x40bfcd
cmp ebp, dword [esp + 0x20]
jne 0x40bfcd
mov eax, dword [0x44b668]
mov ebx, dword [0x44b66c]
cmp eax, 0xffffffff
jne 0x40bebc
test ebx, ebx
je 0x40bed0
cmp eax, dword [esp + 0x24]
jne 0x40bfcd
cmp ebx, dword [esp + 0x28]
jne 0x40bfcd
mov ecx, dword [0x44b670]
mov eax, dword [0x44b674]
cmp ecx, 0xffffffff
jne 0x40bee4
test eax, eax
je 0x40bef8
cmp ecx, dword [esp + 0x10]
jne 0x40bfcd
cmp eax, dword [esp + 0x2c]
jne 0x40bfcd
mov ebx, 0xffff
cmp word [0x44b650], bx
mov ebx, dword [0x44b66c]
jne 0x40bf1d
mov ebp, dword [esp + 0x30]
mov word [0x44b650], bp
mov ebp, dword [0x44b664]
cmp dx, word [esp + 0x34]
jne 0x40bf2f
mov edx, dword [esp + 0x38]
mov word [0x44b652], dx
mov edx, 0xffff
cmp dword [0x44b658], edx
jne 0x40bf5e
cmp dword [0x44b65c], 0
jne 0x40bf5e
mov edx, dword [esp + 0x14]
mov dword [0x44b658], edx
mov edx, dword [esp + 0x18]
mov dword [0x44b65c], edx
mov edx, 0xffff
cmp dword [0x44b660], edx
jne 0x40bf7e
test ebp, ebp
jne 0x40bf7e
mov edx, dword [esp + 0x1c]
mov dword [0x44b660], edx
mov edx, dword [esp + 0x20]
mov dword [0x44b664], edx
cmp dword [0x44b668], 0xffffffff
jne 0x40bf9f
test ebx, ebx
jne 0x40bf9f
mov edx, dword [esp + 0x24]
mov dword [0x44b668], edx
mov edx, dword [esp + 0x28]
mov dword [0x44b66c], edx
cmp ecx, 0xffffffff
jne 0x40bfba
test eax, eax
jne 0x40bfba
mov eax, dword [esp + 0x10]
mov dword [0x44b670], eax
mov eax, dword [esp + 0x2c]
mov dword [0x44b674], eax
mov dword [0x43b548], esi
mov dword [0x43b54c], edi
mov byte [0x44c834], 1
pop ebp
xor eax, eax
pop ebx
pop edi
pop esi
add esp, 0x68
ret 8