Function at 0x438010
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48e2f8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4beb20]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4beb20]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0x94]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
xor esi, esi
push esi
push eax
mov dword [esp + 0x94], esi
lea ebx, [esi + 1]
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov dword [esp + 0x2c], eax
cmp eax, esi
jne 0x4380c9
mov eax, dword [esp + 0xa4]
cmp eax, esi
je 0x43809d
push eax
call fcn.00445d1e
add esp, 4
mov edx, dword [esp + 0x98]
push edx
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], esi
call fcn.00445d1e
add esp, 4
xor eax, eax
jmp 0x43851e
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0xa8]
mov esi, dword [esp + 0xa4]
mov ecx, edi
sub ecx, esi
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
cmp dword [esp + 0x20], ebp
jge 0x4384bf
xor eax, eax
push 0x3e
push eax
lea ecx, [esp + 0x4a]
push ecx
mov word [esp + 0x4c], ax
call fcn.00468830
mov ebx, dword [esp + 0x2c]
add esp, 0xc
cmp ebx, ebp
jb 0x438130
call fcn.0046acef
mov edi, dword [esp + 0xa8]
mov esi, dword [esp + 0xa4]
mov ebp, dword [esp + 0x14]
cmp dword [esi + ebp], 0x64
mov eax, 0x7aba01eb
jne 0x4383e9
mov ecx, edi
sub ecx, esi
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x43816a
call fcn.0046acef
mov edi, dword [esp + 0xa8]
mov esi, dword [esp + 0xa4]
mov ecx, dword [esi + ebp + 4]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov ecx, edi
sub ecx, esi
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4381a8
call fcn.0046acef
mov edi, dword [esp + 0xa8]
mov esi, dword [esp + 0xa4]
mov ebp, dword [esi + ebp + 8]
mov ecx, edi
sub ecx, esi
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x4381d8
call fcn.0046acef
mov edi, dword [esp + 0xa8]
mov esi, dword [esp + 0xa4]
mov edx, dword [esp + 0x14]
cmp dword [edx + esi + 4], 0
jne 0x4383b5
mov ecx, edi
sub ecx, esi
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x438213
call fcn.0046acef
mov edi, dword [esp + 0xa8]
mov esi, dword [esp + 0xa4]
mov ecx, dword [esp + 0x14]
cmp dword [ecx + esi + 8], 0
jne 0x4383b5
sub edi, esi
mov eax, 0x7aba01eb
imul edi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x24], 1
cmp ebx, eax
jb 0x43824d
call fcn.0046acef
mov esi, dword [esp + 0xa4]
mov ecx, dword [esp + 0x14]
lea edx, [ecx + esi + 0xc]
push edx
call fcn.00436160
push 0x4000000
mov ebp, eax
call fcn.00468cf2
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
jne 0x438291
push 0x4000000
call fcn.00468cf2
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x4384bd
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4382b0
mov ecx, dword [esp + 0x30]
push ecx
push ebp
push 0xffffffffffffffff
call eax
add esp, 0xc
test al, al
je 0x4384bd
mov edi, edi
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x44]
push str.DOC_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp dword [esp + 0x24], 0
jne 0x4382d5
mov ecx, dword [esp + 0x1c]
add edi, ecx
cmp ebp, 0x4000000
mov esi, 0x4000000
jge 0x4382e4
mov esi, ebp
cmp dword [esp + 0x24], 0
je 0x438345
mov ecx, dword [esp + 0xa8]
sub ecx, dword [esp + 0xa4]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x38], 0
cmp ebx, eax
jb 0x43831b
call fcn.0046acef
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0xa8]
push edi
push esi
push 0
push edx
lea edx, [eax + ecx + 0xc]
push edx
call fcn.00436460
add esp, 0x18
test eax, eax
je 0x4383c2
mov eax, dword [esp + 0x3c]
push 0x20
push eax
push esi
push edi
call fcn.0043cdd0
mov edx, dword [esp + 0x3c]
add esp, 0x10
push esi
push edi
push 0
lea ecx, [esp + 0x4c]
push ecx
push 0x49b468
push edx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
mov ebx, eax
test ebx, ebx
je 0x4383c2
mov eax, dword [esp + 0x34]
inc dword [esp + 0x28]
add dword [esp + 0x1c], 0x4000000
sub ebp, 0x4000000
test eax, eax
je 0x4383a4
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push 0
call eax
add esp, 0xc
test al, al
je 0x4383c2
test ebp, ebp
jle 0x4383c4
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
jmp 0x4382b0
mov dword [esp + 0x24], 0
jmp 0x43828d
xor ebx, ebx
cmp dword [esp + 0x24], 0
je 0x4384a7
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4384a7
push eax
call fcn.00468c15
add esp, 4
jmp 0x4384a7
sub edi, esi
imul edi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x438407
call fcn.0046acef
mov esi, dword [esp + 0xa4]
mov ecx, dword [esi + ebp]
push ecx
lea edx, [esp + 0x44]
push str.RES_d
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esp + 0xb4]
mov esi, dword [esp + 0xb0]
mov ecx, edi
sub ecx, esi
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 0xc
cmp ebx, eax
jb 0x438458
call fcn.0046acef
mov edi, dword [esp + 0xa8]
mov esi, dword [esp + 0xa4]
sub edi, esi
mov eax, 0x7aba01eb
imul edi
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ebp, esi
cmp ebx, ecx
jb 0x43847d
call fcn.0046acef
mov esi, dword [esp + 0xa4]
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + esi + 4]
mov eax, dword [esp + 0x2c]
push edx
push ecx
push 0
lea edx, [esp + 0x4c]
push edx
push 0x49b468
push eax
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
mov ebx, eax
test ebx, ebx
je 0x4384bd
inc dword [esp + 0x20]
add dword [esp + 0x14], 0x216
test ebx, ebx
jne 0x4380d1
jmp 0x4384bf
xor ebx, ebx
mov edx, dword [esp + 0x2c]
xor ecx, ecx
xor edi, edi
cmp ebx, edi
sete cl
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
cmp ebx, edi
je 0x4384e1
cmp eax, edi
je 0x4384e1
lea esi, [edi + 1]
jmp 0x4384e3
xor esi, esi
mov eax, dword [esp + 0xa4]
cmp eax, edi
je 0x4384f7
push eax
call fcn.00445d1e
add esp, 4
mov eax, dword [esp + 0x98]
push eax
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
call fcn.00445d1e
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004694b0
add esp, 0x7c
ret