Function at 0x473840
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce456
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x50b3e0]
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 0x47389e
xor eax, eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
jmp 0x473e3a
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
lea eax, [ebp - 0x94]
mov dword [ebp - 4], 0
push eax
call fcn.00475780
add esp, 4
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.00408330
mov edi, dword [ebp - 0x90]
mov byte [ebp - 4], 1
cmp edi, dword [ebp - 0x8c]
je 0x47394e
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 0x473967
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0x94]
call fcn.00402630
mov edi, dword [ebp - 0x90]
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x4739a2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x473998
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x473e58
push edx
push ecx
call fcn.0048c65e
add esp, 8
mov ecx, dword [ebp - 0x94]
mov esi, ecx
cmp esi, edi
je 0x473cd3
lea eax, [ebp - 0x88]
push eax
call fcn.00475fb0
add esp, 4
push 1
push 0x4d70f4
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00402d70
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 0x473a27
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x70]
push eax
call fcn.00402d70
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 0x4d70f4
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00402d70
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 0x473ae6
mov eax, dword [ecx]
push dword [ecx + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.00402d70
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 0x473b76
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x473b6c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x473e5d
push edx
push ecx
call fcn.0048c65e
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 0x473bc8
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x473bbe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x473e5d
push edx
push ecx
call fcn.0048c65e
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 0x473c1a
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x473c10
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x473e5d
push edx
push ecx
call fcn.0048c65e
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 0x473c6e
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x473c64
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x473e5d
push edx
push ecx
call fcn.0048c65e
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 0x473d93
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x473cc2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x473cb8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x473e5d
push edx
push ecx
call fcn.0048c65e
add esp, 8
add esi, 0x18
cmp esi, edi
jne 0x4739b2
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 0x473e3a
mov esi, ecx
cmp esi, edi
je 0x473d4d
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x473d2d
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x473d23
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x473e58
mov eax, edx
push ecx
push eax
call fcn.0048c65e
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 0x473cf4
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 0x473e30
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x473e58
jmp 0x473e30
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 0x473e3a
lea eax, [ebp - 0x94]
push eax
push edi
push esi
call fcn.004025c0
mov ecx, dword [ebp - 0x8c]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 0xc
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x473e2c
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x473e5d
push ecx
push esi
jmp 0x473e32
push edx
push ecx
call fcn.0048c65e
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.0048c66c
mov esp, ebp
pop ebp
ret
call fcn.00497fa9
call fcn.00497fa9
int3