Function at 0x478b57
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x52510f
call fcn.0051f0b4
sub esp, 0xdc
push ebx
push esi
xor ebx, ebx
push edi
push ebx
mov dword [ebp - 0x10], ebx
call fcn.004eaf62
pop ecx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x14]
push eax
push 7
mov dword [ebp - 0x14], ebx
call fcn.00460cd7
mov esi, dword [ebp + 8]
xor edi, edi
inc edi
add esi, 0x38
lea ecx, [ebp - 0xb8]
mov eax, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edi
call fcn.00435802
mov eax, dword [eax]
mov ecx, dword [eax]
push ebx
push dword [ebp - 0x14]
push ebx
push 0x1a
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x478be3
cmp dword [ebp - 0x14], ebx
je 0x478be3
lea ecx, [ebp - 0xe8]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 3
call fcn.00435802
mov eax, dword [eax]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
je 0x478be3
xor al, al
jmp 0x478be5
mov al, 1
test byte [ebp - 0x10], 2
je 0x478bef
and dword [ebp - 0x10], 0xfffffffd
test byte [ebp - 0x10], 1
je 0x478bf9
and dword [ebp - 0x10], 0xfffffffe
cmp al, bl
je 0x478c7a
or dword [ebp - 0x10], 4
lea ecx, [ebp - 0x68]
mov eax, esi
mov dword [ebp - 0x1c], ebx
call fcn.00435802
mov eax, dword [eax]
mov ecx, dword [eax]
push ebx
push dword [ebp - 0x14]
push ebx
push 0x1e
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x478c48
cmp dword [ebp - 0x14], ebx
je 0x478c48
or dword [ebp - 0x10], 8
lea ecx, [ebp - 0x98]
lea eax, [ebp - 0x14]
call fcn.00435802
mov eax, dword [eax]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
je 0x478c48
xor al, al
jmp 0x478c4a
mov al, 1
test byte [ebp - 0x10], 8
je 0x478c54
and dword [ebp - 0x10], 0xfffffff7
test byte [ebp - 0x10], 4
je 0x478c5e
and dword [ebp - 0x10], 0xfffffffb
cmp al, bl
je 0x478c7a
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x478c73
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x478e82
lea ecx, [ebp - 0xd8]
lea eax, [ebp - 0x14]
call fcn.00435802
mov eax, dword [eax]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
shr esi, 2
lea ecx, [ebp - 0x78]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x28], esi
call fcn.00435802
mov eax, dword [eax]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp - 0x34], eax
xor eax, eax
cmp esi, ebx
mov dword [ebp - 0x20], eax
jle 0x478e6f
mov ecx, dword [ebp - 0x34]
mov esi, dword [ecx + eax*4]
cmp esi, ebx
je 0x478e5c
push 0x1e
pop edi
cmp dword [ebp - 0x1c], ebx
je 0x478cd4
push 0x1a
pop edi
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x18]
push eax
push 7
mov byte [ebp - 4], 1
call fcn.00460cd7
test eax, eax
jl 0x478d3b
mov eax, dword [ebp + 8]
or dword [ebp - 0x10], 0x10
lea ecx, [ebp - 0x88]
add eax, 0x38
call fcn.00435802
mov eax, dword [eax]
mov ecx, dword [eax]
push ebx
push dword [ebp - 0x18]
push esi
push edi
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x478d3b
cmp dword [ebp - 0x18], ebx
je 0x478d3b
or dword [ebp - 0x10], 0x20
lea ecx, [ebp - 0xa8]
lea eax, [ebp - 0x18]
call fcn.00435802
mov eax, dword [eax]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
cmp eax, 0x2440
jne 0x478d3b
mov al, 1
jmp 0x478d3d
xor al, al
test byte [ebp - 0x10], 0x20
je 0x478d47
and dword [ebp - 0x10], 0xffffffdf
test byte [ebp - 0x10], 0x10
je 0x478d51
and dword [ebp - 0x10], 0xffffffef
cmp al, bl
je 0x478d71
lea ecx, [ebp - 0xc8]
lea eax, [ebp - 0x18]
call fcn.00435802
mov eax, dword [eax]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
cmp esi, ebx
jne 0x478d8a
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x478e5c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x478e5c
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0x58], ebx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea edi, [esi + 0x21c]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x478dc0
lea eax, [ebp - 0x58]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x478dc0
push 9
pop ecx
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x478dcd
mov eax, dword [esi + 0xcf0]
mov dword [esi + 0xcf0], eax
cmp dword [ebp - 0x38], ebx
je 0x478de5
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call fcn.00478b33
jmp 0x478de7
xor eax, eax
lea edi, [esi + 0xcf4]
mov dword [edi], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0xd0], 1
jne 0x478e33
lea eax, [esi + 0x21c]
push eax
mov dword [ebp - 0x2c], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x478e33
mov eax, dword [ebp - 0x30]
sub eax, dword [edi]
cmp eax, 0x93a80
jle 0x478e33
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push dword [ebp - 0x2c]
call fcn.00401f01
call fcn.004774c8
jmp 0x478d71
cmp dword [esi + 0x210], ebx
jne 0x478e95
lea ebx, [esi + 0x21c]
call fcn.004790e2
test eax, eax
jne 0x478e93
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x478e5a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor ebx, ebx
mov eax, dword [ebp - 0x20]
inc eax
cmp eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
jl 0x478cbb
xor edi, edi
inc edi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x478e80
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
xor ebx, ebx
lea edi, [esi + 0xcfc]
cmp dword [edi], 1
jge 0x478ea9
push ebx
call fcn.004eaf62
pop ecx
mov dword [edi], eax
push 0x38a0
call fcn.004ea1a3
pop ecx
mov dword [eax + 0x3888], 1
mov dword [ebp - 0x24], eax
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00471d40
mov edi, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], ebx
je 0x478eef
mov eax, dword [edi + 8]
mov ecx, eax
shr ecx, 1
and ecx, 0x7f800000
and eax, 0xffffff
add eax, ecx
mov dword [edi + 8], eax
mov ebx, dword [ebp + 8]
lea eax, [edi + 8]
push eax
add ebx, 0x84
call fcn.00449ca8
mov dword [eax], edi
lea eax, [edi + 0xafc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
add edi, 0xd04
mov edx, eax
push edi
mov eax, 0xc8
call section..text
xor ebx, ebx
jmp 0x478d71