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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x542281
sub esp, 0x64
mov eax, dword [esp + 0x70]
test eax, eax
jle 0x542276
mov ecx, dword [esp + 0x6c]
xor edx, edx
xor ebx, ebx
xor ebp, ebp
xor esi, esi
jmp 0x542056
mov edx, dword [esp + 0x38]
add edx, 0x14
mov ecx, edx
mov edx, eax
mov ebx, ebp
mov ebp, edi
mov eax, dword [esp + 0x70]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x34], esi
lea edi, [esp + 0x50]
mov esi, ecx
call fcn.0044cfbe
lea edi, [esp + 0x3c]
lea esi, [esp + 0x50]
call fcn.0044cfbe
mov ecx, dword [esp + 0x68]
test ecx, ecx
jne 0x542245
mov edi, esp
lea esi, [esp + 0x3c]
call fcn.0044cfbe
mov edx, dword [esp + 0x78]
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0x20]
lea ecx, [eax + 1]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, ebp
mov ebp, dword [esp + 0x24]
cmp ecx, ebp
jg 0x5421fb
mov esi, dword [esp + 0x34]
mov edi, ecx
lea ecx, [esi + eax*8]
mov dword [ecx], ebx
lea ecx, [esi + eax*8 + 4]
mov ebx, dword [0xa8f2d0]
test ebx, ebx
jne 0x5421e7
mov dword [ecx], edx
mov eax, dword [esp + 0x2c]
inc eax
mov ecx, dword [esp + 0x70]
cmp eax, ecx
jl 0x542043
test edi, edi
jne 0x5421b8
mov eax, dword [0xa7d240]
mov eax, dword [eax + 0x10]
mov ecx, dword [0xa7d244]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x34], ecx
lea edx, [0x74c300]
mov dword [esp], edx
call fcn.00409d00
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x2c]
mov dword [edi + 4], eax
mov eax, dword [0xa8f2d0]
test eax, eax
jne 0x5421ad
mov ecx, dword [esp + 0x34]
mov dword [edi], ecx
mov ecx, dword [esp + 0x80]
mov dword [edi + 0xc], ecx
mov ecx, dword [0xa8f2d0]
test ecx, ecx
jne 0x542197
mov eax, dword [esp + 0x7c]
mov dword [edi + 8], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
lea eax, [0x7fe460]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edi
add esp, 0x64
ret
lea ecx, [edi + 8]
mov eax, edi
mov edi, ecx
mov edx, eax
mov eax, dword [esp + 0x7c]
call fcn.0044c9e0
mov edi, edx
jmp 0x54215e
mov eax, dword [esp + 0x34]
call fcn.0044c9e0
jmp 0x542143
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
add esp, 0x64
ret
mov eax, edi
mov edi, ecx
mov ebx, eax
mov eax, edx
call fcn.0044c9e0
mov edi, ebx
jmp 0x5420dd
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], edx
lea edx, [0x745840]
mov dword [esp], edx
mov ebx, dword [esp + 0x34]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
call fcn.00438b40
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x28]
jmp 0x5420c2
mov edi, esp
lea esi, [esp + 0x3c]
call fcn.0044cfbe
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
call eax
movzx eax, byte [esp + 0x14]
test al, al
jne 0x54208e
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x34]
jmp 0x5420dd
xor edi, edi
xor ebp, ebp
xor esi, esi
jmp 0x5420ee
call fcn.0044b280
jmp fcn.00542010