Function at 0x1003d4d0
Capabilities:
Get system information on windows
Write 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
push esi
mov esi, ecx
mov ecx, dword [0x10155000]
test ecx, ecx
push edi
mov dword [ebp - 0x14], esi
jne 0x1003d522
mov eax, dword [0x10154fc0]
test eax, eax
jne 0x1003d51b
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x54]
test eax, eax
mov dword [0x10154fc0], eax
jg 0x1003d51b
mov eax, 0x1000
mov dword [0x10154fc0], eax
mov dword [0x10155000], eax
mov ecx, eax
xor edi, edi
test byte [esi + 0x24], 4
jne 0x1003d5b6
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
lea edx, [ebp - 0x1c]
push edx
push ecx
push eax
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1003d56e
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 0x1003d73d
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
lea ebx, [esi + ecx*8]
cmp esi, ebx
jae 0x1003d5af
jmp 0x1003d580
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 0
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 0x14]
push eax
mov eax, dword [edx + 4]
push ecx
push eax
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1003d54f
add edi, dword [ebp - 0xc]
add esi, 8
cmp esi, ebx
jb 0x1003d580
mov eax, edi
jmp 0x1003d73b
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
lea edi, [esi + edx*8]
xor ebx, ebx
cmp esi, edi
mov eax, esi
mov dword [ebp - 0x10], edi
jae 0x1003d5da
lea ebx, [ebx]
add ebx, dword [eax + 4]
add eax, 8
cmp eax, edi
jb 0x1003d5d0
lea eax, [ebx + ecx - 1]
cdq
idiv ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x20], eax
lea eax, [eax*8 + 8]
call fcn.1010ec50
cmp esi, edi
mov ecx, esp
mov dword [ebp - 0x18], ecx
jae 0x1003d623
xor edi, edi
cmp dword [esi + 4], edi
jle 0x1003d61b
mov eax, dword [esi]
add eax, edi
add edi, dword [0x10155000]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
add ecx, 8
cmp edi, dword [esi + 4]
jl 0x1003d603
add esi, 8
cmp esi, dword [ebp - 0x10]
jb 0x1003d5fc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ecx], esi
mov dword [ecx + 4], esi
push esi
push 1
mov ecx, eax
push esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
sar ecx, 0x1f
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [0x10155000]
mov dword [ebp - 0x24], eax
lea eax, [ecx - 1]
xor edi, edi
test ebx, eax
mov dword [ebp - 0x10], ebx
je 0x1003d675
mov eax, ebx
cdq
mov esi, eax
add esi, dword [ebp + 8]
mov edi, edx
adc edi, dword [ebp + 0xc]
imul ecx, dword [ebp - 0x20]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x14]
push 0
push edx
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFileGather]
test eax, eax
jne 0x1003d716
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1003d6cb
call fcn.1010d600
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
push eax
mov dword [ecx + 4], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
or edx, eax
jmp 0x1003d73d
mov eax, dword [ebp - 0x14]
push 1
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x34]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1003d70c
call fcn.1010d600
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
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 0x1003d73d
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jae 0x1003d716
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jl 0x1003d738
jg 0x1003d72a
test esi, esi
jbe 0x1003d738
mov ecx, dword [ebp + 0x18]
mov ebx, dword [ebp - 0x14]
push ecx
push edi
push esi
call fcn.1003d830
mov eax, dword [ebp - 0x10]
xor edx, edx
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