Function at 0x473cd0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [esi + 0x1c]
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp edi, 0xffffffff
jne 0x473d04
push eax
jmp 0x473f45
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 0x1c], eax
call fcn.00474502
mov eax, dword [ebp - 4]
cmp dword [eax - 4], 1
jle 0x473d30
push dword [eax - 0xc]
lea eax, [ebp - 4]
push eax
call fcn.00447339
mov eax, dword [ebp - 4]
push ebx
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x473f37
cmp dword [ebp - 0x20], ebx
je 0x473f37
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0046ca41
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x4fedf4
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.0047973b
test al, al
je 0x473da7
lea edi, [ebp - 0x38]
call fcn.0046c8e8
lea ecx, [ebp - 8]
call fcn.00402964
lea eax, [ebp - 4]
push eax
call fcn.00447065
cmp dword [ebp - 0x2c], ebx
je 0x473f4b
push dword [ebp - 0x2c]
jmp 0x473f45
mov eax, dword [ebp - 0x34]
xor edi, edi
cmp eax, ebx
mov dword [ebp - 0x10], edi
jle 0x473db9
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x10], edi
cmp eax, ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0xc], ebx
jle 0x473dd2
dec eax
lea ecx, [ebp - 0x38]
call fcn.00479b5e
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x10], eax
je 0x473e40
push esi
mov eax, edi
call fcn.00473f51
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x473e35
push 0x4f9754
lea eax, [ebp - 0x10]
push eax
call fcn.004054af
lea eax, [ebp - 0x10]
push eax
call fcn.004796c0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], eax
call fcn.00402964
cmp dword [ebp - 0x18], ebx
je 0x473e35
push str.Size
lea eax, [ebp - 0x14]
push eax
call fcn.004054af
lea eax, [ebp - 0x14]
push eax
call fcn.004796c0
lea ecx, [ebp - 0x14]
mov ebx, eax
call fcn.00402964
test ebx, ebx
jne 0x473e79
add edi, 0x10
mov dword [ebp - 0x1c], edi
cmp edi, dword [ebp - 0xc]
jne 0x473dda
cmp byte [0x5283d4], 0
je 0x473d7d
push str.No_newer_version_found.
lea eax, [ebp - 0x24]
push eax
call fcn.00478183
push eax
call fcn.00478193
push eax
mov eax, 0x5283a4
call fcn.004775b8
lea ecx, [ebp - 0x24]
call fcn.00402964
jmp 0x473d7d
mov eax, dword [ebp - 0x18]
add eax, 4
lea edi, [esi + 0x24]
call fcn.0044607b
mov ebx, dword [ebx + 4]
call fcn.0045e430
mov dword [esi + 0x28], eax
push str.ServerFileName
lea eax, [ebp - 0x18]
push eax
call fcn.004054af
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
call fcn.004796c0
lea ecx, [ebp - 0x18]
mov edi, eax
call fcn.00402964
test edi, edi
je 0x473ec5
lea eax, [edi + 4]
lea edi, [esi + 0x2c]
call fcn.0044607b
mov eax, dword [ebp - 0x24]
lea edi, [esi + 0x20]
add eax, 4
call fcn.0044607b
cmp byte [0x5283d4], 0
je 0x473f0b
push dword [edi]
lea eax, [ebp - 0x24]
push str.Found_a_newer_version_on_server._Version_found:
push eax
call fcn.00478183
push eax
call fcn.00478193
push eax
call fcn.00478193
push eax
mov eax, 0x5283a4
call fcn.004775b8
lea ecx, [ebp - 0x24]
call fcn.00402964
lea edi, [ebp - 0x38]
call fcn.0046c8e8
lea ecx, [ebp - 8]
call fcn.00402964
lea eax, [ebp - 4]
push eax
call fcn.00447065
cmp dword [ebp - 0x2c], 0
je 0x473f33
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x473f4d
lea eax, [ebp - 4]
push eax
call fcn.00447065
cmp edi, ebx
je 0x473f4b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop ebx
leave
ret