Function at 0x473f94
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 0x473fc8
push eax
jmp 0x474209
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 0x1c], eax
call fcn.004747c6
mov eax, dword [ebp - 4]
cmp dword [eax - 4], 1
jle 0x473ff4
push dword [eax - 0xc]
lea eax, [ebp - 4]
push eax
call fcn.004477b3
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 0x4741fb
cmp dword [ebp - 0x20], ebx
je 0x4741fb
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0046cd9a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x4fee74
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.00479a17
test al, al
je 0x47406b
lea edi, [ebp - 0x38]
call fcn.0046cc41
lea ecx, [ebp - 8]
call fcn.004029ae
lea eax, [ebp - 4]
push eax
call fcn.004474e9
cmp dword [ebp - 0x2c], ebx
je 0x47420f
push dword [ebp - 0x2c]
jmp 0x474209
mov eax, dword [ebp - 0x34]
xor edi, edi
cmp eax, ebx
mov dword [ebp - 0x10], edi
jle 0x47407d
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x10], edi
cmp eax, ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0xc], ebx
jle 0x474096
dec eax
lea ecx, [ebp - 0x38]
call fcn.00479e3a
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x10], eax
je 0x474104
push esi
mov eax, edi
call fcn.00474215
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x4740f9
push 0x4f97d4
lea eax, [ebp - 0x10]
push eax
call fcn.004054bc
lea eax, [ebp - 0x10]
push eax
call fcn.0047999c
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], eax
call fcn.004029ae
cmp dword [ebp - 0x18], ebx
je 0x4740f9
push 0x4f00c8
lea eax, [ebp - 0x14]
push eax
call fcn.004054bc
lea eax, [ebp - 0x14]
push eax
call fcn.0047999c
lea ecx, [ebp - 0x14]
mov ebx, eax
call fcn.004029ae
test ebx, ebx
jne 0x47413d
add edi, 0x10
mov dword [ebp - 0x1c], edi
cmp edi, dword [ebp - 0xc]
jne 0x47409e
cmp byte [0x5283d4], 0
je 0x474041
push str.No_newer_version_found.
lea eax, [ebp - 0x24]
push eax
call fcn.0047845f
push eax
call fcn.0047846f
push eax
mov eax, 0x5283a4
call fcn.00477894
lea ecx, [ebp - 0x24]
call fcn.004029ae
jmp 0x474041
mov eax, dword [ebp - 0x18]
add eax, 4
lea edi, [esi + 0x24]
call fcn.00439ecc
mov ebx, dword [ebx + 4]
call fcn.0045e770
mov dword [esi + 0x28], eax
push str.ServerFileName
lea eax, [ebp - 0x18]
push eax
call fcn.004054bc
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
call fcn.0047999c
lea ecx, [ebp - 0x18]
mov edi, eax
call fcn.004029ae
test edi, edi
je 0x474189
lea eax, [edi + 4]
lea edi, [esi + 0x2c]
call fcn.00439ecc
mov eax, dword [ebp - 0x24]
lea edi, [esi + 0x20]
add eax, 4
call fcn.00439ecc
cmp byte [0x5283d4], 0
je 0x4741cf
push dword [edi]
lea eax, [ebp - 0x24]
push str.Found_a_newer_version_on_server._Version_found:
push eax
call fcn.0047845f
push eax
call fcn.0047846f
push eax
call fcn.0047846f
push eax
mov eax, 0x5283a4
call fcn.00477894
lea ecx, [ebp - 0x24]
call fcn.004029ae
lea edi, [ebp - 0x38]
call fcn.0046cc41
lea ecx, [ebp - 8]
call fcn.004029ae
lea eax, [ebp - 4]
push eax
call fcn.004474e9
cmp dword [ebp - 0x2c], 0
je 0x4741f7
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x474211
lea eax, [ebp - 4]
push eax
call fcn.004474e9
cmp edi, ebx
je 0x47420f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop ebx
leave
ret