Function at 0x46d410
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x544f7e
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x58d038]
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 0x46d471
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ebx
mov word [eax], cx
jmp 0x46d66a
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.0046d250
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.00401b70
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 1
call fcn.00406860
mov esi, 8
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], esi
jb 0x46d4e0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00480102
add esp, 4
mov edi, dword [ebp - 0xac]
cmp edi, dword [ebp - 0xa8]
je 0x46d625
lea eax, [ebp - 0x64]
push eax
call fcn.00469e70
push 0x54bf94
push eax
lea ecx, [ebp - 0x9c]
push ecx
mov byte [ebp - 4], 2
call fcn.00404e30
push edi
push eax
lea edx, [ebp - 0x80]
push edx
mov byte [ebp - 4], 3
call fcn.00410870
push 0x54bf94
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 4
call fcn.00404e30
mov ecx, dword [ebp - 0xb8]
push ecx
push eax
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp - 4], 5
call fcn.00410870
add esp, 0x34
cmp dword [ebp - 0x34], esi
jb 0x46d55c
mov eax, dword [ebp - 0x48]
push eax
call fcn.00480102
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 0x46d57d
mov edx, dword [ebp - 0x80]
push edx
call fcn.00480102
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 0x46d5a4
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.00480102
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 0x46d5d2
mov eax, dword [ebp - 0x64]
push eax
call fcn.00480102
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 0x46d5ed
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46d686
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], esi
jb 0x46d610
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00480102
add esp, 4
add edi, 0x1c
cmp edi, dword [ebp - 0xa8]
jne 0x46d4f2
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 0x46d668
mov edx, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xa8]
push edx
lea eax, [ebp - 0xa0]
push eax
push ecx
push edi
call fcn.004025e0
mov edx, dword [ebp - 0xac]
push edx
call fcn.00480102
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.00480264
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.00402560
cmp dword [ebp - 0x18], esi
jb 0x46d6b7
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00480102
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 0x46d6f5
mov ecx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xa8]
push ecx
lea edx, [ebp - 0xa0]
push edx
push eax
push esi
call fcn.004025e0
push esi
call fcn.00480102
add esp, 0x14
mov eax, edi
jmp 0x46d66a