Function at 0x4737c0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62d4da
mov eax, dword fs:[0]
push eax
mov eax, 0x10e4
call fcn.005b5230
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 0x78], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10ec], ecx
mov ecx, dword [ebp + 0x10]
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x473814
xor eax, eax
jmp 0x473bec
mov eax, dword [ebp - 0x38]
and eax, 0x10
neg eax
sbb eax, eax
and eax, 0x2000000
mov dword [ebp - 0x2c], eax
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
push 3
push 0
push 1
push connect
mov ecx, dword [ebp + 0x10]
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x473856
xor eax, eax
jmp 0x473bec
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
lea ecx, [ebp - 0x74]
push ecx
call fcn.00477a40
add esp, 0xc
mov dword [ebp - 4], 0
lea edx, [ebp - 0x74]
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x108c]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x108c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea ecx, [ebp - 0x1084]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
push 0x24
push 0
lea ecx, [ebp - 0x68]
push ecx
call fcn.005b4de0
add esp, 0xc
movzx edx, word [ebp - 0x10]
shl edx, 0x10
movzx eax, word [ebp - 0x1084]
or edx, eax
mov dword [ebp - 0x50], edx
mov ecx, dword [ebp - 0x48]
or ecx, dword [ebp - 0x38]
mov dword [ebp - 0x48], ecx
movzx edx, byte [ebp + 0x14]
test edx, edx
je 0x473993
push 0xfde9
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10a8]
push ecx
mov ecx, dword [ebp - 0x10ec]
call fcn.00473660
mov byte [ebp - 4], 1
push 0x800
push 0
push 0
push 0
push 0
push 8
push 0xfffffffffffffff1
push 0
push 9
push 8
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x68]
push edx
lea ecx, [ebp - 0x10a8]
call fcn.0040e460
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0061cb40
add esp, 0x48
test eax, eax
je 0x47397f
mov dword [ebp - 0x10d0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10a8]
call fcn.0040e3e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004762e0
mov eax, dword [ebp - 0x10d0]
jmp 0x473bec
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10a8]
call fcn.0040e3e0
jmp 0x473a1f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x10c4]
push edx
mov ecx, dword [ebp - 0x10ec]
call fcn.00473660
mov byte [ebp - 4], 2
push 9
push 8
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x10c4]
call fcn.0040e460
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0061cbb0
add esp, 0x28
test eax, eax
je 0x473a10
mov dword [ebp - 0x10d4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c4]
call fcn.0040e3e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004762e0
mov eax, dword [ebp - 0x10d4]
jmp 0x473bec
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c4]
call fcn.0040e3e0
mov edx, dword [ebp + 8]
push edx
push 0x61c310
lea eax, [ebp - 0x28]
push eax
call fcn.00477a40
add esp, 0xc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x38]
and edx, 0x10
je 0x473a6e
mov dword [ebp - 0x10d8], 1
lea ecx, [ebp - 0x28]
call fcn.00476300
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004762e0
mov eax, dword [ebp - 0x10d8]
jmp 0x473bec
mov dword [ebp - 0x1080], 0x1000
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x473abe
mov dword [ebp - 0x10dc], 0
lea ecx, [ebp - 0x28]
call fcn.00476300
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004762e0
mov eax, dword [ebp - 0x10dc]
jmp 0x473bec
cmp dword [ebp - 0x40], 0
jl 0x473bc5
jg 0x473ad4
cmp dword [ebp - 0x44], 0
jbe 0x473bc5
cmp dword [ebp - 0x40], 0
jl 0x473af1
jg 0x473ae5
cmp dword [ebp - 0x44], 0x1000
jbe 0x473af1
mov dword [ebp - 0x10f0], 0x1000
jmp 0x473afa
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x10f0], eax
mov ecx, dword [ebp - 0x10f0]
mov dword [ebp - 0x10c8], ecx
mov dword [ebp - 0x10cc], 0
push 0
lea edx, [ebp - 0x10cc]
push edx
mov eax, dword [ebp - 0x10c8]
push eax
lea ecx, [ebp - 0x107c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x473b61
mov dword [ebp - 0x10e0], 0
lea ecx, [ebp - 0x28]
call fcn.00476300
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004762e0
mov eax, dword [ebp - 0x10e0]
jmp 0x473bec
mov eax, dword [ebp - 0x10cc]
push eax
lea ecx, [ebp - 0x107c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0061b330
add esp, 0xc
test eax, eax
jge 0x473ba8
mov dword [ebp - 0x10e4], 0
lea ecx, [ebp - 0x28]
call fcn.00476300
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004762e0
mov eax, dword [ebp - 0x10e4]
jmp 0x473bec
mov eax, dword [ebp - 0x10cc]
xor ecx, ecx
mov edx, dword [ebp - 0x44]
sub edx, eax
mov eax, dword [ebp - 0x40]
sbb eax, ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], eax
jmp 0x473abe
mov dword [ebp - 0x10e8], 1
lea ecx, [ebp - 0x28]
call fcn.00476300
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004762e0
mov eax, dword [ebp - 0x10e8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x78]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret 0x10