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

Disassembly:
mov ecx, dword [0x7c3e14]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x51660d
sub esp, 0x58
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x64]
xor edx, edx
xor ebp, ebp
xor esi, esi
xor edi, edi
jmp 0x5163f1
add eax, 0x14
inc edx
cmp ebx, edx
jle 0x51652a
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x40], eax
lea edi, [esp + 0x44]
mov esi, eax
call fcn.00468aee
mov ecx, dword [esp + 0x5c]
test ecx, ecx
jne 0x516427
mov esi, 1
jmp 0x516456
mov eax, dword [ecx]
lea edi, [esp]
lea esi, [esp + 0x44]
call fcn.00468aee
mov edx, dword [esp + 0x5c]
call eax
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x24]
mov esi, eax
mov eax, dword [esp + 0x40]
xchg esi, eax
test al, al
xchg esi, eax
jne 0x516466
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x34]
jmp 0x5163ed
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x6c]
mov ecx, dword [edx]
mov dword [esp + 0x28], ecx
lea edi, [esp]
lea esi, [esp + 0x44]
call fcn.00468aee
mov ecx, dword [esp + 0x28]
call ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x2c]
cmp ebx, ebp
jb 0x5164a5
mov edi, dword [esp + 0x34]
jmp 0x5164eb
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x5e7020]
mov dword [esp + 0x10], eax
call fcn.0044db70
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
mov ebx, ebp
mov ebp, eax
mov eax, dword [esp + 0x38]
lea edx, [edi + ebp*8 - 8]
mov dword [edx], ecx
mov ecx, dword [0x7c3fa0]
lea edx, [edi + ebp*8 - 4]
test ecx, ecx
je 0x51650f
mov ecx, edi
call fcn.00468410
mov dword [edi], eax
mov esi, dword [edx]
mov dword [edi + 4], esi
mov edi, ecx
mov dword [edx], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x30]
mov esi, ebp
mov ebp, ebx
mov ebx, dword [esp + 0x64]
jmp 0x5163ed
test esi, esi
jne 0x5165e4
mov eax, dword [0x792db0]
mov ecx, dword [0x792db4]
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 + 0x3c], ecx
lea edx, [0x5eb320]
mov dword [esp], edx
call fcn.0040c420
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [0x7c3fa0]
test ecx, ecx
jne 0x51657f
mov ecx, dword [esp + 0x3c]
jmp 0x51658a
call fcn.00468400
mov ecx, dword [esp + 0x3c]
mov dword [edi], ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x7c3fa0]
test ecx, ecx
jne 0x5165a3
mov ecx, dword [esp + 0x70]
jmp 0x5165ae
call fcn.00468400
mov ecx, dword [esp + 0x70]
mov dword [edi], ecx
mov dword [eax + 8], ecx
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea ecx, [0x659d9c]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x58
ret
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x58
ret
call fcn.00467000
jmp fcn.005163c0