Function at 0x443d60
Capabilities:
Get number of processors
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7400
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x52a0b0]
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 edi, ecx
mov edx, dword [ebp + 0xc]
xor esi, esi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], ecx
add eax, 4
mov ebx, dword [edx + 0x38]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x64], edx
mov edx, dword [edx + 0x30]
mov dword [ebp - 0x6c], ecx
mov ecx, edx
shr ecx, 2
and edx, 6
and ecx, 0xffffff01
mov dword [ebp - 0x70], ebx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], edx
jb 0x443dcf
mov eax, dword [eax]
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x54], eax
cmp eax, 0xffffffff
jne 0x443e00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x44], eax
xor eax, eax
jmp 0x443f49
mov edi, 0x400
cmp ebx, edi
cmovb edi, ebx
push edi
call fcn.004a0ee0
add esp, 4
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x58], 1
push 0
push ecx
push edi
push eax
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x443f35
cmp byte [ebp - 0x5c], 0
je 0x443ecb
cmp dword [ebp - 0x60], 0
je 0x443ecb
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x40]
push eax
call fcn.004451b0
mov esi, eax
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x14]
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x68], ecx
cmp ecx, dword [esi + 0x20]
jae 0x443e77
cmp dword [esi + 0x1c], 0
jne 0x443e97
push dword [esi + 0x1c]
call fcn.004a0edb
mov eax, dword [ebp - 0x68]
and eax, 0xffffffc0
add eax, 0x40
push eax
mov dword [esi + 0x20], eax
call fcn.004a0ee0
add esp, 8
mov dword [esi + 0x1c], eax
push 3
push dword [esi + 0x20]
mov ecx, esi
push dword [esi + 0x1c]
call fcn.00408320
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
push 0
push dword [esi + 0x1c]
call fcn.004081e0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404c20
mov esi, dword [ebp - 0x4c]
push 0
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x44]
add esi, eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x4c], esi
test ecx, ecx
je 0x443f00
mov eax, dword [ecx]
push dword [ebp - 0x70]
push esi
mov eax, dword [eax]
call eax
test al, al
jne 0x443f2e
mov eax, dword [ebp - 0x44]
sub ebx, eax
je 0x443f35
test eax, eax
je 0x443f35
push 0
cmp ebx, 0x400
lea eax, [ebp - 0x44]
push eax
cmovb edi, ebx
push edi
push dword [ebp - 0x48]
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x443e36
jmp 0x443f35
mov dword [ebp - 0x58], 0
mov ebx, dword [ebp - 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x58]
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.004a0eca
mov esp, ebp
pop ebp
ret 0x10