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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510fab
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x22c], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x228], 0
mov dword [ebp - 4], 0
xor ebx, ebx
mov dword [ebp - 0x220], ebx
push 0x104
push ebx
lea eax, [ebp - 0x21c]
push eax
call fcn.004b8570
push 0x104
push ebx
lea eax, [ebp - 0x118]
push eax
call fcn.004b8570
push ebx
push 1
push 0x104
lea eax, [ebp - 0x21c]
push eax
call fcn.0049d330
add esp, 0x28
test eax, eax
je 0x4625b8
push 1
mov eax, dword [edi + 0x14]
add eax, 0xbfd0
push eax
lea ecx, [ebp - 0x23c]
call fcn.00481810
mov byte [ebp - 4], 1
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x60]
mov dword [eax + 0x9a20], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
push 1
push str.fileupdate
call dword [eax + 0x10]
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
push 8
call dword [eax + 0x18]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x23c]
call fcn.00481850
push 0x5c
lea eax, [ebp - 0x21c]
push eax
call fcn.004b8c50
add esp, 8
test eax, eax
jne 0x4624cc
mov ebx, 0x64
mov dword [ebp - 0x220], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
push 8
call dword [eax + 0xc]
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + 0x60]
add ecx, 0x1d4c
lea edx, [ebp - 0x118]
mov al, byte [ecx]
mov byte [edx], al
lea ecx, [ecx + 1]
lea edx, [edx + 1]
test al, al
jne 0x462461
push 0x5c
lea eax, [ebp - 0x118]
push eax
call fcn.004b8c50
add esp, 8
test eax, eax
je 0x4624cc
mov ebx, 0xc8
mov dword [ebp - 0x220], ebx
mov byte [eax + 1], 0
lea edx, [ebp - 0x21c]
mov esi, edx
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4624a0
sub edx, esi
lea edi, [ebp - 0x118]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4624b0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x224]
cmp byte [ebp - 0x118], 0
jne 0x4624f5
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x21c]
mov byte [ebp + ecx - 0x118], al
lea ecx, [ecx + 1]
test al, al
jne 0x4624e0
inc ebx
mov dword [ebp - 0x220], ebx
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4625b2
inc ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x230], 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi], eax
test eax, eax
je 0x4625ab
inc ebx
mov dword [ebp - 0x220], ebx
push eax
call fcn.004a4577
add esp, 4
mov esi, eax
mov dword [ebp - 0x228], esi
push 0
lea eax, [ebp - 0x230]
push eax
mov eax, dword [ebp - 0x224]
push dword [eax]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4625a5
or ebx, 0xffffffff
mov dword [ebp - 0x220], ebx
push esi
call fcn.004a4580
add esp, 4
mov dword [ebp - 0x228], 0
mov esi, dword [ebp - 0x224]
mov dword [esi], 0
jmp 0x4625ab
mov esi, dword [ebp - 0x224]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x22c]
mov ecx, dword [edi]
push ebx
push dword [esi]
mov esi, dword [ebp - 0x228]
push esi
lea eax, [ebp - 0x118]
push eax
push str.GetSetupFileContent__s__0x_p__d____d_
push 4
push edi
call dword [ecx + 8]
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x462613
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret 4