Function at 0x40bee6
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.0040cbfe
cmp eax, 2
jne 0x40bf11
xor eax, eax
jmp 0x40c163
mov eax, dword [0x44c598]
sub eax, dword [0x44c594]
push esi
cdq
push edi
mov esi, eax
mov edi, edx
add esi, dword [0x44c5d8]
lea eax, [esp + 0x34]
push 0x3c
adc edi, dword [0x44c5dc]
push eax
call fcn.0040a168
test eax, eax
jne 0x40bf47
push 0x33
pop eax
jmp 0x40c161
push ebx
push ebp
lea eax, [esp + 0x4c]
push eax
call fcn.00409fdd
movzx ebx, ax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x34], ebx
call fcn.00409fdd
movzx ebp, ax
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x3c], ebp
call fcn.00409f5a
mov dword [esp + 0x14], eax
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x1c], edx
call fcn.00409f5a
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x24], edx
call fcn.00409f5a
mov dword [esp + 0x24], eax
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x2c], edx
call fcn.00409f5a
mov dword [esp + 0x10], eax
mov ecx, 0xffff
mov ax, word [0x44c650]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], ecx
cmp ax, cx
je 0x40bfd0
cmp ax, bx
jne 0x40c15d
mov dx, word [0x44c652]
cmp dx, cx
je 0x40bfe5
cmp dx, bp
jne 0x40c15d
mov ecx, dword [0x44c658]
mov ebx, 0xffff
mov eax, dword [0x44c65c]
cmp ecx, ebx
jne 0x40bffd
test eax, eax
je 0x40c011
cmp ecx, dword [esp + 0x14]
jne 0x40c15d
cmp eax, dword [esp + 0x18]
jne 0x40c15d
mov eax, dword [0x44c660]
mov ebp, dword [0x44c664]
cmp eax, ebx
jne 0x40c024
test ebp, ebp
je 0x40c038
cmp eax, dword [esp + 0x1c]
jne 0x40c15d
cmp ebp, dword [esp + 0x20]
jne 0x40c15d
mov eax, dword [0x44c668]
mov ebx, dword [0x44c66c]
cmp eax, 0xffffffff
jne 0x40c04c
test ebx, ebx
je 0x40c060
cmp eax, dword [esp + 0x24]
jne 0x40c15d
cmp ebx, dword [esp + 0x28]
jne 0x40c15d
mov ecx, dword [0x44c670]
mov eax, dword [0x44c674]
cmp ecx, 0xffffffff
jne 0x40c074
test eax, eax
je 0x40c088
cmp ecx, dword [esp + 0x10]
jne 0x40c15d
cmp eax, dword [esp + 0x2c]
jne 0x40c15d
mov ebx, 0xffff
cmp word [0x44c650], bx
mov ebx, dword [0x44c66c]
jne 0x40c0ad
mov ebp, dword [esp + 0x30]
mov word [0x44c650], bp
mov ebp, dword [0x44c664]
cmp dx, word [esp + 0x34]
jne 0x40c0bf
mov edx, dword [esp + 0x38]
mov word [0x44c652], dx
mov edx, 0xffff
cmp dword [0x44c658], edx
jne 0x40c0ee
cmp dword [0x44c65c], 0
jne 0x40c0ee
mov edx, dword [esp + 0x14]
mov dword [0x44c658], edx
mov edx, dword [esp + 0x18]
mov dword [0x44c65c], edx
mov edx, 0xffff
cmp dword [0x44c660], edx
jne 0x40c10e
test ebp, ebp
jne 0x40c10e
mov edx, dword [esp + 0x1c]
mov dword [0x44c660], edx
mov edx, dword [esp + 0x20]
mov dword [0x44c664], edx
cmp dword [0x44c668], 0xffffffff
jne 0x40c12f
test ebx, ebx
jne 0x40c12f
mov edx, dword [esp + 0x24]
mov dword [0x44c668], edx
mov edx, dword [esp + 0x28]
mov dword [0x44c66c], edx
cmp ecx, 0xffffffff
jne 0x40c14a
test eax, eax
jne 0x40c14a
mov eax, dword [esp + 0x10]
mov dword [0x44c670], eax
mov eax, dword [esp + 0x2c]
mov dword [0x44c674], eax
mov dword [0x43c548], esi
mov dword [0x43c54c], edi
mov byte [0x44d834], 1
pop ebp
xor eax, eax
pop ebx
pop edi
pop esi
add esp, 0x68
ret 8