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

Disassembly:
mov ecx, dword [0x6d0e30]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x507dc5
sub esp, 0x5c
mov eax, dword [esp + 0x88]
test eax, eax
je 0x507a09
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
jmp 0x507a13
xor eax, eax
xor ecx, ecx
lea edx, [0x6d0d00]
mov dword [esp + 0x48], eax
mov ebx, dword [esp + 0x64]
test ebx, ebx
je 0x507a2d
mov eax, dword [esp + 0x60]
mov ebp, dword [esp + 0x7c]
mov esi, dword [esp + 0x70]
jmp 0x507a45
mov ebp, dword [esp + 0x7c]
mov esi, dword [esp + 0x70]
lea edi, [esi + ebp]
mov eax, dword [esp + 0x60]
cmp dword [eax + 0x4c], edi
jg 0x507c3c
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x507bbd
mov dword [esp + 0x58], edx
mov dword [esp + 0x44], ecx
test ebx, ebx
jne 0x507a68
lea edi, [esi + ebp]
cmp dword [eax + 0x14], edi
jg 0x507b4a
mov dword [esp], eax
call fcn.0050aa40
mov eax, dword [esp + 4]
test byte [eax], al
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x507abc
nop
mov dword [eax + 0x68], ecx
mov ebx, dword [0x6d0ed8]
test ebx, ebx
jne 0x507a92
mov ebx, dword [esp + 0x68]
jmp 0x507aa3
call fcn.00464b00
mov ebx, dword [esp + 0x68]
mov dword [edi], ebx
mov ebp, dword [eax + 0x6c]
mov dword [edi + 4], ebp
mov dword [eax + 0x6c], ebx
mov byte [eax + 0x70], 0
mov dword [eax + 0x74], 0
lea ebx, [eax + 0x68]
lea ecx, [0x5b6954]
jmp 0x507b2d
mov ebx, dword [esp + 0x6c]
test ebx, ebx
je 0x507af8
nop
mov ebp, dword [esp + 0x70]
mov dword [eax + 0x58], ebp
mov ebp, dword [esp + 0x74]
mov dword [eax + 0x5c], ebp
mov ebp, dword [0x6d0ed8]
test ebp, ebp
je 0x507aea
call fcn.00464b00
mov dword [edi], ebx
mov ebp, dword [eax + 0x54]
mov dword [edi + 4], ebp
mov dword [eax + 0x54], ebx
lea ebx, [eax + 0x54]
lea ecx, [0x5b699c]
jmp 0x507b2d
nop
mov ebx, dword [esp + 0x7c]
mov dword [eax + 0x64], ebx
mov ebx, dword [0x6d0ed8]
test ebx, ebx
jne 0x507b10
mov ebx, dword [esp + 0x78]
jmp 0x507b21
call fcn.00464b00
mov ebx, dword [esp + 0x78]
mov dword [edi], ebx
mov ebp, dword [eax + 0x60]
mov dword [edi + 4], ebp
mov dword [eax + 0x60], ebx
lea ebx, [eax + 0x60]
lea ecx, [0x5b6978]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x4c], ebx
nop
mov ebp, dword [eax + 0x38]
mov esi, dword [eax + 0x3c]
mov edi, dword [esp + 0x84]
xor edx, edx
jmp 0x507c6d
mov dword [esp], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
mov dword [esp + 8], esi
mov eax, dword [esp + 0x74]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x80]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x48]
mov dword [esp + 0x28], eax
call fcn.00505e10
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
add esp, 0x5c
ret
mov dword [esp], eax
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x80]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], eax
call fcn.005071d0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
add esp, 0x5c
ret
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
add esp, 0x5c
ret
mov dword [ebx + 8], edi
inc edx
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x4c]
cmp edx, esi
jge 0x507c81
mov ebx, dword [ebp + edx*4]
mov ecx, dword [ebx + 0xc]
cmp edi, ecx
jbe 0x507c61
jmp 0x507dbb
mov edx, dword [eax + 0x50]
cmp edi, edx
ja 0x507db4
mov dword [esp + 0x50], eax
mov dword [eax + 0x4c], edi
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0xc], ecx
call fcn.005062f0
movzx eax, byte [esp + 0x10]
test al, al
je 0x507d7b
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 0x4c]
mov edx, dword [esp + 0x44]
lea ebx, [ecx + edx]
mov ebp, dword [eax + 0x48]
mov esi, dword [esp + 0x48]
cmp esi, ebx
jb 0x507cda
mov edi, dword [esp + 0x58]
jmp 0x507d20
mov dword [esp + 0x54], ebp
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
lea eax, [0x557780]
mov dword [esp + 0x10], eax
call fcn.0044b6b0
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x54]
mov edi, edx
mov esi, eax
mov edx, dword [esp + 0x44]
mov dword [esp + 0x58], edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], esi
lea eax, [edi + edx*4]
mov dword [esp], eax
mov dword [esp + 4], ebp
shl ecx, 2
mov dword [esp + 8], ecx
call fcn.004653e0
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
call fcn.0050ad90
mov eax, dword [esp + 0x58]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x9c], eax
add esp, 0x5c
ret
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
call fcn.0050ad90
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
add esp, 0x5c
ret
mov ecx, edi
call fcn.00464bb0
mov edx, ecx
mov ecx, edi
call fcn.00464bb0
nop
call fcn.004636f0
jmp fcn.005079d0