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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x24]
cmp eax, dword [ecx + 8]
jbe 0x517e40
sub esp, 0xa4
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov ebp, dword [esp + 0xb0]
movzx esi, byte [ebp]
xchg esi, eax
test al, al
xchg esi, eax
je 0x517a9b
mov ecx, dword [esp + 0xb4]
test ecx, ecx
je 0x517a6a
mov edx, dword [ecx + 8]
test edx, edx
je 0x517a6a
mov byte [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
lea edx, [esp + 0x94]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.005197f0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x517a58
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov eax, dword [esp + 0xac]
mov ebp, dword [esp + 0xb0]
jmp 0x517a9b
mov dword [esp + 0xb8], 0
add esp, 0xa4
ret
mov eax, dword [esp + 0xa8]
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 1
call fcn.00516aa0
mov eax, dword [esp + 0xc]
mov dword [esp + 0xb8], eax
add esp, 0xa4
ret
mov esi, dword [ebp + 8]
mov dword [esp + 0x48], esi
mov edi, dword [ebp + 4]
mov dword [esp + 0x70], edi
mov ebp, dword [ebp + 0xc]
mov dword [esp + 0x4c], ebp
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x517cdf
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], edx
mov ebp, dword [esp + 0xa8]
cmp eax, ebp
je 0x517b0e
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 4]
mov ebx, dword [eax + 0xc]
mov edx, dword [eax + 4]
test esi, esi
je 0x517cb2
test ebx, ebx
je 0x517cb2
lea esi, [edi + esi*4 - 4]
lea edx, [edx + ebx*4 - 4]
cmp edx, esi
jne 0x517cb2
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x70]
mov byte [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
lea esi, [esp + 0x84]
cmp eax, esi
je 0x517ca9
mov dword [esp + 0x74], ecx
mov esi, dword [eax + 8]
mov edi, dword [eax + 4]
test esi, esi
jg 0x517b73
mov dword [esp + 0x64], eax
xor eax, eax
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 0x6c], eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x64]
jmp 0x517c3b
mov dword [esp + 0x58], esi
mov dword [esp + 0x78], edi
cmp esi, 1
jne 0x517be4
lea eax, [0x627d20]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044b0b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0xa8]
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x78]
mov ecx, 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x6c], eax
mov edx, 1
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x50]
jmp 0x517c3b
lea eax, [0x627d20]
mov dword [esp], eax
mov dword [esp + 4], esi
lea eax, [esi + 4]
mov dword [esp + 0x40], eax
mov dword [esp + 8], eax
call fcn.0044b0b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0xa8]
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x78]
mov dword [esp + 0x44], esi
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x74]
mov ebx, dword [esp + 0x44]
cmp ebx, esi
jg 0x517c45
mov esi, ebx
mov edx, dword [esp + 0x6c]
cmp edx, edi
je 0x517c7a
mov dword [esp], edx
mov dword [esp + 4], edi
shl esi, 2
mov dword [esp + 8], esi
call fcn.00463030
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0xa8]
mov dword [esp + 0x8c], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x88], edx
movzx eax, byte [eax]
mov byte [esp + 0x84], al
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0x70]
lea eax, [esp + 0x84]
jmp 0x517cbe
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0x70]
mov esi, dword [eax + 4]
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x60], eax
mov dword [esp + 0x7c], esi
mov esi, dword [esp + 0x48]
mov eax, edi
mov edi, dword [esp + 0x70]
jmp 0x517cef
xor eax, eax
xor eax, eax
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x7c], eax
xor eax, eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xa8]
mov ebp, dword [eax + 4]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x28], edx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x2c], ebx
call fcn.0051e070
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0xa8]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
lea edi, [ebx + 4]
mov edx, dword [0x87bd00]
test edx, edx
jne 0x517d76
mov dword [ebx + 4], ecx
jmp 0x517d81
mov edx, eax
mov eax, ecx
call fcn.004626c0
mov eax, edx
test eax, eax
je 0x517dab
mov eax, dword [esp + 0xac]
movzx eax, byte [eax]
test al, al
je 0x517dab
mov eax, dword [esp + 0x48]
test eax, eax
je 0x517dab
mov eax, dword [esp + 0x70]
mov eax, dword [eax]
test eax, 1
setne al
jmp 0x517dad
xor eax, eax
mov byte [ebx], al
test al, al
je 0x517e32
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x517e32
mov dword [esp + 0x80], edi
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov ebp, dword [ebx + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x7c]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebp
call fcn.0051ac60
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0xa8]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov ecx, dword [0x87bd00]
test ecx, ecx
jne 0x517e23
mov dword [ebx + 4], eax
jmp 0x517e2f
mov edi, dword [esp + 0x80]
call fcn.004626c0
mov byte [ebx], 0
mov dword [esp + 0xb8], ebx
add esp, 0xa4
ret
call fcn.004612b0
jmp fcn.005179a0