Function at 0x474833
Capabilities:
Check if file exists

Disassembly:
push 0x278
mov eax, 0x4c2aad
call fcn.00435e6d
mov esi, dword [ebp + 0xc]
xor edi, edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x284], edi
cmp dword [esi + 0x14], 8
jb 0x474860
mov eax, dword [esi]
jmp 0x474862
mov eax, esi
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.004746b0
pop ecx
pop ecx
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], edi
jb 0x47487c
mov esi, dword [esi]
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.00474523
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x234]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00474337
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x234]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.00474434
add esp, 0x18
mov byte [ebp - 4], 3
call fcn.00478263
test al, al
je 0x474902
push edi
pop ecx
push esi
push ebx
push edi
push ebp
push ebp
push esp
pop eax
pop edi
pop ecx
pop ebp
pop ecx
pop esp
push esi
pop eax
pop ebp
push ebp
push ebp
push eax
pop edi
push edx
push eax
push eax
pop ebp
push ebx
pop edx
push ebp
pop esi
xor edi, edi
xor esi, esi
inc esi
push 0x20a
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.0047a400
cmp dword [ebp - 0x238], 8
lea edx, [ebp - 0x24c]
lea ecx, [ebp - 0x264]
cmovae edx, dword [ebp - 0x24c]
lea eax, [ebp - 0x27c]
cmp dword [ebp - 0x250], 8
push edx
cmovae ecx, dword [ebp - 0x264]
cmp dword [ebp - 0x268], 8
push esi
cmovae eax, dword [ebp - 0x27c]
push ecx
push eax
lea eax, [ebp - 0x21c]
push str._s_s__d__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x474a86
inc esi
cmp esi, 0x3e8
jl 0x474905
call fcn.004784d0
test al, al
je 0x4749ad
pop ecx
pop esp
push eax
push esp
push ebx
push ecx
push esp
push ebx
pop esi
pop edi
pop ebp
pop edi
pop edi
pop ebx
push edi
pop edx
pop ebx
pop eax
pop esi
pop esi
push ecx
push ebx
call fcn.004783bc
test al, al
je 0x4749cc
pop esi
push ebp
pop ecx
pop eax
pop esi
push edx
pop edi
push ecx
push edx
pop esp
push esp
pop esi
pop esp
push edi
push eax
pop ecx
push ebx
pop ebx
pop esi
push edi
pop ebx
pop esi
call fcn.0047821e
test al, al
je 0x4749ef
push ebp
push eax
push esp
pop edx
pop edx
pop eax
pop esi
pop edi
pop edi
push ebx
push edx
pop ebp
pop ecx
push esi
push eax
push esp
pop ecx
pop ebx
pop ebp
pop ebx
pop edx
pop esi
pop esi
pop esp
push esi
pop ebx
call fcn.004781d9
test al, al
je 0x474a0d
pop ebx
pop ebp
pop edi
pop eax
pop ebp
pop edx
pop ebp
push eax
push esp
push eax
push ebx
push esp
pop esp
pop edi
pop ebp
pop edx
push esp
push ebx
push eax
pop esi
pop esi
call fcn.004784d0
test al, al
je 0x474a35
pop edx
pop ebp
pop edx
pop edx
pop esp
pop ebx
push esi
push ebx
push edx
pop esi
push eax
pop edx
pop esp
push edi
pop ebx
pop esi
pop esp
pop edx
pop ecx
push esp
pop ebp
push edx
push edx
push ecx
pop edi
push ebp
push edx
push ecx
pop eax
push esi
pop ebx
mov ecx, dword [ebp - 0x280]
push 0x4c41d4
call fcn.00401dcf
xor edi, edi
lea ecx, [ebp - 0x24c]
xor ebx, ebx
push edi
inc ebx
push ebx
call fcn.00402317
push edi
push ebx
lea ecx, [ebp - 0x264]
call fcn.00402317
push edi
push ebx
lea ecx, [ebp - 0x234]
call fcn.00402317
push edi
push ebx
lea ecx, [ebp - 0x27c]
call fcn.00402317
mov eax, dword [ebp - 0x280]
jmp 0x474acd
lea eax, [ebp - 0x21c]
mov ecx, ebx
push eax
call fcn.00401dcf
xor esi, esi
lea ecx, [ebp - 0x24c]
push edi
inc esi
push esi
call fcn.00402317
push edi
push esi
lea ecx, [ebp - 0x264]
call fcn.00402317
push edi
push esi
lea ecx, [ebp - 0x234]
call fcn.00402317
push edi
push esi
lea ecx, [ebp - 0x27c]
call fcn.00402317
mov eax, ebx
call fcn.00435e17
ret