Function at 0x406010
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x42f9bc
mov eax, dword fs:[0]
push eax
mov eax, 0x1048
call fcn.0041c220
mov eax, dword [0x43cc00]
xor eax, esp
mov dword [esp + 0x1040], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43cc00]
xor eax, esp
push eax
lea eax, [esp + 0x105c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x106c]
xor ecx, ecx
cmp dword [eax + 4], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], ecx
jg 0x406096
mov ecx, dword [esp + 0x105c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1040]
xor ecx, esp
call fcn.00417ffe
add esp, 0x1054
ret 4
mov eax, ecx
mov ecx, dword [esp + 0x38]
lea ecx, [ecx + ecx*2]
mov ebx, dword [eax + ecx*8 + 0x1c]
mov ebp, dword [eax + ecx*8 + 0x18]
lea eax, [eax + ecx*8]
add ebx, 1
mov dword [esp + 0x50], ebp
mov dword [esp + 0x48], ebx
call fcn.0040c0d4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x406c99
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x3c], eax
push ebx
push ebp
lea ecx, [esp + 0x44]
push str.Disks__d_:_Partitions__d
push ecx
mov dword [esp + 0x1074], 0
call fcn.004028d0
add esp, 0xc
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x4349fc
call fcn.00402520
mov byte [esp + 0x1068], 1
mov edi, dword [esp + 0x40]
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add edi, 0xfffffff0
mov dword [esp + 0x48], esp
mov dword [esp + 0x34], esp
mov dword [esp + 0x48], edi
call eax
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
jl 0x406142
cmp eax, dword [edi]
jne 0x406142
mov esi, edi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x40617d
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x406ca3
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [edi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.00417f28
add esp, 0x10
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
add esi, 0x10
mov dword [edx], esi
mov ecx, dword [eax + 0x11a50]
push ecx
mov byte [esp + 0x1070], 0
call fcn.004029e0
cmp ebx, 1
mov dword [esp + 0x2c], 1
jl 0x406c58
jmp 0x4061b5
mov ebp, dword [esp + 0x50]
call fcn.0040c0d4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x406c99
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x1064], 2
call fcn.0040c0d4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x406c99
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x28], ebx
mov byte [esp + 0x1064], 3
call fcn.0040c0d4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x406c99
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x2c]
push ecx
push ebp
lea edx, [esp + 0x38]
push str.DeviceHarddisk_dPartition_d
push edx
mov byte [esp + 0x1074], 4
call fcn.004028d0
add esp, 0x10
lea eax, [esp + 0x4c]
push eax
call fcn.00408c80
mov byte [esp + 0x1064], 5
mov eax, dword [eax]
lea esi, [eax - 0x10]
lea edi, [ebx - 0x10]
cmp esi, edi
je 0x406314
cmp dword [edi + 0xc], 0
lea ebp, [edi + 0xc]
jl 0x406302
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x406302
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4062a7
cmp eax, dword [esi]
jne 0x4062a7
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4062e2
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x406ca3
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.00417f28
add esp, 0x10
or ecx, 0xffffffff
lock xadd dword [ebp], ecx
dec ecx
test ecx, ecx
jg 0x4062f9
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebx, 0x10
mov dword [esp + 0x28], ebx
jmp 0x406314
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.004019b0
mov ebx, dword [esp + 0x28]
mov byte [esp + 0x1064], 4
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40633c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebx - 0xc], 0
je 0x406bc7
mov ebx, dword [esp + 0x30]
push ecx
mov ecx, dword [ebx - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add ebx, 0xfffffff0
mov dword [esp + 0x24], esp
mov edi, esp
call eax
cmp dword [ebx + 0xc], 0
lea ecx, [ebx + 0xc]
jl 0x406378
cmp eax, dword [ebx]
jne 0x406378
mov esi, ebx
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4063b3
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x406ca3
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebx + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.00417f28
add esp, 0x10
add esi, 0x10
mov dword [edi], esi
mov byte [esp + 0x1068], 6
mov edi, dword [esp + 0x2c]
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add edi, 0xfffffff0
mov dword [esp + 0x24], esp
mov ebp, esp
call eax
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
jl 0x4063f2
cmp eax, dword [edi]
jne 0x4063f2
mov esi, edi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x40642d
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x406ca3
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [edi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.00417f28
add esp, 0x10
add esi, 0x10
mov dword [ebp], esi
mov byte [esp + 0x106c], 4
call fcn.00402020
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esp, 4
mov dword [esp + 0x20], esp
mov ebp, esp
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40646c
cmp eax, dword [edi]
jne 0x40646c
mov esi, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4064a7
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x406ca3
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [edi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.00417f28
add esp, 0x10
add esi, 0x10
mov dword [ebp], esi
lea esi, [esp + 0x1c]
call fcn.00408ae0
mov byte [esp + 0x1064], 7
mov edx, dword [esp + 0x18]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x4064e4
push esi
lea ecx, [esp + 0x1c]
call fcn.00401720
mov edx, dword [esp + 0x18]
lea eax, [esi + 1]
push eax
push edx
call fcn.00418c92
add esp, 8
test esi, esi
jl 0x406ca8
mov eax, dword [esp + 0x18]
cmp esi, dword [eax - 8]
jg 0x406ca8
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x18]
mov word [ecx + esi*2], 0
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], 0
jl 0x40653d
push str.PUSH_BUTTON
push ecx
call fcn.004185be
mov ecx, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x40653d
sub eax, ecx
sar eax, 1
je 0x406934
push str.IMAGES
push ecx
call fcn.00417e97
add esp, 8
test eax, eax
je 0x406934
mov edx, dword [esp + 0x18]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x406579
push esi
lea ecx, [esp + 0x1c]
call fcn.00401720
mov edx, dword [esp + 0x18]
lea eax, [esi + 1]
push eax
push edx
call fcn.00418c92
add esp, 8
test esi, esi
jl 0x406ca8
mov eax, dword [esp + 0x18]
cmp esi, dword [eax - 8]
jg 0x406ca8
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x18]
mov word [ecx + esi*2], 0
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], 0
jl 0x4066b9
push 0x4358d8
push ecx
call fcn.004185be
mov ecx, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x4066b9
sub eax, ecx
sar eax, 1
jne 0x4066b9
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4349fc
call fcn.00402520
push ecx
mov byte [esp + 0x106c], 0xb
mov ecx, esp
mov dword [esp + 0x28], esp
push str._EFI_AssignLetterToEFI
call fcn.00402520
mov ebp, dword [esp + 0x2c]
mov edx, dword [ebp + 0x11a50]
push edx
mov byte [esp + 0x1070], 7
call fcn.004029e0
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00401880
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x106c], 0xc
mov ecx, esp
mov dword [esp + 0x28], esp
push str._EFI_Need_to_mount_EFI
call fcn.00402520
mov eax, dword [ebp + 0x11a50]
push eax
mov byte [esp + 0x1070], 7
call fcn.004029e0
push ecx
mov dword [esp + 0x20], esp
mov esi, esp
push edi
call fcn.00401880
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00401fa0
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x434c00
call fcn.00402520
call fcn.00401fa0
mov dword [esp + 0x20], esp
mov esi, esp
push ebx
call fcn.00401880
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x106c], 0xd
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x434c00
jmp 0x406b8a
mov esi, dword [ecx - 0xc]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x4066db
push esi
lea ecx, [esp + 0x1c]
call fcn.00401720
mov ecx, dword [esp + 0x18]
lea edx, [esi + 1]
push edx
push ecx
call fcn.00418c92
add esp, 8
test esi, esi
jl 0x406ca8
mov eax, dword [esp + 0x18]
cmp esi, dword [eax - 8]
jg 0x406ca8
mov dword [eax - 0xc], esi
mov eax, dword [esp + 0x18]
mov word [eax + esi*2], 0
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], 0
jl 0x406734
push str.RECOVERY
push ecx
call fcn.004185be
mov ecx, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x406734
sub eax, ecx
sar eax, 1
je 0x406855
push str.IMAGES
push ecx
call fcn.00417e97
add esp, 8
test eax, eax
je 0x406855
mov ecx, dword [esp + 0x18]
push str.PQSERVICE
push ecx
call fcn.00417e97
add esp, 8
test eax, eax
push ecx
mov dword [esp + 0x20], esp
jne 0x406838
mov ecx, esp
push 0x4349fc
call fcn.00402520
push ecx
mov byte [esp + 0x106c], 0x11
mov ecx, esp
mov dword [esp + 0x28], esp
push str._EFI_AssignLetterToAHP
call fcn.00402520
mov ebp, dword [esp + 0x2c]
mov edx, dword [ebp + 0x11a50]
push edx
mov byte [esp + 0x1070], 7
call fcn.004029e0
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00401880
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x106c], 0x12
mov ecx, esp
mov dword [esp + 0x28], esp
push str._EFI_No_need_to_mount_AHP
call fcn.00402520
mov eax, dword [ebp + 0x11a50]
push eax
mov byte [esp + 0x1070], 7
call fcn.004029e0
push ecx
mov dword [esp + 0x20], esp
mov esi, esp
push edi
call fcn.00401880
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00401fa0
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x434c08
call fcn.00402520
call fcn.00401fa0
mov dword [esp + 0x20], esp
mov esi, esp
push ebx
call fcn.00401880
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x106c], 0x13
jmp 0x406b7f
mov esi, esp
push edi
call fcn.00401880
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00401fa0
add esp, 4
jmp 0x406b9f
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4349fc
call fcn.00402520
push ecx
mov byte [esp + 0x106c], 0xe
mov ecx, esp
mov dword [esp + 0x28], esp
push str._EFI_AssignLetterToRECOVERY
call fcn.00402520
mov ebp, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x11a50]
push ecx
mov byte [esp + 0x1070], 7
call fcn.004029e0
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00401880
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x106c], 0xf
mov ecx, esp
mov dword [esp + 0x28], esp
push str._EFI_Need_to_mount_RECOVERY
call fcn.00402520
mov edx, dword [ebp + 0x11a50]
push edx
mov byte [esp + 0x1070], 7
call fcn.004029e0
push ecx
mov dword [esp + 0x20], esp
mov esi, esp
push edi
call fcn.00401880
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00401fa0
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x434bf8
call fcn.00402520
call fcn.00401fa0
mov dword [esp + 0x20], esp
mov esi, esp
push ebx
call fcn.00401880
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x106c], 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x434bf8
jmp 0x406b8a
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4349fc
call fcn.00402520
push ecx
mov byte [esp + 0x106c], 8
mov ecx, esp
mov dword [esp + 0x28], esp
push str._EFI_AssignLetterToPBR
call fcn.00402520
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x11a50]
push ecx
mov byte [esp + 0x1070], 7
call fcn.004029e0
mov esi, dword [esp + 0x18]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x20], esp
mov dword [esp + 0x24], esp
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x4069aa
cmp eax, dword [esi]
jne 0x4069aa
mov ebp, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x4069e5
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
je 0x406ca3
mov eax, dword [esi + 4]
mov dword [ebp + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebp + 0x10]
push eax
call fcn.00417f28
add esp, 0x10
mov ecx, dword [esp + 0x24]
add ebp, 0x10
mov dword [ecx], ebp
push ecx
mov byte [esp + 0x106c], 9
mov ecx, esp
mov dword [esp + 0x28], esp
push str._EFI_Need_to_mount_PBR
call fcn.00402520
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x11a50]
push eax
mov byte [esp + 0x1070], 7
call fcn.004029e0
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
jl 0x406a42
cmp eax, dword [edi]
jne 0x406a42
mov esi, edi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x406a7d
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x406ca3
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [esi + 0x10]
push eax
call fcn.00417f28
add esp, 0x10
mov edi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push 0x800
lea ecx, [esp + 0x58]
push ecx
add esi, 0x10
push esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
lea edx, [esp + 0x54]
push edx
push esi
push 7
call ebp
add esi, 0xfffffff0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406abf
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
push 0x434c08
lea ecx, [esp + 0x38]
call fcn.00402520
mov edx, dword [esp + 0x34]
push 0x800
lea ecx, [esp + 0x58]
push ecx
push edx
call edi
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x54]
push eax
push ecx
push 7
call ebp
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406b0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x20], esp
mov edi, esp
call eax
cmp dword [ebx + 0xc], 0
lea ecx, [ebx + 0xc]
jl 0x406b36
cmp eax, dword [ebx]
jne 0x406b36
mov esi, ebx
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x406b71
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x406ca3
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 4]
lea ecx, [eax + eax + 2]
push ecx
add ebx, 0x10
lea edx, [eax + eax + 2]
push ebx
push edx
lea eax, [esi + 0x10]
push eax
call fcn.00417f28
add esp, 0x10
add esi, 0x10
mov dword [edi], esi
mov byte [esp + 0x1068], 0xa
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x434c08
call fcn.00402520
mov byte [esp + 0x106c], 7
call fcn.00402020
add esp, 8
mov byte [esp + 0x1064], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406bc7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1064], 3
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406bef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1064], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1064], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 1
cmp eax, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
jle 0x4061b1
mov edi, dword [esp + 0x40]
mov dword [esp + 0x1064], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c7c
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
add eax, 1
cmp eax, dword [ecx + 4]
mov dword [esp + 0x38], eax
jl 0x406090
jmp 0x406065
push 0x80004005
call fcn.004016a0
call fcn.004017f0
push 0x80070057
call fcn.004016a0
int3