Function at 0x470880
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce292
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4f6cdc]
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 + 8]
mov dword [ebp - 0x220], eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov dword [ebp - 4], 6
mov word [ebp - 0x218], cx
call fcn.0049eae0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
add esp, 0xc
cmp dword [ebp + 0x1c], 0
jbe 0x470935
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x4708f4
lea eax, [ebp + 0xc]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4708f6
lea edi, [ebp - 0x218]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x470910
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x218]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
cmp dword [ebp + 0x38], 0
jbe 0x47098b
cmp dword [ebp + 0x3c], 8
mov eax, dword [ebp + 0x28]
jae 0x470947
lea eax, [ebp + 0x28]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x470950
lea edi, [ebp - 0x218]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x470966
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x218]
push ecx
call ebx
cmp dword [ebp + 0x58], 8
mov eax, dword [ebp + 0x44]
jae 0x470997
lea eax, [ebp + 0x44]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4709a0
lea edi, [ebp - 0x218]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4709b6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x218]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
mov ebx, 7
test eax, eax
jne 0x470aa9
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x230], esp
push 0xffffffffffffffff
push esi
lea edx, [ebp + 0xbc]
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x10], esi
push edx
mov word [ecx], ax
call fcn.00418810
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x224], esp
push 0xffffffffffffffff
push esi
lea edx, [ebp + 0xa0]
xor eax, eax
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x10], esi
push edx
mov byte [ebp - 4], bl
mov word [ecx], ax
call fcn.00418810
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x22c], esp
push 0xffffffffffffffff
push esi
lea edx, [ebp + 0x84]
xor eax, eax
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x10], esi
push edx
mov byte [ebp - 4], 8
mov word [ecx], ax
call fcn.00418810
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x228], esp
push 0xffffffffffffffff
push esi
lea edx, [ebp + 0x68]
xor eax, eax
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x10], esi
push edx
mov byte [ebp - 4], 9
mov word [ecx], ax
call fcn.00418810
mov eax, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x60]
push eax
push esi
push ecx
mov ecx, dword [ebp - 0x220]
mov byte [ebp - 4], 6
call fcn.00477ad0
mov byte [ebp - 0x219], 0
jmp 0x470ab0
mov byte [ebp - 0x219], 1
mov edi, 8
cmp dword [ebp + 0x20], edi
jb 0x470ac6
mov edx, dword [ebp + 0xc]
push edx
call fcn.0049eb5a
add esp, 4
xor eax, eax
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x1c], esi
mov word [ebp + 0xc], ax
cmp dword [ebp + 0x3c], edi
jb 0x470ae3
mov ecx, dword [ebp + 0x28]
push ecx
call fcn.0049eb5a
add esp, 4
xor edx, edx
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x38], esi
mov word [ebp + 0x28], dx
cmp dword [ebp + 0x58], edi
jb 0x470b00
mov eax, dword [ebp + 0x44]
push eax
call fcn.0049eb5a
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x54], esi
mov word [ebp + 0x44], cx
cmp dword [ebp + 0x7c], edi
jb 0x470b1d
mov edx, dword [ebp + 0x68]
push edx
call fcn.0049eb5a
add esp, 4
xor eax, eax
mov dword [ebp + 0x7c], ebx
mov dword [ebp + 0x78], esi
mov word [ebp + 0x68], ax
cmp dword [ebp + 0x98], edi
jb 0x470b40
mov ecx, dword [ebp + 0x84]
push ecx
call fcn.0049eb5a
add esp, 4
xor edx, edx
mov dword [ebp + 0x98], ebx
mov dword [ebp + 0x94], esi
mov word [ebp + 0x84], dx
cmp dword [ebp + 0xb4], edi
jb 0x470b6c
mov eax, dword [ebp + 0xa0]
push eax
call fcn.0049eb5a
add esp, 4
xor ecx, ecx
mov dword [ebp + 0xb4], ebx
mov dword [ebp + 0xb0], esi
mov word [ebp + 0xa0], cx
cmp dword [ebp + 0xd0], edi
jb 0x470b98
mov edx, dword [ebp + 0xbc]
push edx
call fcn.0049eb5a
add esp, 4
mov al, byte [ebp - 0x219]
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.0049f71b
mov esp, ebp
pop ebp
ret