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

Disassembly:
sub esp, 0xb8
and dword [esp + 0x2c], 0
cmp byte [esp + 0xbc], 0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], 0x186a0
je 0xb28c27
mov edx, 0xb86478
lea ecx, [esp + 0xe8]
call fcn.00b27801
test al, al
je 0xb28c27
sub esp, 0x18
lea eax, [esp + 0xe8]
mov ecx, esp
push eax
call fcn.00b29097
lea ecx, [esp + 0xb0]
call fcn.00b3b4c3
add esp, 0x18
lea ecx, [esp + 0xe8]
push eax
call fcn.00b21f13
lea ecx, [esp + 0x98]
call fcn.00b21f09
mov ecx, edi
call fcn.00b2482d
push ecx
mov ecx, edi
call fcn.00b248c8
lea edx, [esp + 0xe8]
lea ecx, [esp + 0x50]
call fcn.00b3bdaf
sub esp, 0x18
lea edx, [esp + 0xe8]
mov esi, esp
mov ecx, 0xb94ee0
push eax
push ecx
lea eax, [esp + 0x120]
push eax
push ecx
lea ecx, [esp + 0xa8]
call fcn.00b3bdaf
mov edx, eax
lea ecx, [esp + 0x90]
call fcn.00b22f10
pop ecx
mov edx, eax
lea ecx, [esp + 0xd4]
call fcn.00b22f10
pop ecx
mov edx, eax
lea ecx, [esp + 0xb8]
call fcn.00b22f10
pop ecx
mov edx, eax
mov ecx, esi
call fcn.00b22ea1
pop ecx
push 0xb6
mov ecx, edi
call fcn.00b24aa1
cmp eax, 0xffffffff
lea ecx, [esp + 0x98]
sete bl
call fcn.00b21fd8
lea ecx, [esp + 0xb0]
call fcn.00b21fd8
lea ecx, [esp + 0x68]
call fcn.00b21fd8
lea ecx, [esp + 0x80]
call fcn.00b21fd8
lea ecx, [esp + 0x50]
call fcn.00b21fd8
test bl, bl
je 0xb28cff
mov ecx, edi
call fcn.00b24e26
xor ebx, ebx
jmp 0xb28fae
xor ebx, ebx
lea ecx, [esp + 0xd0]
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
call fcn.00b21f04
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0xb28d48
sub esp, 0x18
mov ecx, esp
push 0xb860b4
call fcn.00b22093
push 0x53
mov ecx, edi
call fcn.00b24aa1
jmp 0xb2903d
lea eax, [esp + 0x48]
mov dword [esp + 0x48], ebx
push eax
push ebp
mov dword [esp + 0x54], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, dword [esp + 0x4c]
mov eax, 0x186a0
mov ecx, dword [esp + 0x48]
xor esi, esi
push ebx
push eax
push edx
inc esi
mov dword [esp + 0x40], ecx
push ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebx
call fcn.00b77280
add eax, esi
lea ecx, [esp + 0x68]
adc edx, ebx
push edx
push eax
call fcn.00b3bc59
sub esp, 0x10
lea ecx, [esp + 0x98]
mov esi, esp
push eax
push 0xb94ee0
push dword [esp + 0x50]
push dword [esp + 0x58]
call fcn.00b3bc59
pop ecx
pop ecx
mov edx, eax
lea ecx, [esp + 0x70]
call fcn.00b22f10
pop ecx
mov edx, eax
mov ecx, esi
call fcn.00b22ea1
pop ecx
push 0xb7
mov ecx, edi
call fcn.00b24aa1
lea ecx, [esp + 0x50]
call fcn.00b21fd8
lea ecx, [esp + 0x80]
call fcn.00b21fd8
lea ecx, [esp + 0x68]
call fcn.00b21fd8
lea edx, [esp + 0xd0]
lea ecx, [esp + 0x50]
call fcn.00b3bd4f
sub esp, 0x18
mov edx, str.Uploading_file_to_Controller:
mov ecx, esp
push eax
call fcn.00b252fd
sub esp, 0x14
mov ecx, esp
push 0xb85fb4
call fcn.00b22093
call fcn.00b3b580
add esp, 0x30
lea ecx, [esp + 0x50]
call fcn.00b21fd8
xorps xmm0, xmm0
movlpd qword [esp + 0x40], xmm0
cmp dword [esp + 0x30], ebx
jb 0xb28f9e
ja 0xb28e5c
cmp dword [esp + 0x34], ebx
jbe 0xb28f9e
mov eax, dword [esp + 0x44]
xor esi, esi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x28], eax
mov eax, 0x186a0
mov edx, dword [esp + 0x1c]
cmp esi, edx
jb 0xb28e8f
mov ecx, dword [esp + 0x14]
ja 0xb28e85
cmp eax, ecx
jbe 0xb28e8f
mov eax, ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x18], eax
push eax
call fcn.00b54829
pop ecx
push ebx
push ebx
push dword [esp + 0x34]
mov esi, eax
mov dword [esp + 0x44], ebx
push dword [esp + 0x34]
mov dword [esp + 0x50], esi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0xb2900a
push ebx
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x20]
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xb28ffe
push dword [esp + 0x38]
lea ecx, [esp + 0x6c]
push esi
call fcn.00b220b7
sub esp, 0x18
lea ecx, [esp + 0x98]
mov esi, esp
push eax
push 0xb94ee0
push dword [esp + 0x44]
push dword [esp + 0x44]
call fcn.00b3bc59
pop ecx
pop ecx
mov edx, eax
lea ecx, [esp + 0x70]
call fcn.00b22f10
pop ecx
mov edx, eax
mov ecx, esi
call fcn.00b22ea1
pop ecx
push 0x52
mov ecx, edi
call fcn.00b24aa1
cmp eax, 0xffffffff
lea ecx, [esp + 0x50]
sete bl
call fcn.00b21fd8
lea ecx, [esp + 0x80]
call fcn.00b21fd8
lea ecx, [esp + 0x68]
call fcn.00b21fd8
test bl, bl
jne 0xb28fe1
push dword [esp + 0x40]
call fcn.00b54832
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x18], eax
mov esi, dword [esp + 0x40]
sbb dword [esp + 0x20], esi
add dword [esp + 0x24], 1
mov edx, dword [esp + 0x30]
pop ecx
mov ecx, dword [esp + 0x28]
push 0
pop ebx
adc dword [esp + 0x24], ebx
add ecx, eax
mov dword [esp + 0x28], ecx
adc edx, esi
mov dword [esp + 0x2c], edx
cmp edx, dword [esp + 0x30]
jb 0xb28e73
ja 0xb28f9e
cmp ecx, dword [esp + 0x34]
jb 0xb28e73
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.00b24e26
mov bl, 1
lea ecx, [esp + 0xd0]
call fcn.00b21f09
lea ecx, [esp + 0xe8]
call fcn.00b21f09
lea ecx, [esp + 0x100]
call fcn.00b21fd8
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0xb8
ret 0x4c
mov ecx, edi
call fcn.00b24e26
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x40]
call fcn.00b54832
pop ecx
jmp 0xb28cf8
sub esp, 0x18
mov ecx, esp
push str.ReadFile_error
jmp 0xb29014
sub esp, 0x18
mov ecx, esp
push str.SetFilePointerEx_error
call fcn.00b22093
sub esp, 0x18
mov ecx, esp
push 0xb85f18
call fcn.00b22093
call fcn.00b3b580
push esi
call fcn.00b54832
add esp, 0x34
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.00b24e26
jmp 0xb28fae