Function at 0x1003d70e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10052004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
mov eax, esi
push edi
xor edi, edi
mov dword [ebp - 0x2c], 0xc
and eax, 3
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edi
sub eax, edi
je 0x1003d765
sub eax, 1
je 0x1003d75e
sub eax, 1
je 0x1003d757
mov eax, 0x80030057
jmp 0x1003d959
mov eax, 0xc0000000
jmp 0x1003d76a
mov eax, 0x40000000
jmp 0x1003d76a
mov eax, 0x80000000
push edi
neg ecx
lea edx, [ebp - 0x2c]
push 0x80
push 3
sbb ecx, ecx
and ecx, edx
push ecx
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_CreateFileW]
mov dword [ebx + 0x28], eax
cmp eax, 0xffffffff
jne 0x1003d7a1
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ecx, eax
call fcn.10004c0d
jmp 0x1003d959
push dword [ebp + 8]
mov dword [ebx + 0x258], esi
lea ecx, [ebx + 0x260]
mov dword [ebx + 0x238], edi
mov esi, 0x10001cc0
mov dword [ebx + 0x2c], edi
mov edx, 0x208
lea edi, [ebx + 0x23c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
mov dword [ebx + 0x25c], edi
call fcn.100070a9
test eax, eax
js 0x1003d959
push edi
lea eax, [ebp - 0x10]
push eax
push 0x200
lea esi, [ebx + 0x30]
push esi
push dword [ebx + 0x28]
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_ReadFile]
test eax, eax
je 0x1003d78f
cmp dword [ebp - 0x10], 0x200
je 0x1003d810
mov eax, 0x8003001e
jmp 0x1003d959
push esi
call fcn.1003debb
test eax, eax
js 0x1003d959
push edi
push dword [ebx + 0x28]
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1003d83d
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
test eax, eax
jne 0x1003d78f
mov ecx, dword [ebx + 0x7c]
mov eax, dword [ebx + 0x74]
inc ecx
mov edx, dword [ebx + 0x5c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x78]
shl edx, 9
shl ecx, 9
sub edi, edx
shl eax, 9
sub edi, ecx
mov dword [ebp - 8], eax
add eax, edi
add eax, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
test edx, edx
je 0x1003d954
test edi, edi
je 0x1003d954
push eax
lea ecx, [ebp - 0x20]
call fcn.1003d56d
mov esi, dword [ebp - 0x20]
test esi, esi
jne 0x1003d894
mov edi, 0x80030008
jmp 0x1003d933
cmp dword [ebp - 8], 0
jne 0x1003d89f
mov eax, dword [ebp - 0x1c]
jmp 0x1003d8a6
mov eax, dword [ebp - 0xc]
inc eax
shl eax, 9
push 0
push 0
push eax
push dword [ebx + 0x28]
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1003d8d0
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
push esi
push dword [ebx + 0x28]
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_ReadFile]
test eax, eax
jne 0x1003d8df
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ecx, eax
call fcn.10004c0d
jmp 0x1003d931
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x10], eax
je 0x1003d8ee
mov edi, 0x8003001e
jmp 0x1003d933
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
add ecx, esi
add eax, ecx
mov dword [ebp - 0xc], ecx
push edi
push eax
mov ecx, ebx
call fcn.1003dc6e
mov edi, eax
test edi, edi
js 0x1003d933
push dword [ebp - 0x14]
mov ecx, ebx
push dword [ebp - 0xc]
call fcn.1003de48
mov edi, eax
test edi, edi
js 0x1003d933
mov eax, dword [ebp - 8]
test eax, eax
je 0x1003d933
push dword [ebx + 0x22c]
push eax
push esi
call fcn.1003dc27
mov edi, eax
test esi, esi
je 0x1003d950
push esi
mov esi, dword [0x10052018]
mov ecx, esi
push 0
push dword [0x10052460]
call dword [0x100532e8]
call esi
mov eax, edi
jmp 0x1003d959
mov eax, 0x80030109
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100281a0
mov esp, ebp
pop ebp
ret 0xc