Function at 0x406340
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap flags
Get process heap force flags
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a3eb
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x60db70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x4063c0
push 0x40c200
push 0x37
push 0x1c
push esi
call fcn.00552382
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
lea edi, [esi + 4]
jmp 0x406392
xor ebx, ebx
lea ecx, [ebp - 0x30]
call fcn.0040ce00
mov eax, dword [ebp - 0x10]
push ebx
mov byte [ebp - 4], 1
push 0x5b2a7f
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
call fcn.00402670
push ebx
push 0x5b2a7f
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.00402670
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [edi - 4], ecx
mov ecx, dword [ebp - 0x2c]
mov ebx, dword [edi]
lea eax, [ecx - 0x10]
sub ebx, 0x10
cmp eax, ebx
je 0x406428
cmp dword [ebx + 0xc], 0
jl 0x40641c
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x40641c
push eax
call fcn.00401e50
mov dword [ebp - 0x14], eax
add esp, 4
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406412
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x406428
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, edi
call fcn.00402670
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x20]
lea ecx, [edi + 0xc]
mov dword [edi + 4], edx
mov ebx, dword [ecx]
add eax, 0xfffffff0
sub ebx, 0x10
cmp eax, ebx
je 0x40648f
cmp dword [ebx + 0xc], 0
jl 0x406482
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x406482
push eax
call fcn.00401e50
mov dword [ebp - 0x14], eax
add esp, 4
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406477
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
mov dword [edi + 0xc], ecx
jmp 0x40648f
mov eax, dword [ebp - 0x20]
mov edx, dword [eax - 0xc]
push edx
push eax
call fcn.00402670
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov dword [edi + 0x14], eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov dword [edi + 0x10], edx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4064be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4064dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
inc eax
add edi, 0x1c
mov dword [ebp - 0x10], eax
cmp eax, 0x31
jle 0x406390
push 0xe
push 0x5b31b4
lea ecx, [esi + 4]
call fcn.00402670
push 0xa
mov edi, 4
mov ebx, 3
lea ecx, [esi + 0x10]
push 0x5b31c4
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
call fcn.00402670
push 8
lea ecx, [esi + 0x20]
push 0x5b31d0
mov dword [esi + 0x14], 1
mov dword [esi + 0x18], 0
call fcn.00402670
push 0xc
lea ecx, [esi + 0x2c]
push 0x5b31dc
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], ebx
call fcn.00402670
push 8
mov ebx, 2
lea ecx, [esi + 0x3c]
push 0x5b31ec
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], 0
call fcn.00402670
push 8
lea ecx, [esi + 0x48]
push 0x5b31f8
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], 0
call fcn.00402670
push 8
lea ecx, [esi + 0x58]
push 0x5b3204
mov dword [esi + 0x4c], 1
mov dword [esi + 0x50], edi
call fcn.00402670
push 8
lea ecx, [esi + 0x64]
push 0x5b3210
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], 3
call fcn.00402670
push 0x1e
lea ecx, [esi + 0x74]
push 0x5b321c
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], 0
call fcn.00402670
push 0xc
lea ecx, [esi + 0x90]
push 0x5b323c
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], edi
call fcn.00402670
push 0x18
lea ecx, [esi + 0xac]
push 0x5b324c
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], 3
call fcn.00402670
push 8
lea ecx, [esi + 0xb8]
push 0x5b3268
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], 3
call fcn.00402670
push 0xa
lea ecx, [esi + 0xc8]
push 0x5b3274
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc0], 0
call fcn.00402670
mov dword [esi + 0xcc], edi
mov dword [esi + 0xd0], 3
push 8
lea ecx, [esi + 0xe4]
push 0x5b3280
call fcn.00402670
push 8
lea ecx, [esi + 0x100]
push 0x5b328c
mov dword [esi + 0xe8], edi
mov dword [esi + 0xec], ebx
call fcn.00402670
push 8
lea ecx, [esi + 0x11c]
push 0x5b3298
mov dword [esi + 0x104], edi
mov dword [esi + 0x108], ebx
call fcn.00402670
push 0x10
lea ecx, [esi + 0x138]
push 0x5b32a4
mov dword [esi + 0x120], edi
mov dword [esi + 0x124], ebx
call fcn.00402670
push 0x14
lea ecx, [esi + 0x154]
push 0x5b32b8
mov dword [esi + 0x13c], 1
mov dword [esi + 0x140], 0
call fcn.00402670
push 0x14
lea ecx, [esi + 0x160]
push 0x5b32d0
mov dword [esi + 0x158], edi
mov dword [esi + 0x15c], 3
call fcn.00402670
push 0xc
lea ecx, [esi + 0x170]
push 0x5b32e8
mov dword [esi + 0x164], 1
mov dword [esi + 0x168], ebx
call fcn.00402670
push 0x16
lea ecx, [esi + 0x17c]
push 0x5b32f8
mov dword [esi + 0x174], 1
mov dword [esi + 0x178], ebx
call fcn.00402670
push 8
lea ecx, [esi + 0x18c]
push 0x5b3268
mov dword [esi + 0x180], 3
mov dword [esi + 0x184], edi
call fcn.00402670
push 0x10
lea ecx, [esi + 0x1a8]
push 0x5b3310
mov dword [esi + 0x190], edi
mov dword [esi + 0x194], ebx
call fcn.00402670
push 0xe
lea ecx, [esi + 0x1c4]
push 0x5b3324
mov dword [esi + 0x1ac], edi
mov dword [esi + 0x1b0], ebx
call fcn.00402670
push 0xe
lea ecx, [esi + 0x1d0]
push 0x5b3334
mov dword [esi + 0x1c8], 3
mov dword [esi + 0x1cc], 0
call fcn.00402670
push 0x10
lea ecx, [esi + 0x1e0]
push 0x5b3344
mov dword [esi + 0x1d4], edi
mov dword [esi + 0x1d8], ebx
call fcn.00402670
push 8
mov dword [esi + 0x1e4], ebx
mov dword [esi + 0x1e8], 0
lea ecx, [esi + 0x1ec]
push 0x5b3358
call fcn.00402670
push 8
lea ecx, [esi + 0x1fc]
push 0x5b3364
mov dword [esi + 0x1f0], edi
mov dword [esi + 0x1f4], 3
call fcn.00402670
push 8
lea ecx, [esi + 0x208]
push 0x5b3370
mov dword [esi + 0x200], 1
mov dword [esi + 0x204], edi
call fcn.00402670
push 0x12
lea ecx, [esi + 0x218]
push 0x5b337c
mov dword [esi + 0x20c], 3
mov dword [esi + 0x210], 0
call fcn.00402670
push 0x10
lea ecx, [esi + 0x224]
push 0x5b3390
mov dword [esi + 0x21c], 3
mov dword [esi + 0x220], 0
call fcn.00402670
push 0x14
lea ecx, [esi + 0x234]
push 0x5b33a4
mov dword [esi + 0x228], 1
mov dword [esi + 0x22c], ebx
call fcn.00402670
push 0xa
lea ecx, [esi + 0x240]
push 0x5b33bc
mov dword [esi + 0x238], edi
mov dword [esi + 0x23c], 0
call fcn.00402670
push 8
lea ecx, [esi + 0x250]
push 0x5b33c8
mov dword [esi + 0x244], ebx
mov dword [esi + 0x248], 3
call fcn.00402670
push 0x14
lea ecx, [esi + 0x26c]
push 0x5b33d4
mov dword [esi + 0x254], ebx
mov dword [esi + 0x258], edi
call fcn.00402670
push 0xc
lea ecx, [esi + 0x278]
push 0x5b33ec
mov dword [esi + 0x270], ebx
mov dword [esi + 0x274], 0
call fcn.00402670
push 8
lea ecx, [esi + 0x288]
push 0x5b33fc
mov dword [esi + 0x27c], 3
mov dword [esi + 0x280], edi
call fcn.00402670
push 8
lea ecx, [esi + 0x294]
push 0x5b3408
mov dword [esi + 0x28c], 1
mov dword [esi + 0x290], 3
call fcn.00402670
push 0xa
lea ecx, [esi + 0x2a4]
push 0x5b3414
mov dword [esi + 0x298], ebx
mov dword [esi + 0x29c], edi
call fcn.00402670
push 0xe
lea ecx, [esi + 0x2b0]
push 0x5b3420
mov dword [esi + 0x2a8], ebx
mov dword [esi + 0x2ac], 0
call fcn.00402670
mov dword [esi + 0x2b4], 1
mov dword [esi + 0x2b8], 3
push 0xc
lea ecx, [esi + 0x2c0]
push 0x5b3430
call fcn.00402670
push 0xc
lea ecx, [esi + 0x2cc]
push 0x5b3440
mov dword [esi + 0x2c4], ebx
mov dword [esi + 0x2c8], 3
call fcn.00402670
push 8
lea ecx, [esi + 0x2dc]
push 0x5b3450
mov dword [esi + 0x2d0], edi
mov dword [esi + 0x2d4], 0
call fcn.00402670
push 8
lea ecx, [esi + 0x2e8]
push 0x5b345c
mov dword [esi + 0x2e0], edi
mov dword [esi + 0x2e4], 0
call fcn.00402670
push 0xc
lea ecx, [esi + 0x2f8]
push 0x5b3468
mov dword [esi + 0x2ec], ebx
mov dword [esi + 0x2f0], 3
call fcn.00402670
push 0x12
lea ecx, [esi + 0x304]
push 0x5b3478
mov dword [esi + 0x2fc], ebx
mov dword [esi + 0x300], 3
call fcn.00402670
push 0x14
lea ecx, [esi + 0x314]
push 0x5b348c
mov dword [esi + 0x308], edi
mov dword [esi + 0x30c], 0
call fcn.00402670
push 0x14
lea ecx, [esi + 0x320]
push 0x5b34a4
mov dword [esi + 0x318], edi
mov dword [esi + 0x31c], 0
call fcn.00402670
push 0xe
lea ecx, [esi + 0x330]
push 0x5b34bc
mov dword [esi + 0x324], ebx
mov dword [esi + 0x328], 0
call fcn.00402670
push 8
mov dword [esi + 0x334], ebx
lea ecx, [esi + 0x33c]
push 0x5b34cc
mov dword [esi + 0x338], 0
call fcn.00402670
push 8
mov dword [esi + 0x340], 1
lea ecx, [esi + 0x34c]
push 0x5b34d8
mov dword [esi + 0x344], edi
call fcn.00402670
push 8
mov dword [esi + 0x350], 3
lea ecx, [esi + 0x358]
push 0x5b34e4
mov dword [esi + 0x354], edi
call fcn.00402670
push 8
mov dword [esi + 0x35c], ebx
lea ecx, [esi + 0x368]
push 0x5b34f0
mov dword [esi + 0x360], 0
call fcn.00402670
push 8
mov dword [esi + 0x36c], 3
mov dword [esi + 0x370], 0
lea ecx, [esi + 0x374]
push 0x5b34fc
call fcn.00402670
push 0xc
mov dword [esi + 0x378], ebx
lea ecx, [esi + 0x384]
push 0x5b3508
mov dword [esi + 0x37c], edi
call fcn.00402670
push 0xc
mov dword [esi + 0x388], ebx
lea ecx, [esi + 0x390]
push 0x5b3518
mov dword [esi + 0x38c], 3
call fcn.00402670
push 0xa
mov dword [esi + 0x394], edi
lea ecx, [esi + 0x3a0]
push 0x5b3528
mov dword [esi + 0x398], 0
call fcn.00402670
push 8
mov dword [esi + 0x3a4], ebx
lea ecx, [esi + 0x3bc]
push 0x5b3534
mov dword [esi + 0x3a8], edi
call fcn.00402670
push 0xe
mov dword [esi + 0x3c0], 1
lea ecx, [esi + 0x3c8]
push 0x5b3540
mov dword [esi + 0x3c4], 0
call fcn.00402670
push 0xe
mov dword [esi + 0x3cc], 3
lea ecx, [esi + 0x3d8]
push 0x5b3550
mov dword [esi + 0x3d0], edi
call fcn.00402670
push 0xe
mov dword [esi + 0x3dc], ebx
lea ecx, [esi + 0x3e4]
push 0x5b3560
mov dword [esi + 0x3e0], edi
call fcn.00402670
push 8
mov dword [esi + 0x3e8], 3
lea ecx, [esi + 0x3f4]
push 0x5b3570
mov dword [esi + 0x3ec], 0
call fcn.00402670
push 0xa
mov dword [esi + 0x3f8], ebx
lea ecx, [esi + 0x410]
push 0x5b357c
mov dword [esi + 0x3fc], edi
call fcn.00402670
push 0x10
mov dword [esi + 0x414], ebx
lea ecx, [esi + 0x42c]
push 0x5b3588
mov dword [esi + 0x418], edi
call fcn.00402670
push 0x10
mov dword [esi + 0x430], 3
lea ecx, [esi + 0x438]
push 0x5b3588
mov dword [esi + 0x434], edi
call fcn.00402670
push 8
mov dword [esi + 0x43c], ebx
lea ecx, [esi + 0x448]
push 0x5b359c
mov dword [esi + 0x440], 0
call fcn.00402670
push 8
mov dword [esi + 0x44c], 1
lea ecx, [esi + 0x454]
push 0x5b35a8
mov dword [esi + 0x450], 0
call fcn.00402670
mov dword [esi + 0x458], 3
mov dword [esi + 0x45c], edi
push 8
lea ecx, [esi + 0x464]
push 0x5b35b4
call fcn.00402670
push 8
mov dword [esi + 0x468], ebx
lea ecx, [esi + 0x470]
push 0x5b35c0
mov dword [esi + 0x46c], 0
call fcn.00402670
push 0xe
mov dword [esi + 0x474], 3
lea ecx, [esi + 0x480]
push 0x5b35cc
mov dword [esi + 0x478], edi
call fcn.00402670
push 0x14
mov dword [esi + 0x484], 1
lea ecx, [esi + 0x48c]
push 0x5b35dc
mov dword [esi + 0x488], edi
call fcn.00402670
push 8
mov dword [esi + 0x490], 3
lea ecx, [esi + 0x49c]
push 0x5b35f4
mov dword [esi + 0x494], 0
call fcn.00402670
push 8
mov dword [esi + 0x4a0], 3
lea ecx, [esi + 0x4b8]
push 0x5b3600
mov dword [esi + 0x4a4], edi
call fcn.00402670
push 8
mov dword [esi + 0x4bc], 3
lea ecx, [esi + 0x4d4]
push 0x5b360c
mov dword [esi + 0x4c0], edi
call fcn.00402670
push 0x16
mov dword [esi + 0x4d8], 1
lea ecx, [esi + 0x4e0]
push 0x5b3618
mov dword [esi + 0x4dc], edi
call fcn.00402670
push 8
mov dword [esi + 0x4e4], ebx
lea ecx, [esi + 0x4f0]
push 0x5b3630
mov dword [esi + 0x4e8], 3
call fcn.00402670
push 0x12
mov dword [esi + 0x4f4], 1
lea ecx, [esi + 0x4fc]
push 0x5b363c
mov dword [esi + 0x4f8], ebx
call fcn.00402670
push 0xc
mov dword [esi + 0x500], 3
lea ecx, [esi + 0x50c]
push 0x5b3650
mov dword [esi + 0x504], edi
call fcn.00402670
push 0x12
mov dword [esi + 0x510], 3
lea ecx, [esi + 0x518]
push 0x5b3660
mov dword [esi + 0x514], edi
call fcn.00402670
push 8
mov dword [esi + 0x51c], ebx
lea ecx, [esi + 0x528]
push 0x5b3674
mov dword [esi + 0x520], 0
call fcn.00402670
push 8
mov dword [esi + 0x52c], 3
mov dword [esi + 0x530], 0
lea ecx, [esi + 0x534]
push 0x5b3680
call fcn.00402670
push 0xc
mov dword [esi + 0x538], ebx
lea ecx, [esi + 0x544]
push 0x5b368c
mov dword [esi + 0x53c], edi
call fcn.00402670
push 0xe
mov dword [esi + 0x548], ebx
lea ecx, [esi + 0x550]
push 0x5b369c
mov dword [esi + 0x54c], edi
call fcn.00402670
mov dword [esi + 0x554], 1
mov dword [esi + 0x558], 3
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4