Function at 0x40dc70
Capabilities:
Access peb ldr_data
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45be18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push esi
mov esi, ecx
mov ax, word [esi + 0x48]
cmp ax, 0x1c0
mov dword [esp + 8], esi
je 0x40dc9f
cmp ax, 0x1c2
jne 0x40dca5
test byte [esi + 0x5b], 0x20
jne 0x40dcb9
xor eax, eax
pop esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret 8
push 0x64
lea ecx, [esp + 0x4c]
call fcn.0040c0a0
mov dword [esp + 0x6c], 0
mov eax, dword [esp + 0x74]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call fcn.0040fcc0
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x40dd0d
mov dword [esp + 0x6c], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.0040bfb0
mov eax, 1
pop esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret 8
push ebx
push edi
mov edi, dword [esp + 0x80]
test edi, edi
je 0x40dd4f
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x40dd4f
xor esi, esi
test ebx, ebx
jle 0x40dd4f
mov edx, dword [edi + 4]
mov eax, dword [edx + esi*4]
test eax, eax
lea ecx, [esp + 0x50]
jge 0x40dd3f
neg eax
push eax
call fcn.0043c0d0
jmp 0x40dd4a
push eax
call fcn.0043c2c0
mov word [eax], 0
inc esi
cmp esi, ebx
jl 0x40dd27
lea ecx, [esp + 0x3c]
call fcn.0043b190
mov byte [esp + 0x74], 1
mov eax, dword [esp + 0x5c]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x44]
call fcn.0043af90
mov eax, dword [esp + 0x5c]
neg eax
sbb eax, eax
mov dword [esp + 0x18], eax
je 0x40ddae
xor esi, esi
lea ecx, [ecx]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x5c]
call fcn.0043c160
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x20]
mov dword [esi + ecx], edx
mov eax, dword [esp + 0x18]
add esi, 4
test eax, eax
jne 0x40dd80
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push ebp
push 0x40bfa0
push 4
push eax
push ecx
call fcn.0042e540
add esp, 0x10
lea ecx, [esp + 0x2c]
call fcn.0040bff0
mov byte [esp + 0x78], 2
mov edx, dword [esp + 0x44]
mov esi, dword [edx]
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x48]
and esi, 0xfffff000
push esi
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x20], ebx
mov ebp, eax
call fcn.0043b890
mov ecx, dword [esp + 0x34]
mov eax, esi
shr eax, 0x10
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.0043b890
mov edx, dword [esp + 0x34]
push 0
push edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], ebp
call fcn.0043b890
mov eax, dword [esp + 0x34]
push 0
push eax
lea ecx, [esp + 0x34]
call fcn.0043b890
xor ecx, ecx
lea eax, [ebx + 1]
xor edi, edi
cmp eax, ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], ecx
jle 0x40dfd0
mov ebx, dword [esp + 0x80]
jmp 0x40de64
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x80]
cmp ecx, dword [esp + 0x18]
je 0x40de80
mov edx, dword [esp + 0x44]
mov ebx, dword [edx + ecx*4]
mov eax, ebx
and eax, 0xfffff000
cmp eax, esi
je 0x40df13
mov eax, dword [esp + 0x34]
test al, 1
je 0x40de9f
push 0
push eax
lea ecx, [esp + 0x34]
call fcn.0043b890
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x30]
sub eax, ebp
shl eax, 1
mov word [edx + ebp*2 + 4], ax
mov edx, dword [esp + 0x30]
shr eax, 0x10
mov word [edx + ebp*2 + 6], ax
cmp ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x2c]
je 0x40e153
mov esi, ebx
and esi, 0xfffff000
push esi
push eax
mov ebp, eax
call fcn.0043b890
mov ecx, dword [esp + 0x34]
mov eax, esi
shr eax, 0x10
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.0043b890
mov edx, dword [esp + 0x34]
push 0
push edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], ebp
call fcn.0043b890
mov eax, dword [esp + 0x34]
push 0
push eax
lea ecx, [esp + 0x34]
call fcn.0043b890
mov edx, dword [esp + 0x34]
mov ecx, ebx
and ecx, 0xfff
or ecx, 0x3000
push ecx
push edx
lea ecx, [esp + 0x34]
call fcn.0043b890
test edi, edi
je 0x40df44
mov eax, dword [edi + 0xc]
cmp eax, ebx
ja 0x40df44
mov ecx, dword [edi + 0x10]
add ecx, eax
cmp ebx, ecx
jb 0x40df50
mov ecx, dword [esp + 0x14]
push ebx
call fcn.0040c460
mov edi, eax
test edi, edi
je 0x40e190
mov eax, dword [edi + 0x30]
mov edx, dword [edi + 0xc]
mov ecx, dword [esp + 0x84]
sub eax, edx
mov ebp, dword [eax + ebx]
add eax, ebx
test ecx, ecx
mov dword [esp + 0x28], eax
je 0x40df84
mov eax, dword [ecx + 0x18]
cmp eax, ebp
ja 0x40df84
mov edx, dword [ecx + 8]
add edx, eax
cmp ebp, edx
jb 0x40df97
mov ecx, dword [esp + 0x14]
push ebp
call fcn.0040c4a0
mov dword [esp + 0x84], eax
mov ecx, eax
test ecx, ecx
je 0x40e1e7
mov edx, dword [ecx + 0x18]
mov eax, dword [ecx + 0xc]
sub eax, edx
mov edx, dword [esp + 0x28]
lea ecx, [eax + ebp + 0x10000000]
mov eax, dword [esp + 0x80]
mov dword [edx], ecx
mov ecx, dword [esp + 0x18]
inc eax
inc ecx
cmp eax, ecx
mov dword [esp + 0x80], eax
jl 0x40de59
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xe4]
test eax, eax
je 0x40dffa
mov ecx, dword [edi + 0xe8]
test ecx, ecx
je 0x40dffa
push eax
mov ecx, edi
call fcn.0040c410
mov ebx, eax
test ebx, ebx
jne 0x40e0b5
mov esi, dword [edi + 0x144]
push 1
lea ecx, [esi + 1]
push ecx
lea ecx, [edi + 0x13c]
call fcn.00406370
imul esi, esi, 0x4c
add esi, dword [edi + 0x140]
mov ebx, esi
mov esi, dword [esp + 0x14]
inc word [esi + 0x4a]
mov ax, word [esi + 0x4a]
movzx eax, ax
xor ebp, ebp
test eax, eax
jle 0x40e07c
xor edi, edi
mov dword [esp + 0x80], eax
lea ebx, [ebx]
mov eax, dword [esi + 0x140]
mov ecx, dword [eax + edi + 0x10]
mov edx, dword [eax + edi + 8]
add eax, edi
cmp edx, ecx
ja 0x40e056
mov edx, ecx
mov ecx, dword [eax + 0xc]
add ecx, edx
cmp ecx, ebp
jbe 0x40e061
mov ebp, ecx
mov dword [eax + 0x18], 0
mov eax, dword [esp + 0x80]
add edi, 0x4c
dec eax
mov dword [esp + 0x80], eax
jne 0x40e040
mov eax, dword [0x462a9c]
mov edx, ebx
mov dword [edx], eax
mov cx, word [0x462aa0]
mov word [edx + 4], cx
mov al, byte [0x462aa2]
add ebp, 0xfff
and ebp, 0xfffff000
mov byte [edx + 6], al
mov dword [ebx + 0xc], ebp
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x24], 0x42000040
mov ebp, dword [esp + 0x34]
lea ebp, [ebp + ebp + 0x1ff]
and ebp, 0xfffffe00
push 0xffffffffffffffff
push ebp
lea ecx, [ebx + 0x2c]
mov dword [ebx + 0x10], ebp
mov dword [ebx + 8], ebp
call fcn.0043b2c0
mov ecx, dword [esp + 0x34]
mov edi, dword [ebx + 0x30]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
add ecx, ecx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0xc]
mov dword [eax + 0xe4], ecx
mov dword [eax + 0xe8], ebp
mov dword [eax + 0x78], 0x10000000
mov byte [esp + 0x78], 1
lea ecx, [esp + 0x2c]
call fcn.0043b8f0
mov byte [esp + 0x78], 0
lea ecx, [esp + 0x40]
call fcn.0043b1b0
mov dword [esp + 0x78], 0xffffffff
lea ecx, [esp + 0x54]
call fcn.0043c220
pop ebp
pop edi
pop ebx
mov eax, 1
pop esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret 8
push 0
push eax
call fcn.0043b890
mov ecx, dword [esp + 0x34]
push 0
push ecx
lea ecx, [esp + 0x34]
call fcn.0043b890
mov edx, dword [esp + 0x34]
push 0
push edx
lea ecx, [esp + 0x34]
call fcn.0043b890
mov eax, dword [esp + 0x34]
push 0
push eax
lea ecx, [esp + 0x34]
call fcn.0043b890
jmp 0x40dfd0
push ebx
push str.Error:_unable_to_find_section_for_address:__08X
push 0x4753f0
call fcn.0040bd40
add esp, 0xc
mov byte [esp + 0x78], 1
lea ecx, [esp + 0x2c]
call fcn.0043b8f0
mov byte [esp + 0x78], 0
lea ecx, [esp + 0x40]
call fcn.0043b1b0
mov dword [esp + 0x78], 0xffffffff
lea ecx, [esp + 0x54]
call fcn.0043c220
mov ecx, dword [esp + 0x70]
pop ebp
pop edi
pop ebx
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x6c
ret 8
push ebp
push str.Error:_unable_to_find_section_for_address:__08X
push 0x4753f0
call fcn.0040bd40
add esp, 0xc
mov byte [esp + 0x78], 1
lea ecx, [esp + 0x2c]
call fcn.0043b8f0
mov byte [esp + 0x78], 0
lea ecx, [esp + 0x40]
call fcn.0043b1b0
jmp 0x40e1bf