Function at 0x516ea0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
jg 0x516eb5
jmp 0x5170c4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x84]
jle 0x516ec8
jmp 0x5170c4
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0x88]
jne 0x516edb
jmp 0x5170c4
mov ecx, dword [ebp + 8]
sub ecx, 1
imul edx, ecx, 3
imul eax, edx, 5
mov dword [ebp - 0x10], eax
push 0xc8
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x78]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x78]
mov edx, dword [edx]
push ecx
mov eax, dword [edx + 0xf0]
call eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
jmp 0x516f1b
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x14]
call fcn.005fb540
cmp dword [ebp - 4], eax
jge 0x517058
mov esi, dword [ebp - 4]
add esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
add ecx, 0x9c
call fcn.00514e40
cmp esi, eax
jae 0x517058
mov edx, dword [ebp - 4]
add edx, 0xc9
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ecx + 0xf0]
call eax
mov dword [ebp - 0xc], eax
push 0
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0x9c
call fcn.00517780
add eax, 4
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [eax + 0x54]
call edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x9c
call fcn.00517780
add eax, 4
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [edx + 0x4c]
call ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 8]
add ecx, 0x9c
call fcn.00517780
add eax, 0xc
mov ecx, eax
call fcn.0040d3c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x517000
push 0
push 0
push 0x141
call fcn.004154d0
mov ecx, eax
call fcn.005fea70
push eax
mov ecx, dword [ebp - 0xc]
call fcn.00519010
jmp 0x517023
push 0
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x9c
call fcn.00517780
add eax, 0xc
push eax
mov ecx, dword [ebp - 0xc]
call fcn.00519070
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0x9c
call fcn.00517780
push eax
mov ecx, dword [ebp - 0xc]
call fcn.0056aa70
push 0
push 1
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [eax + 0x20]
call edx
jmp 0x516f12
jmp 0x517063
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
call fcn.005fb540
cmp dword [ebp - 4], eax
jge 0x5170a2
mov ecx, dword [ebp - 4]
add ecx, 0xc9
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [eax + 0xf0]
call edx
mov dword [ebp - 0x18], eax
push 0
push 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ecx + 0x20]
call eax
jmp 0x51705a
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x88], edx
push 0
push 0
mov eax, dword [ebp - 8]
add eax, 0x24
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
push eax
mov eax, dword [edx + 0x20]
call eax
pop esi
mov esp, ebp
pop ebp
ret 4