Function at 0x10103693
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10155c19
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x101fe1c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0xf4], eax
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xdc], esi
mov dword [ebp - 0xe8], edx
cmp dword [eax + 0x1c], edx
je 0x10103751
cmp ebx, 0x40000
jb 0x10103751
mov dword [ebp - 0x108], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x118]
movlpd qword [ebp - 0xe0], xmm0
push ecx
mov ecx, dword [eax + 0x14]
push edx
push ebx
push dword [ebp + 0xc]
lea edx, [ebp - 0xe0]
mov dword [ebp - method.std::_Ref_count_class_C2R::SystemRegistryStorage_.virtual_12], 0x101b17bc
push dword [ebp + 8]
movlpd qword [ebp - 0x110], xmm0
mov dword [ebp - 0x104], esi
call fcn.10107886
mov ecx, dword [ebp - 0xe0]
mov esi, eax
add dword [edi], ecx
jmp 0x101039d3
mov ecx, dword [ebp + 0xc]
mov eax, 0x10000
mov edx, dword [ebp + 8]
cmp ebx, eax
mov edi, ebx
mov dword [ebp - 0xec], ecx
cmovae edi, eax
mov dword [ebp - 0xfc], edx
and dword [ebp - 0x104], 0
mov dword [ebp - 0x108], ecx
mov ecx, esi
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0x10c], edx
call fcn.10109829
mov esi, eax
test esi, esi
js 0x101039d3
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xe8]
push eax
mov eax, dword [ebp - 0xf4]
push edi
push dword [ebp - 0xf0]
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
xor ecx, ecx
mov dword [ebp - 0x100], ecx
test edi, edi
jne 0x101037d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0xf4]
cmp dword [eax + 0x1c], 0
je 0x10103810
test edi, edi
jne 0x10103831
cmp ecx, 0x3e5
jne 0x10103814
push 1
lea ecx, [ebp - 0xe8]
push ecx
lea ecx, [ebp - 0x114]
push ecx
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
neg eax
sbb edi, edi
neg edi
test edi, edi
jne 0x10103831
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1010382b
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x101039d3
mov ecx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0xe8]
mov edx, dword [ebp - 0xfc]
add dword [ecx], eax
add edx, eax
mov ecx, dword [ebp - 0xec]
adc ecx, 0
mov dword [ebp - 0xfc], edx
add dword [ebp - 0xf0], eax
mov dword [ebp - 0xec], ecx
sub ebx, eax
je 0x101039d3
cmp dword [ebp - 0xf8], eax
jne 0x10103889
mov esi, dword [ebp - 0xdc]
mov eax, 0x10000
cmp ebx, eax
mov edi, eax
cmovb edi, ebx
jmp 0x1010376f
mov eax, dword [ebp - 0xf4]
push ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0xdc], str.m_fOverlapped
cmp dword [eax + 0x1c], 0
lea eax, [ebp - 0xe1]
push eax
lea eax, [ebp - 0xdc]
setne byte [ebp - 0xe1]
push eax
call fcn.1008172b
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0xdc]
push ecx
push eax
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xdc], ebx
push eax
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0xd8], str.cbData
call fcn.1006ae41
mov ebx, eax
mov dword [ebp - 0xd8], str.lastErrorFromReadFile
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0xdc]
push ecx
push eax
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xac]
call fcn.1006ae41
mov ecx, dword [ebp - 0xe8]
mov edi, eax
push ecx
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xdc], ecx
push eax
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xd8], str.cbRead
push eax
lea ecx, [ebp - 0x84]
call fcn.1006ae41
mov esi, eax
mov dword [ebp - 0xd8], str.dwChunkSize
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0xdc]
push ecx
push eax
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x5c]
call fcn.1006ae41
push dword [ebp - 0xec]
mov dword [ebp - 0xdc], str.Unexpected_dwChunkSize
push ebx
push edi
push esi
push eax
lea eax, [ebp - 0xdc]
push eax
push ecx
push ecx
call fcn.10102908
lea ecx, [ebp - 0x4c]
call fcn.100093c1
lea ecx, [ebp - 0x74]
call fcn.100093c1
lea ecx, [ebp - 0x9c]
call fcn.100093c1
lea ecx, [ebp - 0xc4]
call fcn.100093c1
lea ecx, [ebp - 0x28]
call fcn.100093c1
mov esi, 0x8000ffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10033218
leave
ret 0x18