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

Disassembly:
push 0xffffffffffffffff
push 0x605fd0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x7c]
mov edi, dword [ebp + 8]
cmp dword [ebp + 4], edi
jbe 0x517d58
call fcn.005d29f1
mov esi, dword [ebp + 4]
cmp esi, dword [ebp + 8]
jbe 0x517d65
call fcn.005d29f1
push edi
push ebp
push esi
push ebp
lea eax, [esp + 0x40]
push eax
push ebp
call fcn.005181d0
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x74], ebx
test byte [0x6809c4], 1
jne 0x517daf
or dword [0x6809c4], 1
push 0x613fd0
call fcn.005d268a
add esp, 4
lea ecx, [esp + 0x28]
push ecx
call fcn.005c9580
lea edx, [esp + 0x28]
push edx
lea edi, [esp + 0x3c]
mov byte [esp + 0x78], 1
call fcn.00517990
test eax, eax
jne 0x517f3e
mov ecx, dword [esp + 0x3c]
cmp ecx, ebx
jbe 0x517f3e
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], ecx
jmp 0x517dfa
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x7c]
xor ebx, ebx
mov edi, eax
add eax, 2
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x50]
push eax
call fcn.00517fd0
mov byte [esp + 0x74], 2
movzx eax, word [edi]
mov edx, dword [esp + 0x44]
lea ecx, [eax + eax*2]
mov ax, word [edx + ecx*4]
lea esi, [edx + ecx*4]
mov word [esp + 0x18], ax
lea eax, [esp + 0x18]
mov dword [esp + 0x30], esi
mov word [esp + 0x1a], bx
lea edx, [eax + 2]
jmp 0x517e40
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x517e40
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x18]
mov ebx, eax
push ecx
lea eax, [esp + 0x54]
call fcn.004037a0
mov eax, 0xaaaaaaab
mul dword [esi + 8]
mov eax, dword [esp + 0x4c]
shr edx, 1
lea edi, [eax + edx*2]
add edi, edx
test byte [edi], 0xf
mov dword [esp + 0x20], 0
jbe 0x517efb
mov ebp, edi
movzx ecx, byte [ebp]
mov bx, word [ebp + 1]
shr cl, 4
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00510fa0
add esp, 8
mov byte [esp + 0x74], 3
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
je 0x517eba
lea ebx, [esp + 0x1c]
lea esi, [esp + 0x54]
call fcn.00427a70
mov esi, dword [esp + 0x30]
mov byte [esp + 0x74], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x517edf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
movzx ecx, byte [edi]
mov eax, dword [esp + 0x20]
add eax, 1
and ecx, 0xf
add ebp, 3
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x517e81
mov ebp, dword [esp + 0x7c]
mov edx, dword [esi + 4]
add edx, dword [esp + 0x48]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x68]
mov dword [esp + 0x34], edx
call fcn.00517500
lea ecx, [esp + 0x50]
push ecx
mov esi, ebp
call fcn.00518050
mov ebx, 1
lea eax, [esp + 0x50]
mov byte [esp + 0x74], bl
call fcn.0043adf0
sub dword [esp + 0x24], ebx
jne 0x517df0
xor ebx, ebx
mov byte [esp + 0x74], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x517f62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x38]
cmp esi, ebx
je 0x517fad
mov eax, dword [esi]
xor edi, edi
cmp eax, ebx
je 0x517f86
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x517f84
call fcn.0040f010
mov edi, eax
mov dword [esi], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x517fa4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x517fa1
cmp edi, ebx
jl 0x517fa1
call fcn.0040f010
mov dword [esi + 8], ebx
push esi
call fcn.005d2367
add esp, 4
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 4