Function at 0x40c150
Capabilities:
Get disk information
Get number of processors
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4b0a1c
mov eax, dword fs:[0]
push eax
sub esp, 0xd7c
mov eax, dword [0x4f2888]
xor eax, esp
mov dword [esp + 0xd78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f2888]
xor eax, esp
push eax
lea eax, [esp + 0xd90]
mov dword fs:[0], eax
mov esi, dword [esp + 0xda0]
push str._DOWN__Worker::Requst_DownLoadPre_PRDOWNCTX_pPtrCheck__r_n
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ecx
lea ebp, [esi + 0x2144]
mov ecx, esp
mov dword [esp + 0x18], esp
push ebp
call fcn.004021a0
mov ecx, dword [edi + 8]
call fcn.004102b0
mov ebx, dword [esi + 0x28]
sub ebx, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
sbb ecx, dword [esi + 0x34]
cmp edx, ecx
jg 0x40c301
jl 0x40c1d8
cmp eax, ebx
ja 0x40c301
mov ecx, dword [edi + 8]
xor ebx, ebx
push ebx
call fcn.004120f0
push ebp
lea ecx, [esp + 0x18]
mov dword [esi], 2
call fcn.004021a0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
mov dword [esp + 0xd98], ebx
jge 0x40c20a
or eax, 0xffffffff
jmp 0x40c225
push 0x4bb75c
push ecx
call fcn.0047fa95
add esp, 8
cmp eax, ebx
jne 0x40c221
or eax, 0xffffffff
jmp 0x40c225
sub eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401d40
mov ecx, dword [edi + 8]
mov esi, dword [esp + 0x18]
mov dword [ecx + 0x380], ebx
mov edx, dword [edi + 8]
mov byte [esp + 0xd98], 1
cmp dword [edx + 0x25c4], ebx
je 0x40c26d
push esi
push 0x4bd388
mov eax, edx
mov ecx, dword [eax + 0x25c4]
push 3
push ecx
call fcn.0040f260
add esp, 0x10
push esi
lea edx, [esp + 0x590]
push 0x4bd320
push edx
call fcn.004809ea
add esp, 0xc
push str.void_Worker::Requst_DownLoadPre_PRDOWNCTX_pPtrCheck__STOP__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [edi + 8]
mov edx, dword [ecx + 0x20]
push 1
lea eax, [esp + 0x590]
push eax
push 0x1388
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esi - 0x10]
mov byte [esp + 0xd98], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c2cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0xd98], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c668
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40c668
push str._DOWN__Worker::Requst_DownLoadPre_PRDOWNCTX_pPtrCheck__01__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ebx, ebx
cmp dword [esi + 0x2c], ebx
jl 0x40c4f2
jg 0x40c326
cmp dword [esi + 0x28], 0xfff13d80
jb 0x40c4f2
push ebp
lea ecx, [esp + 0x1c]
call fcn.004021a0
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
mov dword [esp + 0xd98], 2
jge 0x40c34b
or eax, 0xffffffff
jmp 0x40c366
push 0x4bb75c
push ecx
call fcn.0047fa95
add esp, 8
cmp eax, ebx
jne 0x40c362
or eax, 0xffffffff
jmp 0x40c366
sub eax, dword [esp + 0x18]
inc eax
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401d40
push 0x64
lea edx, [esp + 0x129]
push ebx
push edx
mov byte [esp + 0xda4], 3
mov byte [esp + 0x130], bl
call fcn.00480970
push 0x64
lea eax, [esp + 0xcd]
push ebx
push eax
mov byte [esp + 0xd4], bl
call fcn.00480970
mov ebp, dword [esp + 0x2c]
add esp, 0x18
push 0x64
lea ecx, [esp + 0xc0]
push ecx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x30]
push eax
push 0x64
lea ecx, [esp + 0x13c]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp eax, ebx
je 0x40c4a3
push str.NTFS
lea edx, [esp + 0xc0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40c4a3
mov dword [esi], 3
mov eax, dword [edi + 8]
mov dword [eax + 0x380], ebx
mov ecx, dword [edi + 8]
cmp dword [ecx + 0x25c4], ebx
je 0x40c436
lea edx, [esp + 0xbc]
push edx
push 0x4bd250
mov eax, ecx
mov ecx, dword [eax + 0x25c4]
push 3
push ecx
call fcn.0040f260
add esp, 0x10
lea edx, [esp + 0xbc]
push edx
lea eax, [esp + 0x190]
push 0x4bd1b8
push eax
call fcn.004809ea
mov edx, dword [edi + 8]
mov eax, dword [edx + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0xc
push 1
lea ecx, [esp + 0x190]
push ecx
push 0x1388
push eax
call esi
mov ecx, dword [edi + 8]
mov edx, dword [ecx + 0x20]
push ebx
push ebx
push 0x138a
push edx
call esi
push str.void_Worker::Requst_DownLoadPre_PRDOWNCTX_pPtrCheck__02__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x14]
call fcn.00401aa0
lea ecx, [esp + 0x18]
call fcn.00401aa0
jmp 0x40c668
lea eax, [ebp - 0x10]
mov byte [esp + 0xd98], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c4c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0xd98], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c4f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str._DOWN__Worker::Requst_DownLoadPre_PRDOWNCTX_pPtrCheck__03__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [edi + 8]
mov dword [ecx + 0x380], esi
mov edx, dword [edi + 8]
cmp dword [edx + 0x25c4], ebx
je 0x40c52c
lea eax, [esi + 0x40]
push eax
push 0x4bd118
mov ecx, edx
mov edx, dword [ecx + 0x25c4]
push ebx
push edx
call fcn.0040f260
add esp, 0x10
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x380]
mov dword [ecx], 6
mov edx, dword [edi + 8]
cmp dword [edx + 0x25c4], ebx
je 0x40c57b
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
lea eax, [esi + 0x40]
push eax
mov eax, dword [esi + 0x3c]
push ecx
mov ecx, dword [esi + 0x38]
push edx
mov edx, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x30]
push ecx
mov ecx, dword [edi + 8]
push edx
mov edx, dword [ecx + 0x25c4]
push eax
push 0x4bd0b0
push 1
push edx
call fcn.0040f260
add esp, 0x28
push 0x98
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.00480970
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x20]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x3c], edx
mov edx, dword [esi + 0x18]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x40], edx
mov edx, dword [esi + 0x34]
mov dword [esp + 0x44], eax
xor eax, eax
push 0x10
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], 0xdebd01c7
mov dword [esp + 0x60], 0x19
mov word [esp + 0x34], ax
call fcn.0042d6b0
add esp, 0x10
cmp eax, ebx
je 0x40c5f7
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov ebp, eax
jmp 0x40c5f9
xor ebp, ebp
push 0x98
lea ecx, [esp + 0x28]
push ecx
push 0x321
mov ecx, ebp
call fcn.004030d0
cmp dword [esi + 0x435c], ebx
jle 0x40c644
mov edx, dword [edi + 8]
mov eax, dword [edx + 0x25c4]
cmp eax, ebx
je 0x40c633
push 0x4bd07c
push ebx
push eax
call fcn.0040f260
add esp, 0xc
mov eax, dword [esi + 0x435c]
push eax
push ebp
mov ecx, edi
call fcn.0040a600
jmp 0x40c668
mov ecx, dword [edi + 8]
mov eax, dword [ecx + 0x25c4]
cmp eax, ebx
je 0x40c660
push 0x4bd050
push ebx
push eax
call fcn.0040f260
add esp, 0xc
push ebp
mov ecx, edi
call fcn.00406790
mov ecx, dword [esp + 0xd90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd78]
xor ecx, esp
call fcn.0047f7c9
add esp, 0xd88
ret 4