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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x38]
cmp eax, dword [ecx + 8]
jbe 0x5ea8c7
sub esp, 0xb8
mov eax, dword [esp + 0xbc]
mov ecx, dword [eax]
mov dword [esp + 0x50], ecx
lea edx, [0x8d5ce0]
mov dword [esp], edx
call fcn.0040ae10
mov eax, dword [esp + 4]
movzx ecx, byte [0xa43f38]
mov byte [eax], cl
mov ecx, dword [esp + 0x50]
mov dword [esp], ecx
mov byte [esp + 4], 0x14
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.005e37a0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x5ea8b2
mov ecx, dword [esp + 0xbc]
mov edx, dword [ecx + 4]
movzx edx, byte [edx + 0x2b]
test dl, dl
jne 0x5ea797
lea edi, [esp + 0x6c]
xor eax, eax
call fcn.004572aa
mov ecx, dword [esp + 0xbc]
lea esi, [ecx + 0x10]
mov dword [esp + 0x54], esi
lea edi, [esp + 0x84]
call fcn.0045773e
mov ecx, dword [esp + 0xbc]
mov edx, dword [ecx + 0x4c]
mov ebx, dword [ecx + 0x44]
mov ecx, dword [ecx + 0x48]
mov dword [esp + 0x4c], ecx
mov edi, esp
lea esi, [esp + 0x84]
call fcn.0045773e
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
call fcn.00603f10
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], ecx
lea ecx, [esp + 0x6c]
mov dword [esp], ecx
call fcn.005f57d0
mov ecx, dword [esp + 0x54]
mov dword [esp], ecx
call fcn.006038a0
lea ecx, [esp + 0x6c]
mov dword [esp], ecx
call fcn.005f57d0
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x50]
mov dword [esp], ebp
mov byte [esp + 4], 0x16
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
call fcn.005e37a0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x5ea782
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0xc4]
cmp edx, ecx
jle 0x5ea77e
mov edx, dword [esp + 0xc0]
cmp edx, eax
je 0x5ea761
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004579b0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
add esp, 0xb8
ret
mov ecx, edx
jmp 0x5ea746
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd0], ecx
add esp, 0xb8
ret
lea edi, [esp + 0x58]
xor eax, eax
call fcn.004572ab
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 0x24]
mov ebx, dword [esp + 0xbc]
mov ebp, dword [ebx + 4]
mov esi, dword [edx + 0x30]
mov ebx, dword [edx + 0x38]
mov edx, dword [edx + 0x34]
mov ecx, dword [ebp + 0x30]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebp + 0x2c]
mov ebp, dword [ebp + 0x34]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
call fcn.005eb7d0
movzx ecx, byte [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
mov ebx, dword [esp + 0x50]
mov dword [ebx + 0xa8], edx
mov edx, dword [0xdd7ec0]
test edx, edx
jne 0x5ea8a2
mov dword [ebx + 0xa4], eax
mov byte [ebx + 0xac], cl
lea eax, [esp + 0x58]
mov dword [esp], eax
call fcn.005f5b00
mov eax, dword [esp + 0xbc]
lea ecx, [eax + 0x10]
mov dword [esp], ecx
call fcn.006038a0
lea eax, [esp + 0x58]
mov dword [esp], eax
call fcn.005f5b00
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x50]
mov dword [esp], ebx
mov byte [esp + 4], 0x16
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
call fcn.005e37a0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
test eax, eax
jne 0x5ea88d
mov ecx, dword [esp + 0xbc]
jmp 0x5ea663
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], ecx
add esp, 0xb8
ret
lea edi, [ebx + 0xa4]
call fcn.00456fe0
jmp 0x5ea81c
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], eax
add esp, 0xb8
ret
call fcn.004557a0
jmp fcn.005ea5d0