Function at 0x470fe0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9386
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x6218c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x8c]
add ecx, 0x368
push ecx
call fcn.0043a160
add esp, 8
movzx edx, al
test edx, edx
je 0x4712d0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x8c]
add ecx, 0x368
call fcn.0040b690
mov ecx, dword [ebp - 0x8c]
cmp dword [ecx + 0x364], 0
je 0x4710b6
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx + 0x364]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0x90], ecx
cmp dword [ebp - 0x90], 0
je 0x47109c
push 1
mov edx, dword [ebp - 0x90]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x90]
mov edx, dword [eax]
call edx
mov dword [ebp - 0xa4], eax
jmp 0x4710a6
mov dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0x8c]
mov dword [eax + 0x364], 0
mov ecx, dword [ebp - 0x8c]
add ecx, 0x368
push ecx
lea ecx, [ebp - 0x28]
call fcn.00406d20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00406a40
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4711c1
lea edx, [ebp - 0x88]
push edx
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax + 0x20]
call fcn.0040d430
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0xb0], ecx
mov byte [ebp - 4], 1
lea edx, [ebp - 0x70]
push edx
call fcn.0041cf70
add esp, 4
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xb0]
push ecx
mov edx, dword [ebp - 0xb4]
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.00443e40
add esp, 0xc
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], ecx
mov byte [ebp - 4], 3
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.00443e00
add esp, 0xc
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 0xc0]
push edx
lea ecx, [ebp - 0x28]
call fcn.0040b6c0
lea ecx, [ebp - 0x40]
call fcn.00406c10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00406c10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00406c10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.00406c10
lea ecx, [ebp - 0x28]
call fcn.00406a40
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4711e8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406c10
jmp 0x4712d0
push 0x10
call fcn.0043d470
add esp, 4
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x94], 0
je 0x471223
push 0
lea ecx, [ebp - 0x28]
call fcn.00406a40
push eax
mov ecx, dword [ebp - 0x94]
call fcn.00471320
mov dword [ebp - 0x98], eax
jmp 0x47122d
mov dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0xc4]
mov dword [ecx + 0x364], edx
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax + 0x364]
call fcn.0043d2a0
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
jne 0x4712c1
mov ecx, dword [ebp - 0x8c]
movzx edx, byte [ecx + 0x351]
test edx, edx
je 0x47128c
mov dword [ebp - 0x9c], 1
jmp 0x471296
mov dword [ebp - 0x9c], 3
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0x8c]
mov ecx, dword [ecx + 0x364]
call fcn.00471380
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x8c]
mov edx, dword [eax + 0x2c]
call edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406c10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057029b
mov esp, ebp
pop ebp
ret 4