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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
and dword [ebp - 0x30], 0
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], 0x186a0
je 0x10007bc7
mov edx, 0x10066788
lea ecx, [ebp + 0x24]
call fcn.10008249
test al, al
je 0x10007bc7
sub esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.10007fdb
lea ecx, [ebp - 0xa4]
call fcn.1001789d
add esp, 0x18
lea ecx, [ebp + 0x24]
push eax
call fcn.10001f13
lea ecx, [ebp - 0xa4]
call fcn.10001f09
mov ecx, edi
call fcn.1000494f
push ecx
mov ecx, edi
call fcn.100049ea
lea edx, [ebp + 0x24]
lea ecx, [ebp - 0x5c]
call fcn.10018002
sub esp, 0x18
lea edx, [ebp + 0xc]
mov esi, esp
mov ecx, 0x1006ee80
push eax
push ecx
lea eax, [ebp + 0x3c]
push eax
push ecx
lea ecx, [ebp - 0x8c]
call fcn.10018002
mov edx, eax
lea ecx, [ebp - 0x74]
call fcn.10002fac
pop ecx
mov edx, eax
lea ecx, [ebp - 0xbc]
call fcn.10002fac
pop ecx
mov edx, eax
lea ecx, [ebp - 0xa4]
call fcn.10002fac
pop ecx
mov edx, eax
mov ecx, esi
call fcn.10002f36
pop ecx
push 0xb6
mov ecx, edi
call fcn.10004bc3
cmp eax, 0xffffffff
lea ecx, [ebp - 0xa4]
sete bl
call fcn.10001fe0
lea ecx, [ebp - 0xbc]
call fcn.10001fe0
lea ecx, [ebp - 0x74]
call fcn.10001fe0
lea ecx, [ebp - 0x8c]
call fcn.10001fe0
lea ecx, [ebp - 0x5c]
call fcn.10001fe0
test bl, bl
je 0x10007c86
mov ecx, edi
call fcn.10004f2b
xor ebx, ebx
jmp 0x10007ef4
xor ebx, ebx
lea ecx, [ebp + 0xc]
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
call fcn.10001f04
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
jne 0x10007ccc
sub esp, 0x18
mov ecx, esp
push 0x10060720
call fcn.1000209d
push 0x53
mov ecx, edi
call fcn.10004bc3
jmp 0x10007f76
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], ebx
push ecx
push eax
mov dword [ebp - 0x40], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, dword [ebp - 0x40]
mov eax, 0x186a0
mov ecx, dword [ebp - 0x44]
xor esi, esi
push ebx
push eax
push edx
inc esi
mov dword [ebp - 0x24], ecx
push ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ebx
call fcn.100510f0
add eax, esi
lea ecx, [ebp - 0x74]
adc edx, ebx
push edx
push eax
call fcn.10017ec6
sub esp, 0x10
lea ecx, [ebp - 0x8c]
mov esi, esp
push eax
push 0x1006ee80
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.10017ec6
pop ecx
pop ecx
mov edx, eax
lea ecx, [ebp - 0x5c]
call fcn.10002fac
pop ecx
mov edx, eax
mov ecx, esi
call fcn.10002f36
pop ecx
push 0xb7
mov ecx, edi
call fcn.10004bc3
lea ecx, [ebp - 0x5c]
call fcn.10001fe0
lea ecx, [ebp - 0x8c]
call fcn.10001fe0
lea ecx, [ebp - 0x74]
call fcn.10001fe0
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x5c]
call fcn.10017fa1
sub esp, 0x18
mov edx, str.Uploading_file_to_Controller:
mov ecx, esp
push eax
call fcn.10005405
sub esp, 0x14
mov ecx, esp
push 0x10060624
call fcn.1000209d
call fcn.1001795c
add esp, 0x30
lea ecx, [ebp - 0x5c]
call fcn.10001fe0
xorps xmm0, xmm0
movlpd qword [ebp - 0x3c], xmm0
cmp dword [ebp - 0x20], ebx
jb 0x10007ee2
ja 0x10007dc4
cmp dword [ebp - 0x24], ebx
jbe 0x10007ee2
mov eax, dword [ebp - 0x38]
xor edx, edx
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
mov eax, 0x186a0
mov dword [ebp - 0x38], esi
cmp edx, dword [ebp - 0xc]
jb 0x10007df0
mov ecx, dword [ebp - 8]
ja 0x10007de5
cmp eax, ecx
jbe 0x10007df0
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], ecx
push eax
call fcn.100300b3
pop ecx
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp + 8], eax
push esi
mov esi, dword [ebp - 0x28]
push esi
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x10007f41
push ebx
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x10]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10007f35
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x74]
push dword [ebp + 8]
call fcn.100020c4
sub esp, 0x18
lea ecx, [ebp - 0x8c]
mov esi, esp
push eax
push 0x1006ee80
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.10017ec6
pop ecx
pop ecx
mov edx, eax
lea ecx, [ebp - 0x5c]
call fcn.10002fac
pop ecx
mov edx, eax
mov ecx, esi
call fcn.10002f36
pop ecx
push 0x52
mov ecx, edi
call fcn.10004bc3
cmp eax, 0xffffffff
lea ecx, [ebp - 0x5c]
sete bl
call fcn.10001fe0
lea ecx, [ebp - 0x8c]
call fcn.10001fe0
lea ecx, [ebp - 0x74]
call fcn.10001fe0
test bl, bl
jne 0x10007f17
push dword [ebp + 8]
call fcn.100300bc
mov eax, dword [ebp - 0x10]
sub dword [ebp - 8], eax
mov edx, dword [ebp - 0x30]
sbb dword [ebp - 0xc], edx
add dword [ebp - 0x14], 1
mov esi, dword [ebp - 0x38]
pop ecx
mov ecx, dword [ebp - 0x1c]
push 0
pop ebx
adc dword [ebp - 0x18], ebx
add esi, eax
mov dword [ebp - 0x38], esi
adc ecx, edx
mov dword [ebp - 0x1c], ecx
cmp ecx, dword [ebp - 0x20]
jb 0x10007dd7
ja 0x10007ee2
cmp esi, dword [ebp - 0x24]
jb 0x10007dd7
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.10004f2b
mov bl, 1
lea ecx, [ebp + 0xc]
call fcn.10001f09
lea ecx, [ebp + 0x24]
call fcn.10001f09
lea ecx, [ebp + 0x3c]
call fcn.10001fe0
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x4c
mov ecx, edi
call fcn.10004f2b
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call fcn.100300bc
pop ecx
jmp 0x10007c7f
sub esp, 0x18
mov ecx, esp
push str.ReadFile_error
jmp 0x10007f4b
sub esp, 0x18
mov ecx, esp
push str.SetFilePointerEx_error
call fcn.1000209d
sub esp, 0x18
mov ecx, esp
push 0x10060588
call fcn.1000209d
call fcn.1001795c
push dword [ebp + 8]
call fcn.100300bc
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.10004f2b
jmp 0x10007ef4