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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x6bae70]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x6c9a40]
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x28], 0
push ebx
mov ebx, ecx
push esi
push edi
test al, 1
jne 0x43365b
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
mov esi, dword [ebp + 0x18]
movq xmm0, qword [ebp - 0x2c]
movq qword [esi], xmm0
mov dword [esi + 8], 0x6c9a30
cmp dword [ebx + 0x1c], 0
jne 0x43369c
mov eax, dword [0x6c9ac0]
test eax, eax
jne 0x433699
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x70]
mov ecx, 0x1000
test eax, eax
cmovle eax, ecx
mov dword [0x6c9ac0], eax
mov dword [ebx + 0x1c], eax
mov edx, dword [ebp + 8]
mov eax, edx
mov ecx, dword [ebp + 0xc]
and eax, ecx
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x10], ecx
cmp eax, 0xffffffff
jne 0x433734
push 1
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0
push 0
push dword [ebx]
mov dword [ebp - 0x28], 0
call edi
test eax, eax
jne 0x433728
mov eax, dword [0x6c9a40]
test al, 1
jne 0x4336f2
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov ecx, 0x6c9a30
push eax
mov eax, dword [0x6c9a30]
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x18], al
or eax, 0xffffffff
movq xmm0, qword [ebp - 0x1c]
or edx, eax
movq qword [esi], xmm0
mov dword [esi + 8], 0x6c9a30
jmp 0x433999
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x10], ecx
test byte [ebx + 0x20], 4
mov dword [ebp - 0xc], 0
jne 0x4337f7
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], edx
push eax
push ecx
push edx
push dword [ebx]
mov dword [ebp - 0x28], ecx
call edi
test eax, eax
je 0x4336d7
mov esi, dword [ebp + 0x10]
lea edi, [esi + 8]
cmp esi, edi
jae 0x433994
lea ecx, [ecx]
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [esi + 4]
push dword [esi]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4337a3
mov eax, dword [ebp - 0xc]
add esi, 8
add eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
cmp esi, edi
jb 0x433770
jmp 0x433997
mov eax, dword [0x6c9a40]
test al, 1
jne 0x4337be
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov ecx, 0x6c9a30
push eax
mov eax, dword [0x6c9a30]
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x18], al
mov eax, dword [ebp + 0x18]
movq xmm0, qword [ebp - 0x1c]
movq qword [eax], xmm0
mov dword [eax + 8], 0x6c9a30
or eax, 0xffffffff
or edx, eax
jmp 0x433999
mov edi, dword [ebp + 0x10]
mov ecx, edi
call fcn.00433570
mov dword [ebp - 0x34], eax
dec eax
add eax, dword [ebx + 0x1c]
cdq
idiv dword [ebx + 0x1c]
mov dword [ebp - 0x38], eax
lea eax, [eax*8 + 8]
call fcn.005ed890
mov eax, esp
mov dword [ebp - 0x24], eax
mov esi, eax
lea eax, [edi + 8]
mov dword [ebp - 0x50], eax
cmp edi, eax
jae 0x433856
lea esp, [esp]
xor ecx, ecx
cmp dword [edi + 4], ecx
jbe 0x43384f
mov eax, dword [edi]
add eax, ecx
cdq
mov dword [esi], eax
mov dword [esi + 4], edx
add esi, 8
add ecx, dword [ebx + 0x1c]
cmp ecx, dword [edi + 4]
jb 0x433837
mov eax, dword [ebp - 0x50]
add edi, 8
cmp edi, eax
jb 0x433830
mov ecx, dword [ebp - 0x10]
mov eax, ecx
push 0
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
sar eax, 0x1f
mov eax, dword [ebp - 0x30]
push 1
push 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x4c]
mov eax, dword [ebp - 0x34]
add dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x1c]
imul eax, dword [ebp - 0x38]
push ecx
push 0
push eax
push dword [ebp - 0x24]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFileScatter]
test eax, eax
jne 0x43398b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3e5
je 0x43391f
mov eax, dword [0x6c9a40]
test al, 1
jne 0x4338e4
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
call esi
mov dword [ebp - 0x1c], eax
mov ecx, 0x6c9a30
push eax
mov eax, dword [0x6c9a30]
mov eax, dword [eax + 0x18]
call eax
push dword [ebp - 0x3c]
mov byte [ebp - 0x18], al
mov eax, dword [ebp + 0x18]
movq xmm0, qword [ebp - 0x1c]
movq qword [eax], xmm0
mov dword [eax + 8], 0x6c9a30
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
or edx, eax
jmp 0x433999
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x43398b
mov eax, dword [0x6c9a40]
test al, 1
jne 0x433950
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
call esi
mov dword [ebp - 0x1c], eax
mov ecx, 0x6c9a30
push eax
mov eax, dword [0x6c9a30]
mov eax, dword [eax + 0x18]
call eax
push dword [ebp - 0x3c]
mov byte [ebp - 0x18], al
mov eax, dword [ebp + 0x18]
movq xmm0, qword [ebp - 0x1c]
movq qword [eax], xmm0
mov dword [eax + 8], 0x6c9a30
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
or edx, eax
jmp 0x433999
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
xor edx, edx
lea esp, [ebp - 0x84]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005e9734
mov esp, ebp
pop ebp
ret 0x14