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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5075d9
sub esp, 0x74
xor eax, eax
mov ecx, dword [esp + 0x7c]
mov edx, eax
mov ebx, edx
xor ebp, ebp
jmp 0x507389
mov eax, dword [esp + 0x48]
lea ecx, [eax + 0x14]
mov eax, dword [esp + 0x30]
inc eax
mov edx, ebx
mov ebx, edi
mov ebp, esi
mov esi, ebp
mov ebp, dword [esp + 0x80]
cmp eax, ebp
jge 0x5074c5
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], esi
lea edi, [esp + 0x60]
mov esi, ecx
call fcn.0044cd6e
lea edi, [esp + 0x4c]
lea esi, [esp + 0x60]
call fcn.0044cd6e
mov ecx, dword [esp + 0x78]
test ecx, ecx
jne 0x507494
mov edi, esp
lea esi, [esp + 0x4c]
call fcn.0044cd6e
mov edx, dword [esp + 0x88]
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0x20]
lea ecx, [eax + 1]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov edx, ebx
mov ebx, dword [esp + 0x24]
cmp ecx, ebx
jg 0x50744a
mov esi, dword [esp + 0x44]
mov edi, ecx
lea ecx, [esi + eax*8]
mov dword [ecx], ebp
lea eax, [esi + eax*8 + 4]
mov ecx, dword [0x9cadb0]
test ecx, ecx
jne 0x507421
mov dword [eax], edx
jmp 0x507377
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040ecd0
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x2c]
jmp 0x507377
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], ebp
lea edx, [0x6da480]
mov dword [esp], edx
mov ebp, dword [esp + 0x44]
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
call fcn.004391a0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
jmp 0x507405
mov edi, esp
lea esi, [esp + 0x4c]
call fcn.0044cd6e
mov edx, dword [esp + 0x78]
mov eax, dword [edx]
call eax
movzx eax, byte [esp + 0x14]
test al, al
jne 0x5073d2
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
jmp 0x507377
test ebx, ebx
jne 0x5075aa
mov eax, dword [0x9b8d28]
mov ecx, dword [0x9b8d2c]
mov eax, dword [eax + 0x10]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 8]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x44], ecx
lea edx, [0x6dfe80]
mov dword [esp], edx
call fcn.0040e460
mov eax, dword [esp + 4]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [0x9cadb0]
test ecx, ecx
jne 0x507591
mov ecx, dword [esp + 0x44]
mov dword [eax], ecx
mov ecx, dword [esp + 0x90]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x9cadb0]
lea edx, [eax + 8]
test ecx, ecx
jne 0x507578
mov ecx, dword [esp + 0x8c]
mov dword [eax + 8], ecx
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
lea ecx, [0x79b760]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], eax
add esp, 0x74
ret
mov dword [esp], edx
mov eax, dword [esp + 0x8c]
mov dword [esp + 4], eax
call fcn.0040ecd0
mov eax, dword [esp + 0x38]
jmp 0x50753f
mov dword [esp], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 4], ecx
call fcn.0040ecd0
mov eax, dword [esp + 0x38]
jmp 0x50751e
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
add esp, 0x74
ret
call fcn.0044ae20
jmp fcn.00507350