Function at 0x472830
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x655140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebx + 4]
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x47288d
cmp dword [esi + 4], 0
je 0x472870
push eax
call fcn.004c0fcf
add esp, 4
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov ecx, dword [ebx + 8]
call fcn.004730e0
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x472bf7
mov esi, dword [ebx + 4]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4728bc
cmp dword [esi + 4], 0
je 0x4728b5
push eax
call fcn.004c0fcf
add esp, 4
mov dword [esi + 0x10], 0
push 0x40
push 0x636a50
push edi
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
call fcn.004ca0dc
mov edi, eax
add esp, 0xc
test edi, edi
je 0x472bf7
push 2
push 0
push edi
call fcn.004ca468
add esp, 0xc
push edi
call fcn.004cab8c
add esp, 4
mov dword [ebp - 0x214], eax
push 0
push 0
push edi
call fcn.004ca468
mov eax, dword [ebp - 0x214]
add esp, 0xc
test eax, eax
jle 0x47297e
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x47293a
cmp dword [esi + 4], 0
je 0x472933
push ecx
call fcn.004c0fcf
mov eax, dword [ebp - 0x214]
add esp, 4
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
call fcn.004c98f7
mov ecx, eax
mov dword [esi + 8], 0
mov eax, dword [ebp - 0x214]
add esp, 4
mov dword [esi + 0x10], ecx
mov dword [esi + 0xc], eax
mov dword [esi + 4], 1
test ecx, ecx
je 0x47297e
push edi
push 1
push eax
push ecx
call fcn.004cad95
add esp, 0x10
push edi
call fcn.004caf74
add esp, 4
cmp dword [esi + 0x10], 0
je 0x472bf7
mov esi, dword [ebp - 0x218]
lea eax, [ebp - 0x210]
push esi
push 0x63a8a4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileTime]
test esi, esi
je 0x4729f3
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4729f3
lea eax, [ebp - 0x244]
push eax
push 0
lea eax, [ebp - 0x234]
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x472bcc
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea eax, [ebp - 0x210]
push eax
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x472bcc
lea eax, [ebp - 0x24c]
push eax
push 0
lea eax, [ebp - 0x23c]
push eax
push edi
call ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x472bcc
mov eax, dword [ebp - 0x230]
cmp eax, dword [ebp - 0x238]
jne 0x472bcc
mov eax, dword [ebp - 0x234]
cmp eax, dword [ebp - 0x23c]
jne 0x472bcc
mov eax, dword [ebp - 0x240]
cmp eax, dword [ebp - 0x248]
jne 0x472bcc
mov eax, dword [ebp - 0x244]
cmp eax, dword [ebp - 0x24c]
jne 0x472bcc
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 8]
mov ecx, eax
mov dword [ebp - 0x214], eax
call fcn.004730e0
push 0x40
lea eax, [ebp - 0x210]
push 0x636a50
push eax
call fcn.004ca0dc
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x228], edi
test edi, edi
je 0x472bcc
push edi
call fcn.004cb24d
add esp, 4
push eax
call fcn.004cb242
add esp, 4
mov esi, eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x218], esi
push edi
push 1
push 8
push eax
call fcn.004cad95
add esp, 0x10
xor bl, bl
cmp dword [ebp - 0x224], 0x78646972
jne 0x472bbf
cmp dword [ebp - 0x220], 0x8000
jb 0x472b30
push edi
call fcn.004caf74
add esp, 4
jmp 0x472bcc
lea eax, [esi - 8]
push eax
call fcn.004c98f7
mov esi, eax
add esp, 4
mov dword [ebp - 0x22c], esi
test esi, esi
je 0x472bbf
mov ebx, dword [ebp - 0x218]
push edi
push 1
add ebx, 0xfffffff8
push ebx
push esi
call fcn.004cad95
lea eax, [esi + ebx]
add esp, 0x10
xor ebx, ebx
mov dword [ebp - 0x218], eax
mov ecx, esi
cmp dword [ebp - 0x220], ebx
jle 0x472bad
mov edi, eax
lea esi, [ecx + 0x12]
add esi, dword [ecx + 0xc]
cmp esi, edi
ja 0x472ba1
push dword [ecx + 8]
lea eax, [ecx + 0x10]
push dword [ecx + 4]
push dword [ecx]
mov ecx, dword [ebp - 0x214]
push eax
call fcn.00472ec0
inc ebx
mov ecx, esi
cmp ebx, dword [ebp - 0x220]
jl 0x472b75
mov edi, dword [ebp - 0x228]
mov esi, dword [ebp - 0x22c]
push esi
call fcn.004c0fcf
add esp, 4
cmp ebx, dword [ebp - 0x220]
sete bl
push edi
call fcn.004caf74
add esp, 4
test bl, bl
jne 0x472be2
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ecx + 4]
push dword [eax + 0xc]
push dword [eax + 0x10]
call fcn.00472c10
mov bl, al
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3f1a
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3f1a
mov esp, ebp
pop ebp
ret 8