Function at 0x475c00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498716
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4be434]
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 eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x98], eax
cmp dword [eax + 0x10], 0
jne 0x475c5e
xor eax, eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
jmp 0x47624f
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x94]
mov dword [ebp - 4], 0
push eax
call fcn.00478150
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
push 7
push str.default
call fcn.00407630
mov edi, dword [ebp - 0x90]
mov byte [ebp - 4], 1
cmp edi, dword [ebp - 0x8c]
je 0x475d11
mov eax, dword [ebp - 0x28]
mov edx, 7
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x14], eax
xor eax, eax
add edi, 0x18
mov word [ebp - 0x28], ax
mov dword [ebp - 0x90], edi
jmp 0x475d2a
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0x94]
call fcn.00401720
mov edi, dword [ebp - 0x90]
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x475d65
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x475d5b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476158
push edx
push ecx
call fcn.004876f4
add esp, 8
mov ecx, dword [ebp - 0x94]
mov esi, ecx
cmp esi, edi
je 0x4760a1
jmp 0x475d80
lea eax, [ebp - 0x88]
push eax
call fcn.00478870
add esp, 4
push 1
push 0x49c984
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00401d80
mov edx, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov ecx, dword [edx]
mov dword [ebp - 0x70], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x6c], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x68], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x64], ecx
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x5c], eax
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
cmp dword [esi + 0x14], 8
mov eax, esi
mov byte [ebp - 4], 3
jb 0x475df5
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x70]
push eax
call fcn.00401d80
mov edx, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov ecx, dword [edx]
mov dword [ebp - 0x58], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x54], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x50], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x4c], ecx
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
push 1
push 0x49c984
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00401d80
mov edx, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov ecx, dword [edx]
mov dword [ebp - 0x40], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x38], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x34], ecx
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov ecx, dword [ebp - 0x98]
mov eax, ecx
mov byte [ebp - 4], 5
cmp dword [ecx + 0x14], 8
jb 0x475eb4
mov eax, dword [ecx]
push dword [ecx + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.00401d80
mov edx, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 4
mov ecx, dword [edx]
mov dword [ebp - 0x28], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x24], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x1c], ecx
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x475f44
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x475f3a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47623f
push edx
push ecx
call fcn.004876f4
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x475f96
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x475f8c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47623f
push edx
push ecx
call fcn.004876f4
add esp, 8
mov edx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x475fe8
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x475fde
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47623f
push edx
push ecx
call fcn.004876f4
add esp, 8
mov edx, dword [ebp - 0x74]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov byte [ebp - 4], al
cmp edx, 8
jb 0x47603c
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x476032
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47623f
push edx
push ecx
call fcn.004876f4
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47615e
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x476090
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x476086
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47623f
push edx
push ecx
call fcn.004876f4
add esp, 8
add esi, 0x18
cmp esi, edi
jne 0x475d80
mov ecx, dword [ebp - 0x94]
xor eax, eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
test ecx, ecx
je 0x47624f
mov esi, ecx
cmp esi, edi
je 0x476117
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x4760f7
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4760ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476158
mov eax, edx
push ecx
push eax
call fcn.004876f4
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x4760c2
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp - 0x8c]
mov eax, 0x2aaaaaab
sub edx, ecx
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
mov eax, ecx
shl edx, 3
cmp edx, 0x1000
jb 0x476245
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x476245
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x94]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x47624f
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x4761e6
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4761dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47623f
mov eax, edx
push ecx
push eax
call fcn.004876f4
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x4761b1
mov ecx, dword [ebp - 0x94]
mov eax, 0x2aaaaaab
mov edx, dword [ebp - 0x8c]
sub edx, ecx
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
mov eax, ecx
shl edx, 3
cmp edx, 0x1000
jb 0x476245
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x476245
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
mov eax, ebx
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.00487702
mov esp, ebp
pop ebp
ret