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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5392f0
sub esp, 0x54
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x58]
xor ebx, ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov ebx, edx
and ebx, 0x200
cmp ebx, 0
je 0x5390e4
mov ebx, dword [esp + 0x64]
mov dword [esp], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
call fcn.0052bea0
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x60], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp], ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 4], ecx
call fcn.005317a0
mov eax, dword [esp + 0x6c]
movzx ebx, byte [esp + 8]
cmp bl, 0
je 0x539134
mov edx, dword [esp + 0x60]
and edx, 0x1e0
movzx ebp, byte [eax + 0xf]
mov ebx, ebp
and ebx, 0x1f
movzx ebp, bl
or ebp, edx
xor ebx, ebx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ebp
add esp, 0x54
ret
mov dword [esp], eax
mov ebx, dword [esp + 0x58]
mov dword [esp + 4], ebx
call fcn.005310a0
movzx ebx, byte [esp + 8]
cmp bl, 0
je 0x53921e
mov ebx, dword [esp + 0x70]
xor ebp, ebp
cmp ebx, ebp
jne 0x539170
mov ebx, dword [esp + 0x6c]
mov dword [esp], ebx
call fcn.0040e960
mov ebx, dword [esp + 4]
mov dword [esp + 0x70], ebx
mov ebx, dword [esp + 0x58]
mov dword [esp], ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 8], ebx
mov byte [esp + 0xc], 0
call fcn.00536de0
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp], ebx
call fcn.0052d360
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 4]
cmp ebx, 0
jne 0x539200
mov ebx, dword [esp + 0x70]
mov dword [ebx], edx
cmp byte [0x6d9e18], 0
jne 0x5391ef
mov dword [ebx + 4], ecx
xor ebx, ebx
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov eax, 0x94
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x54
ret
lea esi, [ebx + 4]
mov dword [esp], esi
mov dword [esp + 4], ecx
call fcn.0040f2f0
jmp 0x5391d0
mov ebx, dword [esp + 0x6c]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0xc], ebx
call fcn.0040c7e0
jmp 0x5391d0
mov ebx, dword [esp + 0x58]
mov dword [esp], ebx
call fcn.0052cad0
mov ebx, dword [esp + 4]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 8]
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp], ebx
call fcn.0052cad0
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
mov dword [esp], 0
mov ebx, dword [esp + 0x64]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 8], ebx
mov ebx, 0x5f8753
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], 0x10
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x18], ebx
mov ebx, 0x5fc499
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0x1b
mov dword [esp + 0x44], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x28], eax
call fcn.0043ffb0
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x40], ebx
mov dword [esp], 0x5c3fe0
lea ebx, [esp + 0x3c]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
call fcn.0040ba10
lea ebx, [esp + 0xc]
cld
mov ecx, dword [ebx]
mov dword [esp], ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 4], ecx
call fcn.00429d80
ud2
call fcn.00450ed0
jmp fcn.00539070