Function at 0x520f00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532bce
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xb8], ecx
cmp dword [ecx + 0x10], ebx
jne 0x520f61
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ebx
mov word [eax], cx
jmp 0x52115a
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
lea edx, [ebp - 0xac]
push edx
mov dword [ebp - 4], ebx
call fcn.00520d40
add esp, 4
push 7
xor eax, eax
push str.default
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.00402460
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 1
call fcn.004034c0
mov esi, 8
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], esi
jb 0x520fd0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b9008
add esp, 4
mov edi, dword [ebp - 0xac]
cmp edi, dword [ebp - 0xa8]
je 0x521115
lea eax, [ebp - 0x64]
push eax
call fcn.0051f840
push 0x539ff0
push eax
lea ecx, [ebp - 0x9c]
push ecx
mov byte [ebp - 4], 2
call fcn.00402b90
push edi
push eax
lea edx, [ebp - 0x80]
push edx
mov byte [ebp - 4], 3
call fcn.0040d430
push 0x539ff0
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 4
call fcn.00402b90
mov ecx, dword [ebp - 0xb8]
push ecx
push eax
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp - 4], 5
call fcn.0040d430
add esp, 0x34
cmp dword [ebp - 0x34], esi
jb 0x52104c
mov eax, dword [ebp - 0x48]
push eax
call fcn.004b9008
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x6c], esi
jb 0x52106d
mov edx, dword [ebp - 0x80]
push edx
call fcn.004b9008
add esp, 4
xor eax, eax
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], ax
cmp dword [ebp - 0x88], esi
jb 0x521094
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.004b9008
add esp, 4
xor edx, edx
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], dx
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x50], esi
jb 0x5210c2
mov eax, dword [ebp - 0x64]
push eax
call fcn.004b9008
add esp, 4
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
cmp dword [ebp - 0x18], esi
jae 0x5210dd
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x521176
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], esi
jb 0x521100
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b9008
add esp, 4
add edi, 0x1c
cmp edi, dword [ebp - 0xa8]
jne 0x520fe2
mov edi, dword [ebp - 0xac]
mov esi, dword [ebp - 0xb0]
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], cx
cmp edi, ebx
je 0x521158
mov edx, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xa8]
push edx
lea eax, [ebp - 0xa0]
push eax
push ecx
push edi
call fcn.00402c80
mov edx, dword [ebp - 0xac]
push edx
call fcn.004b9008
add esp, 0x14
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0xb0]
lea ecx, [ebp - 0x2c]
xor eax, eax
push ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov ecx, edi
mov word [edi], ax
call fcn.00402630
cmp dword [ebp - 0x18], esi
jb 0x5211a7
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b9008
add esp, 4
mov esi, dword [ebp - 0xac]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp esi, ebx
je 0x5211e5
mov ecx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xa8]
push ecx
lea edx, [ebp - 0xa0]
push edx
push eax
push esi
call fcn.00402c80
push esi
call fcn.004b9008
add esp, 0x14
mov eax, edi
jmp 0x52115a