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

Disassembly:
push 0xffffffffffffffff
push 0x43e77b
mov eax, dword fs:[0]
push eax
sub esp, 0x838
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x830], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x84c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x85c]
mov esi, ecx
push 0x207
lea ecx, [esp + 0x641]
mov edi, edx
push 0
push ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], eax
mov byte [esp + 0x648], 0
call fcn.00424c40
add esp, 0xc
push 0x7d000
call fcn.004133db
add esp, 4
push 0x208
lea edx, [esp + 0x438]
push 0
push edx
mov dword [esp + 0x34], eax
call fcn.00424c40
add esp, 0xc
call fcn.004133f1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f393
push 0x80004005
call fcn.00409d60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x447a7c
push esi
mov dword [esp + 0x85c], 0
call fcn.00422167
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x40f58e
push 0x400
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.00424c40
add esp, 0xc
push ebp
call fcn.004227eb
add esp, 4
test eax, eax
jne 0x40f585
jmp 0x40f3f0
push ebp
push 0x400
lea edx, [esp + 0x3c]
push 1
push edx
call fcn.00422af3
push ebp
mov esi, eax
call fcn.004227a1
add esp, 0x14
mov ebx, eax
mov dword [esp + 0x30], edx
cmp esi, 0x400
jne 0x40f574
mov ecx, str.LeaderCab
lea eax, [esp + 0x34]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40f448
test dl, dl
je 0x40f444
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40f448
add eax, 2
add ecx, 2
test dl, dl
jne 0x40f428
xor eax, eax
jmp 0x40f44d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40f574
push 0x208
push eax
lea eax, [esp + 0x644]
push eax
call fcn.00424c40
lea edx, [esp + 0x648]
add esp, 0xc
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40f476
lea edi, [esp + 0x63c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40f488
mov cx, word [0x4478d8]
lea eax, [esp + 0x58]
mov word [edi], cx
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f4a0
lea edi, [esp + 0x63c]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40f4b1
mov edx, dword [esp + 0x30]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
push edx
mov ecx, eax
and ecx, 3
push ebx
push ebp
rep movsb byte es:[edi], byte [esi]
call fcn.00422bac
lea eax, [esp + 0x64c]
push eax
lea ecx, [esp + 0x2c]
push str.SplitFile_:_s__Begin
push ecx
call fcn.00409670
mov edx, dword [esp + 0x34]
add esp, 0x1c
push 0
push edx
push 0x453d09
call fcn.0040d390
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0xc4]
push eax
lea ecx, [esp + 0x640]
push ecx
push ebp
lea ecx, [esp + 0xc8]
call fcn.004120b0
add esp, 0xc
lea edx, [esp + 0x63c]
push edx
lea eax, [esp + 0x1c]
push str.SplitFile_:_s__End
push eax
call fcn.00409670
mov ecx, dword [esp + 0x24]
add esp, 0xc
push 0
push ecx
push 0x453d09
call fcn.0040d390
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc8]
add edx, ebx
adc eax, dword [esp + 0x30]
push 0
push eax
push edx
push ebp
call fcn.00422bac
mov edi, dword [esp + 0x30]
add esp, 0x10
push ebp
call fcn.004227eb
add esp, 4
test eax, eax
je 0x40f3f0
push ebp
call fcn.004221f5
add esp, 4
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004133e6
lea edx, [esp + 0x438]
add esp, 4
push edx
call fcn.00409e30
add esp, 4
test eax, eax
je 0x40f649
push 0x207
lea eax, [esp + 0x39]
push 0
push eax
mov byte [esp + 0x40], 0
call fcn.00424c40
lea eax, [esp + 0x40]
add esp, 0xc
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40f5d1
mov ecx, dword [str.__Back__]
mov edx, dword [0x448b24]
mov dword [eax], ecx
mov cl, byte [0x448b28]
mov dword [eax + 4], edx
mov byte [eax + 8], cl
mov eax, dword [esp + 0x1c]
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40f600
lea edi, [esp + 0x34]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40f610
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x34]
dec edi
jmp 0x40f630
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40f630
mov dx, word [0x44846c]
mov word [edi], dx
push 1
jmp 0x40f836
push 0x208
lea edx, [esp + 0x438]
push 0
push edx
call fcn.00424c40
add esp, 0xc
push 0x208
lea eax, [esp + 0x438]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x434]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f680
sub eax, edx
add eax, 0xffffffff
mov bl, 0x5c
js 0x40f69e
cmp byte [esp + eax + 0x434], bl
je 0x40f69e
sub eax, 1
jns 0x40f690
mov esi, dword [esp + 0x24]
mov byte [esp + eax + 0x434], 0
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f6b0
sub eax, edx
xor edx, edx
cmp byte [eax + esi - 1], bl
je 0x40f6dd
lea ecx, [eax - 1]
test ecx, ecx
jl 0x40f6dd
mov al, byte [ecx + esi]
cmp al, 0x2e
je 0x40f6da
cmp al, bl
je 0x40f6dd
sub ecx, 1
jns 0x40f6c8
jmp 0x40f6dd
lea edx, [ecx + esi]
push str..ldx
push edx
call fcn.00421a4e
add esp, 8
test eax, eax
lea eax, [esp + 0x434]
jne 0x40f71d
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40f6f7
mov ecx, dword [str.Ldxc.exe]
mov edx, dword [0x448b30]
mov dword [eax], ecx
mov cx, word [0x448b34]
mov dword [eax + 4], edx
mov word [eax + 8], cx
jmp 0x40f742
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40f720
mov edx, dword [0x448b38]
mov ecx, dword [0x448b3c]
mov dword [eax], edx
mov dl, byte [0x448b40]
mov dword [eax + 4], ecx
mov byte [eax + 8], dl
push 0x207
lea eax, [esp + 0x39]
push 0
push eax
mov byte [esp + 0x40], 0
call fcn.00424c40
lea eax, [esp + 0x40]
add esp, 0xc
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40f760
mov ecx, dword [str.__SimpleBack__]
mov edx, dword [0x448b48]
mov dword [eax], ecx
mov ecx, dword [0x448b4c]
mov dword [eax + 4], edx
mov dx, word [0x448b50]
mov dword [eax + 8], ecx
mov cl, byte [0x448b52]
mov word [eax + 0xc], dx
mov byte [eax + 0xe], cl
mov eax, dword [esp + 0x1c]
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40f7a0
lea edi, [esp + 0x34]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40f7b0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x34]
dec edi
jmp 0x40f7d0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40f7d0
mov edx, dword [0x448b54]
mov eax, dword [esp + 0x20]
mov dword [edi], edx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40f7e6
lea edi, [esp + 0x34]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40f7f6
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x34]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40f811
mov cx, word [0x448b58]
mov dl, byte [0x448b5a]
mov word [eax], cx
push 0x64
mov byte [eax + 2], dl
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x43c]
push ecx
call fcn.0040a140
mov dword [esp + 0x860], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f876
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
mov ecx, dword [esp + 0x84c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x830]
xor ecx, esp
call fcn.0042179d
add esp, 0x844
ret