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

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x507d2f
sub esp, 0x7c
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov ecx, dword [esp + 0x84]
mov dword [esp + 4], ecx
lea edx, [0x70229b]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
call fcn.0047d0c0
movzx eax, byte [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
test al, al
je 0x507c9c
mov dword [esp + 0x40], ecx
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x5c], ecx
mov edx, dword [esp + 0x14]
lea edi, [esp + 0x64]
xor eax, eax
call fcn.004773db
mov ecx, dword [esp + 0x5c]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.004e7230
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x34], ecx
lea edi, [esp + 0x64]
lea esi, [esp + 8]
call fcn.004778be
lea edi, [esp + 0x48]
lea esi, [esp + 0x64]
call fcn.004778be
mov ecx, dword [esp + 0x34]
test ecx, ecx
jne 0x5079be
lea edi, [esp]
lea esi, [esp + 0x64]
call fcn.004778be
call fcn.004e8780
mov eax, dword [esp + 0x18]
test eax, eax
je 0x507a51
lea eax, [0x6d4780]
mov dword [esp], eax
call fcn.0040dea0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xc
lea ecx, [0x7048e6]
mov dword [eax], ecx
mov ecx, dword [esp + 0x84]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x8c88d8]
test ecx, ecx
jne 0x5079fc
mov ecx, dword [esp + 0x80]
jmp 0x507a0a
call fcn.004772e0
mov ecx, dword [esp + 0x80]
mov dword [edi], ecx
mov dword [eax + 8], ecx
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
lea ecx, [0x734990]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
add esp, 0x7c
ret
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
call fcn.005106b0
movzx eax, byte [esp + 0x10]
test al, al
je 0x507c09
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jne 0x507c09
mov eax, dword [esp + 8]
test eax, eax
jl 0x507c09
mov dword [esp + 0x24], eax
lea edi, [esp]
lea esi, [esp + 0x48]
call fcn.004778be
call fcn.004e8730
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x14], eax
jl 0x507c09
lea edi, [esp]
lea esi, [esp + 0x48]
call fcn.004778be
call fcn.004e8730
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00506640
mov eax, dword [esp + 8]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x30], edx
lea ebx, [0x6bb060]
mov dword [esp], ebx
call fcn.0040dea0
mov eax, dword [esp + 4]
mov dword [esp + 0x78], eax
lea edi, [esp]
lea esi, [esp + 0x48]
call fcn.004778be
call fcn.004e8d80
mov edi, dword [esp + 0x78]
lea esi, [esp + 0x14]
call fcn.004778c8
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov dword [esp + 4], 0x10
mov dword [esp + 8], 0x10
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x14], ebx
call fcn.00506af0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x60], edx
lea ebx, [0x6d46c0]
mov dword [esp], ebx
call fcn.0040dea0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov ecx, dword [0x8c88d8]
test ecx, ecx
jne 0x507ba2
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x44]
jmp 0x507bb4
call fcn.004772f0
mov ecx, dword [esp + 0x60]
mov dword [edi], ecx
mov edx, dword [esp + 0x44]
mov dword [edi + 4], edx
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x14], ecx
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], 0x10
mov dword [esp + 0x90], 0x10
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
add esp, 0x7c
ret
lea eax, [0x6d4780]
mov dword [esp], eax
call fcn.0040dea0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xc
lea ecx, [0x7048e6]
mov dword [eax], ecx
mov ecx, dword [esp + 0x84]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x8c88d8]
test ecx, ecx
jne 0x507c47
mov ecx, dword [esp + 0x80]
jmp 0x507c55
call fcn.004772e0
mov ecx, dword [esp + 0x80]
mov dword [edi], ecx
mov dword [eax + 8], ecx
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
lea ecx, [0x734990]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
add esp, 0x7c
ret
lea eax, [0x6d4780]
mov dword [esp], eax
call fcn.0040dea0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xc
lea ecx, [0x7048e6]
mov dword [eax], ecx
mov ecx, dword [esp + 0x84]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x8c88d8]
test ecx, ecx
jne 0x507cda
mov ecx, dword [esp + 0x80]
jmp 0x507ce8
call fcn.004772e0
mov ecx, dword [esp + 0x80]
mov dword [edi], ecx
mov dword [eax + 8], ecx
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
lea ecx, [0x734990]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
add esp, 0x7c
ret
call fcn.00475ee0
jmp fcn.005078f0