Function at 0x1003d280
Capabilities:
Get system information on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x1014d0cc]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [0x10155000]
test ebx, ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x1c], esi
jne 0x1003d2d4
mov ebx, dword [0x10154fc0]
test ebx, ebx
jne 0x1003d2ce
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x54]
test ebx, ebx
mov dword [0x10154fc0], ebx
jg 0x1003d2ce
mov ebx, 0x1000
mov dword [0x10154fc0], ebx
mov dword [0x10155000], ebx
xor edi, edi
test byte [esi + 0x24], 4
jne 0x1003d365
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
lea edx, [ebp - 0x14]
push edx
push ecx
push eax
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1003d320
call fcn.1010d600
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
or eax, 0xffffffff
mov dword [ecx + 4], esi
or edx, eax
jmp 0x1003d4ac
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
lea ebx, [esi + ecx*8]
cmp esi, ebx
jae 0x1003d4a8
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 0
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 0x1c]
push eax
mov eax, dword [edx + 4]
push ecx
push eax
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003d301
add edi, dword [ebp - 0xc]
add esi, 8
cmp esi, ebx
jb 0x1003d331
jmp 0x1003d4a8
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
lea ecx, [esi + ecx*8]
xor edi, edi
cmp esi, ecx
mov dword [ebp - 0x18], edi
mov eax, esi
mov dword [ebp - 0xc], ecx
jae 0x1003d38d
lea esp, [esp]
add edi, dword [eax + 4]
add eax, 8
cmp eax, ecx
jb 0x1003d380
mov dword [ebp - 0x18], edi
lea eax, [edi + ebx - 1]
cdq
idiv ebx
mov dword [ebp - 0x20], eax
lea eax, [eax*8 + 8]
call fcn.1010ec50
cmp esi, dword [ebp - 0xc]
mov ecx, esp
mov dword [ebp - 0x10], ecx
jae 0x1003d3d3
xor edi, edi
cmp dword [esi + 4], edi
jle 0x1003d3c8
mov eax, dword [esi]
add eax, edi
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
add edi, ebx
add ecx, 8
cmp edi, dword [esi + 4]
jl 0x1003d3b4
add esi, 8
cmp esi, dword [ebp - 0xc]
jb 0x1003d3ad
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
xor esi, esi
push esi
mov dword [ecx], esi
mov dword [ecx + 4], esi
push esi
mov edx, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
push 1
push esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
sar edx, 0x1f
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [0x10155000]
imul eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x34]
push ecx
push esi
mov esi, dword [ebp - 0x1c]
push eax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFileScatter]
test eax, eax
jne 0x1003d49e
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3e5
je 0x1003d454
call fcn.1010d600
mov esi, eax
call ebx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov dword [ecx + 4], esi
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
or edx, eax
jmp 0x1003d4ac
mov ecx, dword [esi + 4]
push 1
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1003d495
call ebx
cmp eax, 0x26
je 0x1003d495
call fcn.1010d600
mov esi, eax
call ebx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x24]
push edx
mov dword [ecx], eax
mov dword [ecx + 4], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
or edx, eax
jmp 0x1003d4ac
mov eax, dword [ebp - 0x10]
cmp eax, edi
jae 0x1003d49e
mov edi, eax
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov eax, edi
lea esp, [ebp - 0x64]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1010defb
mov esp, ebp
pop ebp
ret 0x14