Function at 0x470370
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x553948]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
xor ecx, ecx
push 0xb
mov word [ebp - 0x74], cx
push 0x518808
lea ecx, [ebp - 0x74]
mov dword [ebp - 0xd8], eax
mov byte [ebp - 0xd1], 0
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
call fcn.004063e0
xor edx, edx
push 0xffffffffffffffff
push edx
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], dx
call fcn.00406a40
push 1
push 0x514644
lea ecx, [ebp - 0x20]
call fcn.0040e6e0
push 0xffffffffffffffff
xor esi, esi
push esi
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040e830
lea ecx, [ebp - 0x20]
push ecx
mov edx, ecx
push edx
call fcn.00417bd0
add esp, 8
test al, al
jne 0x47044d
mov edi, 8
cmp dword [ebp - 0xc], edi
jb 0x47042b
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406fa9
add esp, 4
mov dword [ebp - 0xc], 7
xor ecx, ecx
cmp dword [ebp - 0x60], edi
mov dword [ebp - 0x10], esi
mov word [ebp - 0x20], cx
jb 0x47082a
mov edx, dword [ebp - 0x74]
push edx
jmp 0x470822
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x470459
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x470415
lea ecx, [ebp - 0x3c]
push ecx
xor eax, eax
push ebx
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x3c], ax
call fcn.00417bd0
add esp, 8
test al, al
jne 0x4704ca
mov edi, 8
cmp dword [ebp - 0x28], edi
jb 0x47049b
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406fa9
add esp, 4
xor eax, eax
mov ebx, 7
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x3c], ax
cmp dword [ebp - 0xc], edi
jb 0x4704bd
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406fa9
add esp, 4
xor edx, edx
cmp dword [ebp - 0x60], edi
mov dword [ebp - 0xc], ebx
jmp 0x470815
lea ecx, [ebp - 0x20]
push ecx
push ebx
call fcn.004407c0
add esp, 8
test al, al
jne 0x47052f
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.004407c0
add esp, 8
test al, al
jne 0x47052f
mov edi, 8
cmp dword [ebp - 0x28], edi
jb 0x470505
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406fa9
add esp, 4
xor edx, edx
mov ebx, 7
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x3c], dx
cmp dword [ebp - 0xc], edi
jb 0x470527
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406fa9
add esp, 4
mov dword [ebp - 0xc], ebx
jmp 0x470432
push esi
lea ecx, [ebp - 0xd0]
call fcn.00405e20
push edi
lea ecx, [ebp - 0xd0]
call fcn.00406650
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0xd0]
call fcn.004084d0
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x92492493
imul ecx
mov eax, dword [ebp - 0x84]
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
setne byte [ebp - 0xd2]
cmp eax, esi
je 0x4705a6
mov edx, dword [ebp - 0xd8]
push edx
mov edx, dword [ebp - 0x80]
lea ecx, [ebp - 0x78]
push ecx
push edx
push eax
call fcn.00406fc0
mov eax, dword [ebp - 0x84]
push eax
call fcn.00406fa9
add esp, 0x14
cmp byte [ebp - 0xd2], 0
lea ecx, [ebp - 0xd0]
je 0x4705fe
call fcn.0043b680
mov edi, 8
cmp dword [ebp - 0x28], edi
jb 0x4705d0
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406fa9
add esp, 4
xor edx, edx
mov ebx, 7
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x3c], dx
cmp dword [ebp - 0xc], edi
jb 0x470527
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406fa9
add esp, 4
mov dword [ebp - 0xc], ebx
jmp 0x470432
lea eax, [ebp - 0x90]
push eax
call fcn.00410670
push 0xffffffffffffffff
xor ecx, ecx
push esi
mov word [ebp - 0x58], cx
mov edi, 7
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], esi
call fcn.00406a40
lea ecx, [ebp - 0x90]
call fcn.004071f0
lea edx, [ebp - 0x58]
push ebx
push edx
call fcn.004407c0
add esp, 8
test al, al
jne 0x4706bf
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.004407c0
add esp, 8
test al, al
jne 0x4706bf
mov ebx, 8
cmp dword [ebp - 0x44], ebx
jb 0x47066d
mov edx, dword [ebp - 0x58]
push edx
call fcn.00406fa9
add esp, 4
xor eax, eax
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], esi
mov word [ebp - 0x58], ax
call fcn.0043b680
cmp dword [ebp - 0x28], ebx
jb 0x470695
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406fa9
add esp, 4
xor edx, edx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x3c], dx
cmp dword [ebp - 0xc], ebx
jb 0x4706b2
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406fa9
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x60], ebx
mov dword [ebp - 0xc], edi
jmp 0x470437
mov eax, dword [ebp - 0x9c]
cmp eax, 1
ja 0x4707b2
cmp eax, esi
jbe 0x470799
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0x84]
call fcn.0045dca0
mov eax, dword [ebp - 0x80]
mov ebx, dword [eax]
mov dword [ebp - 0xdc], ebx
cmp ebx, eax
je 0x470777
mov edi, 0x10
cmp dword [ebx + 0x20], edi
lea esi, [ebx + 0xc]
jb 0x47070c
mov eax, dword [esi]
jmp 0x47070e
mov eax, esi
push 0x518804
push eax
call fcn.004e4d0a
add esp, 8
test eax, eax
je 0x47073d
cmp dword [esi + 0x14], edi
jb 0x470727
mov esi, dword [esi]
push 0x518800
push esi
call fcn.004e4d0a
add esp, 8
test eax, eax
jne 0x470841
mov edx, dword [ebx + 0x38]
push 0
lea ecx, [ebx + 0x28]
push 0x51199c
push edx
push 0
call fcn.00407490
test eax, eax
jne 0x470841
lea ecx, [ebp - 0xdc]
call fcn.0047ea00
mov ebx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0x80]
cmp ebx, eax
jne 0x470700
xor esi, esi
lea edi, [esi + 7]
mov ecx, dword [eax]
push eax
push ecx
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x84]
call fcn.0043b750
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00406fa9
add esp, 4
mov ecx, dword [ebp - 0xd8]
push 0xffffffffffffffff
push esi
lea edx, [ebp - 0x20]
push edx
call fcn.00406a40
mov byte [ebp - 0xd1], 1
mov ebx, 8
cmp dword [ebp - 0x44], ebx
jb 0x4707c8
mov eax, dword [ebp - 0x58]
push eax
call fcn.00406fa9
add esp, 4
xor ecx, ecx
mov word [ebp - 0x58], cx
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], esi
call fcn.0043b680
cmp dword [ebp - 0x28], ebx
jb 0x4707f0
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406fa9
add esp, 4
xor eax, eax
mov word [ebp - 0x3c], ax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
cmp dword [ebp - 0xc], ebx
jb 0x47080d
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406fa9
add esp, 4
xor edx, edx
cmp dword [ebp - 0x60], ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], esi
mov word [ebp - 0x20], dx
jb 0x47082a
mov eax, dword [ebp - 0x74]
push eax
call fcn.00406fa9
add esp, 4
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0xd1]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401316
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
push ecx
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x84]
call fcn.0043b750
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00406fa9
mov esi, 8
add esp, 4
cmp dword [ebp - 0x44], esi
jb 0x47087c
mov edx, dword [ebp - 0x58]
push edx
call fcn.00406fa9
add esp, 4
xor eax, eax
mov edi, 7
xor ebx, ebx
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], ax
call fcn.0043b680
cmp dword [ebp - 0x28], esi
jb 0x4708ab
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406fa9
add esp, 4
xor edx, edx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], dx
cmp dword [ebp - 0xc], esi
jb 0x4708c8
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406fa9
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x60], esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
jmp 0x47043a