Function at 0x40f730
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x467708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov eax, dword [0x487cdc]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x70], eax
mov edi, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x7c], ebx
call fcn.0045ced0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
push 1
mov ebp, 0xf
push 0x46fdb0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 2
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00403bf0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 3
call fcn.00405e90
mov eax, dword [esp + 0x2c]
mov esi, 0x10
cmp eax, esi
mov byte [esp + 0x7c], 2
jb 0x40f7e2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0045ce75
add esp, 4
cmp dword [esp + 0xa0], esi
mov eax, dword [esp + 0x8c]
jae 0x40f7f9
lea eax, [esp + 0x8c]
push eax
lea edx, [esp + 0x14]
push str.guid___s
push edx
call fcn.0042f210
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x68], esp
push ebx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0x46fa3c
mov byte [ecx + 4], bl
call fcn.00403bf0
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x18], ebp
mov ebp, dword [esp + 0x48]
mov eax, ebp
mov dword [esi + 0x14], ebx
mov byte [esp + 0xb4], 4
mov dword [esp + 0x80], esp
mov byte [esi + 4], bl
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40f850
sub eax, ecx
push eax
push ebp
mov ecx, esi
call fcn.00403bf0
sub esp, 0x14
lea eax, [esp + 0x7c]
mov ecx, esp
mov dword [esp + 0x90], esp
push eax
mov byte [esp + 0xcc], 5
call fcn.004076a0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0xb8], esp
push 7
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push str.t_image
mov byte [esp + 0xec], 6
mov byte [ecx + 4], bl
call fcn.00403bf0
lea esi, [edi + 0x1a4]
mov ecx, esi
mov byte [esp + 0xe4], 2
call fcn.0042f430
cmp al, bl
jne 0x40f8ed
mov esi, dword [esp + 0x84]
xor eax, eax
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f8e0
sub eax, edx
push eax
push ebx
jmp 0x40f912
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x28]
cmp eax, ebx
push ebx
push 0x46fa3c
jg 0x40f961
mov esi, dword [esp + 0x8c]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
mov ecx, esi
call fcn.00403bf0
lea ecx, [esp + 0x30]
call fcn.00404d60
lea eax, [ebp - 0x10]
mov byte [esp + 0x7c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f940
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esp + 0xa0], 0x10
jb 0x40f95a
mov eax, dword [esp + 0x8c]
push eax
call fcn.0045ce75
add esp, 4
mov eax, esi
jmp 0x40fbf2
lea ecx, [esp + 0x18]
call fcn.00403280
push 0xa
push str.image_path
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00403bf0
mov edx, dword [esi]
lea eax, [esp + 0x14]
push eax
push ebx
lea ecx, [esp + 0x5c]
push ecx
mov ecx, esi
mov byte [esp + 0x88], 7
call dword [edx + 0x30]
mov eax, dword [esp + 0x2c]
mov ebp, 0x10
cmp eax, ebp
mov byte [esp + 0x7c], 9
jb 0x40f9c3
mov edx, dword [esp + 0x18]
push edx
call fcn.0045ce75
add esp, 4
mov eax, dword [esp + 0xa4]
cmp eax, ebx
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
jne 0x40faa8
lea esi, [edi + 0x2fc]
push str.NULL
push esi
call fcn.004031b0
add esp, 8
test al, al
mov eax, dword [edi + 0x34c]
je 0x40fa51
cmp eax, ebp
jb 0x40fa0c
mov edi, dword [edi + 0x338]
jmp 0x40fa12
add edi, 0x338
cmp dword [esp + 0xa0], ebp
mov ecx, dword [esp + 0x8c]
jae 0x40fa29
lea ecx, [esp + 0x8c]
cmp dword [esp + 0x6c], ebp
mov eax, dword [esp + 0x58]
jae 0x40fa37
lea eax, [esp + 0x58]
push edi
push ecx
push eax
lea eax, [esp + 0x1c]
push str._s_s_s
push eax
call fcn.0042f210
add esp, 0x14
jmp 0x40fb7a
cmp eax, ebp
jb 0x40fa5d
mov edi, dword [edi + 0x338]
jmp 0x40fa63
add edi, 0x338
cmp dword [esi + 0x18], ebp
jb 0x40fa6d
mov esi, dword [esi + 4]
jmp 0x40fa70
add esi, 4
cmp dword [esp + 0xa0], ebp
mov ecx, dword [esp + 0x8c]
jae 0x40fa87
lea ecx, [esp + 0x8c]
cmp dword [esp + 0x6c], ebp
mov eax, dword [esp + 0x58]
jae 0x40fa95
lea eax, [esp + 0x58]
push edi
push esi
push ecx
push eax
push str._s_s_s_s
lea ecx, [esp + 0x24]
push ecx
jmp 0x40fb72
cmp eax, 1
jne 0x40fb0e
cmp dword [edi + 0x34c], ebp
jb 0x40fabd
mov edx, dword [edi + 0x338]
jmp 0x40fac3
lea edx, [edi + 0x338]
cmp dword [edi + 0x2f8], ebp
jb 0x40fad3
mov edi, dword [edi + 0x2e4]
jmp 0x40fad9
add edi, 0x2e4
cmp dword [esp + 0xa0], ebp
mov ecx, dword [esp + 0x8c]
jae 0x40faf0
lea ecx, [esp + 0x8c]
cmp dword [esp + 0x6c], ebp
mov eax, dword [esp + 0x58]
jae 0x40fafe
lea eax, [esp + 0x58]
push edx
push edi
push ecx
push eax
push str._s_s_s_s
lea edx, [esp + 0x24]
push edx
jmp 0x40fb72
cmp eax, 2
jne 0x40fb7a
cmp dword [edi + 0x34c], ebp
jb 0x40fb23
mov edx, dword [edi + 0x338]
jmp 0x40fb29
lea edx, [edi + 0x338]
cmp dword [edi + 0x330], ebp
jb 0x40fb39
mov edi, dword [edi + 0x31c]
jmp 0x40fb3f
add edi, 0x31c
cmp dword [esp + 0xa0], ebp
mov ecx, dword [esp + 0x8c]
jae 0x40fb56
lea ecx, [esp + 0x8c]
cmp dword [esp + 0x6c], ebp
mov eax, dword [esp + 0x58]
jae 0x40fb64
lea eax, [esp + 0x58]
push edx
push edi
push ecx
push eax
push str._s_s_s_s
lea eax, [esp + 0x24]
push eax
call fcn.0042f210
add esp, 0x18
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x84]
push esi
mov ecx, edi
call fcn.00403ce0
cmp dword [esp + 0x6c], ebp
jb 0x40fba0
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0045ce75
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
call fcn.00404d60
lea eax, [esi - 0x10]
mov byte [esp + 0x7c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fbd7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esp + 0xa0], ebp
jb 0x40fbf0
mov eax, dword [esp + 0x8c]
push eax
call fcn.0045ce75
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x70]
call fcn.00446654
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 0x24