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

Disassembly:
push 0xffffffffffffffff
push 0x459ba8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov edi, dword [esp + 0x84]
lea eax, [ebp + 0x13c]
xor ebx, ebx
cmp edi, ebx
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x34], edx
jl 0x40a245
lea esi, [ebp + 0x168]
mov ecx, esi
call fcn.00414810
cmp edi, eax
jge 0x40a245
push edi
mov ecx, esi
call fcn.00414870
mov esi, eax
mov eax, dword [ebp + 0x17c]
cmp edi, eax
jge 0x409f04
mov eax, dword [ebp + 0x184]
lea eax, [eax + edi*4]
jmp 0x409f0f
mov dword [0x56f814], ebx
mov eax, 0x56f814
cmp esi, ebx
mov dword [eax], ebx
je 0x40a245
mov cl, byte [esp + 0x84]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x18], cl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov al, byte [esi]
mov dword [esp + 0x7c], ebx
cmp al, bl
je 0x40a0f3
push 0x3c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x40a072
lea edi, [eax + 1]
push 0x3e
push edi
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x40a06b
mov ecx, dword [esp + 0x14]
cmp ecx, esi
mov byte [ecx], bl
je 0x409fe6
mov edx, dword [ebp + 0x1c4]
push esi
add edx, 2
lea ecx, [ebp + 0x19c]
imul edx, dword [esp + 0x88]
mov dword [esp + 0x60], 0x504fc4
mov word [esp + 0x5a], bx
mov word [esp + 0x58], bx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x5c], esi
mov word [esp + 0x54], bx
mov word [esp + 0x56], dx
call fcn.00413dc0
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x4c]
mov word [esp + 0x54], ax
mov ax, word [ebp + 0x1c4]
push ecx
push 1
push edx
lea ecx, [esp + 0x24]
mov word [esp + 0x62], ax
call fcn.0040a2d0
mov eax, dword [esp + 0x10]
mov byte [eax], bl
mov eax, dword [ebp + 0x1c4]
push 0x2f
push edi
lea ecx, [eax + 2]
mov dword [esp + 0x50], 0x504fc4
imul ecx, dword [esp + 0x8c]
mov word [esp + 0x48], bx
mov dword [esp + 0x40], 1
mov dword [esp + 0x4c], edi
mov word [esp + 0x44], bx
mov word [esp + 0x46], cx
mov word [esp + 0x4a], ax
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
cmp eax, ebx
je 0x40a038
mov byte [eax], bl
inc eax
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x44]
lea ecx, [ebp + 0x19c]
push edx
call fcn.00413dc0
mov ecx, dword [esp + 0x20]
mov word [esp + 0x40], ax
lea eax, [esp + 0x38]
push eax
push 1
push ecx
lea ecx, [esp + 0x24]
call fcn.0040a2d0
mov edx, dword [esp + 0x10]
lea esi, [edx + 1]
jmp 0x40a0e2
mov edi, dword [esp + 0x84]
mov eax, dword [ebp + 0x1c4]
push esi
add eax, 2
lea ecx, [ebp + 0x19c]
imul eax, edi
mov dword [esp + 0x74], 0x504fc4
mov word [esp + 0x6e], bx
mov word [esp + 0x6c], bx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x70], esi
mov word [esp + 0x68], bx
mov word [esp + 0x6a], ax
call fcn.00413dc0
mov cx, word [ebp + 0x1c4]
lea edx, [esp + 0x60]
mov word [esp + 0x68], ax
mov eax, dword [esp + 0x20]
push edx
mov word [esp + 0x6e], cx
push 1
push eax
lea ecx, [esp + 0x24]
call fcn.0040a2d0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
mov al, byte [esi]
mov edi, dword [esp + 0x84]
cmp al, bl
jne 0x409f3e
cmp edi, dword [ebp + 0x17c]
jge 0x40a106
mov ecx, dword [ebp + 0x184]
lea eax, [ecx + edi*4]
jmp 0x40a111
mov dword [0x56f814], ebx
mov eax, 0x56f814
mov dword [eax], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
cmp ecx, ebx
je 0x40a18f
mov edx, esi
mov eax, 0x66666667
sub edx, ecx
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x84]
cmp eax, edx
jae 0x40a18f
cmp edi, dword [ebp + 0x17c]
jge 0x40a15d
mov edx, dword [ebp + 0x184]
lea eax, [edx + edi*4]
jmp 0x40a168
mov dword [0x56f814], ebx
mov eax, 0x56f814
mov edx, dword [esp + 0x10]
mov esi, dword [eax]
movsx ecx, word [edx + ecx + 8]
add esi, ecx
mov ecx, dword [esp + 0x84]
inc ecx
add edx, 0x14
mov dword [eax], esi
mov dword [esp + 0x84], ecx
mov dword [esp + 0x10], edx
jmp 0x40a11e
cmp edi, dword [ebp + 0x17c]
jge 0x40a1a2
mov edx, dword [ebp + 0x184]
lea edx, [edx + edi*4]
jmp 0x40a1ad
mov dword [0x56f814], ebx
mov edx, 0x56f814
mov eax, dword [esp + 0x30]
mov edi, dword [edx]
mov edx, dword [esp + 0x28]
sub eax, edi
sub eax, edx
mov dword [esp + 0x84], ebx
cdq
sub eax, edx
mov dword [esp + 0x10], ebx
mov edi, eax
sar edi, 1
cmp ecx, ebx
je 0x40a21f
sub esi, ecx
mov eax, 0x66666667
imul esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x84]
cmp eax, edx
jae 0x40a21f
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x84]
mov word [eax + ecx + 4], di
mov ecx, dword [esp + 0x1c]
movsx edx, word [eax + ecx + 8]
add edi, edx
inc esi
add eax, 0x14
mov dword [esp + 0x84], esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], eax
jmp 0x40a1cd
mov edx, dword [ebp + 0x194]
lea ecx, [ebp + 0x18c]
lea eax, [esp + 0x18]
push eax
push 1
push edx
call fcn.0040a5d0
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret 4