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

Disassembly:
push 0xffffffffffffffff
push 0x43baab
mov eax, dword fs:[0]
push eax
sub esp, 0x664
mov eax, dword [0x44bcd0]
xor eax, esp
mov dword [esp + 0x660], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44bcd0]
xor eax, esp
push eax
lea eax, [esp + 0x678]
mov dword fs:[0], eax
mov esi, dword [esp + 0x688]
mov edi, dword [esp + 0x68c]
mov ebx, dword [esp + 0x690]
push 0x13f
lea eax, [esp + 0x139]
push 0
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x140], 0
call fcn.00420a40
push 0x7d000
call fcn.00410bca
push 0x104
lea ecx, [esp + 0x44]
push 0
push ecx
mov dword [esp + 0x38], eax
call fcn.00420a40
add esp, 0x1c
call fcn.00411c35
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d5d4
push 0x80004005
call fcn.004011d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x43d570
push esi
mov dword [esp + 0x688], 0
call fcn.0042065d
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x40d7e6
push 0x400
lea ecx, [esp + 0x278]
push 0
push ecx
call fcn.00420a40
push ebp
call fcn.00420274
add esp, 0x10
test eax, eax
jne 0x40d7dd
push ebp
push 0x400
lea edx, [esp + 0x27c]
push 1
push edx
call fcn.0042057c
push ebp
mov esi, eax
call fcn.004209c0
add esp, 0x14
mov ebx, eax
mov dword [esp + 0x2c], edx
cmp esi, 0x400
jne 0x40d7c4
mov ecx, str.LeaderCab
lea eax, [esp + 0x274]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d690
test dl, dl
je 0x40d68c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d690
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d670
xor eax, eax
jmp 0x40d695
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40d7c4
push 0x104
push eax
lea eax, [esp + 0x13c]
push eax
call fcn.00420a40
lea edx, [esp + 0x140]
add esp, 0xc
mov eax, edi
sub edx, edi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40d6c0
lea edi, [esp + 0x134]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40d6d2
mov cx, word [0x43d584]
lea eax, [esp + 0x298]
mov word [edi], cx
mov esi, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d6f0
lea edi, [esp + 0x134]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40d701
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]
mov esi, dword [esp + 0x2c]
push 0
push esi
push ebx
push ebp
call fcn.00420b56
lea edx, [esp + 0x144]
push edx
lea eax, [esp + 0x28]
push str.SplitFile_:_s__Begin
push eax
call fcn.00401f40
mov ecx, dword [esp + 0x30]
add esp, 0x1c
push 0
push ecx
mov ecx, 0x44d3c9
call fcn.0040bc50
mov edx, dword [esp + 0x294]
mov ecx, dword [esp + 0x304]
push edx
lea eax, [esp + 0x300]
push eax
push ecx
lea edx, [esp + 0x140]
push edx
push ebp
call fcn.0040d0e0
lea eax, [esp + 0x148]
push eax
lea ecx, [esp + 0x2c]
push str.SplitFile_:_s__End
push ecx
call fcn.00401f40
mov edx, dword [esp + 0x34]
add esp, 0x20
push 0
push edx
mov ecx, 0x44d3c9
call fcn.0040bc50
mov eax, dword [esp + 0x304]
mov ecx, dword [esp + 0x308]
add eax, ebx
push 0
adc ecx, esi
push ecx
push eax
push ebp
call fcn.00420b56
mov edi, dword [esp + 0x28]
add esp, 0x10
push ebp
call fcn.00420274
add esp, 4
test eax, eax
je 0x40d62c
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
push ebp
call fcn.00420014
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
call fcn.00410bbf
lea eax, [esp + 0x34]
push eax
call fcn.004089a0
add esp, 8
test eax, eax
je 0x40d8b5
push 0x207
lea ecx, [esp + 0x279]
push 0
push ecx
mov byte [esp + 0x280], 0
call fcn.00420a40
lea eax, [esp + 0x280]
add esp, 0xc
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d830
mov edx, dword [str.__Back__]
mov ecx, dword [0x43e4b4]
mov dword [eax], edx
mov dl, byte [0x43e4b8]
mov dword [eax + 4], ecx
mov byte [eax + 8], dl
mov eax, ebx
mov ecx, ebx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40d856
lea edi, [esp + 0x274]
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40d870
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 + 0x274]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40d890
mov ax, word [0x43df28]
push 1
lea ecx, [esp + 0x278]
push ecx
lea edx, [esp + 0x38]
mov word [edi], ax
push edx
jmp 0x40da52
push 0x104
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00420a40
lea ecx, [esp + 0x3c]
push ecx
call fcn.00408940
push esi
call fcn.00408d60
push str..ldx
push eax
call fcn.00420d6f
add esp, 0x1c
test eax, eax
lea eax, [esp + 0x30]
jne 0x40d916
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d8f0
mov edx, dword [str.Ldxc.exe]
mov ecx, dword [0x43e4a8]
mov dword [eax], edx
mov dx, word [0x43e4ac]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
jmp 0x40d939
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d917
mov ecx, dword [0x43e498]
mov edx, dword [0x43e49c]
mov dword [eax], ecx
mov cl, byte [0x43e4a0]
mov dword [eax + 4], edx
mov byte [eax + 8], cl
push 0x207
lea edx, [esp + 0x279]
push 0
push edx
mov byte [esp + 0x280], 0
call fcn.00420a40
lea eax, [esp + 0x280]
add esp, 0xc
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d960
mov ecx, dword [str.__SimpleBack__]
mov edx, dword [0x43e48c]
mov dword [eax], ecx
mov ecx, dword [0x43e490]
mov dword [eax + 4], edx
mov dx, word [0x43e494]
mov dword [eax + 8], ecx
mov cl, byte [0x43e496]
mov word [eax + 0xc], dx
mov byte [eax + 0xe], cl
mov eax, ebx
mov ecx, ebx
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40d9a0
lea edi, [esp + 0x274]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40d9b3
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 + 0x274]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40d9d1
mov edx, dword [0x43e484]
mov eax, dword [esp + 0x18]
mov dword [edi], edx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40d9e7
lea edi, [esp + 0x274]
sub eax, ecx
mov esi, ecx
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40da00
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x274]
rep movsb byte es:[edi], byte [esi]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40da20
mov cx, word [0x43e480]
mov dl, byte [0x43e482]
mov word [eax], cx
push 0x64
mov byte [eax + 2], dl
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [esp + 0x278]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00409450
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
mov dword [esp + 0x680], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40da85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
mov ecx, dword [esp + 0x678]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x660]
xor ecx, esp
call fcn.0041eff4
add esp, 0x670
ret