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

Disassembly:
push 0xffffffffffffffff
push 0x697ae8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push ebp
mov ebp, ecx
push esi
mov ecx, dword [ebp + 8]
push edi
mov eax, dword [ebp + 0xc]
lea esi, [ebp + 4]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x30], ebp
call fcn.00632090
lea ecx, [ebp + 0x14]
call fcn.005952d0
mov edi, dword [esp + 0x84]
xor ebx, ebx
lea eax, [esp + 0x18]
push ebx
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push edi
mov dword [esp + 0x24], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
mov dl, byte [esp + 0x84]
mov dword [esp + 0x34], ebx
mov byte [esp + 0x30], dl
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 0x10]
test ebx, ebx
jle 0x593f1d
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edi, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp ecx, ebx
mov dword [esp + 0x14], 0
jae 0x593db6
mov ecx, esi
call fcn.0049cab0
cmp ebx, eax
jae 0x593d18
mov ecx, esi
call fcn.0049cab0
mov ebp, eax
jmp 0x593d1a
mov ebp, ebx
mov ecx, esi
call fcn.0049cab0
add eax, ebp
mov dword [esp + 0x24], eax
jns 0x593d2b
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.00673b05
add esp, 4
mov ebp, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebp
push edi
push eax
call fcn.0044e990
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], eax
push ecx
push ebx
push eax
mov ecx, esi
call fcn.00630e40
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 8]
lea eax, [edx + ebx*4]
push eax
push ecx
push edi
mov ecx, esi
call fcn.0044e990
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
mov ecx, esi
call fcn.004748c0
mov eax, dword [esi + 4]
push eax
call fcn.006713a0
mov ecx, dword [esp + 0x28]
add esp, 4
lea edx, [ebp + ecx*4]
mov ecx, esi
mov dword [esi + 0xc], edx
call fcn.0049cab0
add eax, ebx
mov ebx, dword [esp + 0x10]
mov dword [esi + 4], ebp
lea eax, [ebp + eax*4]
mov ebp, dword [esp + 0x28]
mov dword [esi + 8], eax
jmp 0x593e5c
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, ebx
jae 0x593e14
lea ecx, [ebx*4]
mov dword [esp + 0x28], ecx
add ecx, edi
push ecx
push eax
push edi
mov ecx, esi
call fcn.0044e990
mov eax, dword [esi + 8]
lea edx, [esp + 0x14]
mov ecx, eax
push edx
sub ecx, edi
sar ecx, 2
sub ebx, ecx
mov ecx, esi
push ebx
push eax
call fcn.00630e40
mov eax, dword [esi + 8]
cmp edi, eax
je 0x593e06
mov edx, dword [esp + 0x14]
mov dword [edi], edx
add edi, 4
cmp edi, eax
jne 0x593df9
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 8]
add ecx, eax
mov dword [esi + 8], ecx
jmp 0x593e58
test ebx, ebx
jbe 0x593e5c
shl ebx, 2
push eax
push eax
sub eax, ebx
mov ecx, esi
push eax
call fcn.0044e990
mov ecx, dword [esi + 8]
mov eax, ecx
sub eax, ebx
cmp edi, eax
je 0x593e41
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, edi
mov dword [ecx], edx
jne 0x593e32
lea eax, [ebx + edi]
cmp edi, eax
je 0x593e55
mov ecx, dword [esp + 0x14]
mov dword [edi], ecx
add edi, 4
cmp edi, eax
jne 0x593e48
add dword [esi + 8], ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [ebp + 8]
lea edx, [esp + 0x18]
push 0
lea ecx, [ebx*4]
push edx
mov edx, dword [esp + 0x8c]
push ecx
push eax
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
lea eax, [esp + 0x30]
mov ecx, ebp
push eax
call fcn.00597120
test eax, eax
jne 0x593ebf
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x84], 0xffffffff
call fcn.004748c0
mov eax, dword [esp + 0x34]
push eax
call fcn.006713a0
add esp, 4
xor eax, eax
jmp 0x593fd5
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
cmp dword [edx + ecx*4], 0x18
jne 0x593ed5
mov eax, dword [ebp + 8]
cmp dword [eax], 6
je 0x593f16
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00632090
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push eax
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x84], 0xffffffff
call fcn.004748c0
mov edx, dword [esp + 0x34]
push edx
call fcn.006713a0
add esp, 4
xor eax, eax
jmp 0x593fd5
mov edi, dword [esp + 0x84]
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x24]
push 4
push ecx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
mov eax, dword [esp + 0x1c]
xor ebx, ebx
test eax, eax
jle 0x593fa5
jmp 0x593f45
mov edi, dword [esp + 0x84]
mov eax, dword [esp + 0x10]
xor esi, esi
test eax, eax
jle 0x593f73
mov edx, dword [esp + 0x34]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + esi*4]
mov eax, dword [eax + esi*4]
lea edx, [esp + ecx + 0x40]
mov ecx, ebp
push edx
push eax
push edi
call fcn.00596ef0
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x593f4f
mov ecx, dword [esp + 0x40]
lea esi, [esp + 0x40]
mov dword [esp + 0x58], ecx
mov ecx, 6
lea edi, [esp + 0x5c]
lea edx, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x28]
push edx
push eax
lea ecx, [ebp + 0x14]
call fcn.00594fb0
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jl 0x593f3e
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x84], 0xffffffff
call fcn.004748c0
mov eax, dword [esp + 0x34]
push eax
call fcn.006713a0
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret 4