Function at 0x10005f00
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100256a6
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x1003000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x268], edx
mov dword [ebp - 0x260], ecx
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
xor esi, esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x230], 0x20019
mov dword [ebp - 0x25c], 0xff
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x27c], esi
mov dword [ebp - 0x278], esi
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x28c], esi
mov dword [ebp - 0x288], esi
mov dword [ebp - 0x284], esi
mov dword [ebp - 0x280], esi
lea edx, [ebp - 0x27c]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28c]
call fcn.10006b90
call fcn.10001520
mov ecx, eax
test ecx, ecx
je 0x100069ac
or ebx, 0xffffffff
nop word [eax + eax]
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x248], edi
mov byte [ebp - 4], 7
cmp dword [ebp - 0x278], 0xffffffff
mov dword [ebp - 0x254], 0xffffffff
jle 0x100068fe
mov ebx, dword [ebp - 0x254]
jmp 0x10006017
mov esi, dword [ebp - 0x228]
xor al, al
mov dword [ebp - 0x244], eax
cmp ebx, 0xffffffff
jne 0x100060f1
mov ebx, dword [ebp - 0x238]
mov dword [ebp - 0x218], 0
test ebx, ebx
je 0x10006093
cmp dword [ebx], 0
je 0x10006086
push 0x1002bf78
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x10006055
lea ebx, [eax + 1]
jmp 0x100060b4
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000608c
push 0
push dword [ebx]
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x230]
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push 0x80000002
call eax
jmp 0x100060b2
cmp dword [ebx + 4], 0
jne 0x10006093
mov ebx, 1
jmp 0x100060b4
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x230]
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x100068e2
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x100060cf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x230]
and eax, 0x300
mov dword [ebp - 0x23c], eax
jmp 0x10006181
call fcn.10001520
test eax, eax
je 0x100069ac
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 8
cmp ebx, dword [ebp - 0x278]
jae 0x100069a2
mov eax, dword [ebp - 0x27c]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push dword [eax + ebx*4]
lea eax, [ebp - 0x234]
push str._s_s
push eax
call fcn.10004d70
mov esi, dword [ebp - 0x234]
lea ecx, [ebp - 0x240]
add esp, 0x10
push dword [ebp - 0x230]
push esi
push 0x80000003
call fcn.10005bc0
mov ebx, eax
mov byte [ebp - 4], 7
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1000617b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x228]
test ebx, ebx
jne 0x100068e2
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x250]
push eax
push ebx
push ebx
push ebx
mov ebx, dword [ebp - 0x240]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x100068e2
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x100068c3
xor ecx, ecx
mov dword [ebp - 0x234], ecx
test eax, eax
je 0x100068c3
nop dword [eax]
test esi, esi
je 0x100061e9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x234]
xor esi, esi
mov dword [ebp - 0x228], esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x224], 0
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x25c], 0xff
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x100063f4
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
mov ecx, dword [ebp - 0x244]
test eax, eax
movzx ecx, cl
mov eax, 1
cmovne ecx, eax
lea eax, [ebp - 0x210]
push 0x20019
push eax
mov dword [ebp - 0x244], ecx
lea ecx, [ebp - 0x228]
push ebx
call fcn.10005bc0
test eax, eax
jne 0x10006997
mov eax, dword [ebp - 0x244]
test al, al
jne 0x10006427
mov eax, dword [ebp - 0x21c]
mov esi, dword [ebp - 0x228]
add eax, eax
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x218]
push eax
push 0
lea eax, [ebp - 0x290]
mov dword [ebp - 0x21c], 0
push eax
push 0
push str.DisplayName
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100063f4
mov eax, dword [ebp - 0x290]
cmp eax, 1
je 0x100062d2
cmp eax, 2
jne 0x100063f4
mov ebx, dword [ebp - 0x218]
shr ebx, 1
call fcn.10001520
test eax, eax
je 0x100069ac
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x218], esi
mov byte [ebp - 4], 9
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x1000631e
push ebx
lea ecx, [ebp - 0x218]
call fcn.10004c50
mov esi, dword [ebp - 0x218]
lea eax, [ebx + ebx]
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x214]
push eax
push esi
lea eax, [ebp - 0x294]
push eax
mov eax, dword [ebp - 0x228]
push 0
push str.DisplayName
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10006398
mov eax, dword [ebp - 0x294]
cmp eax, 1
je 0x10006368
cmp eax, 2
jne 0x10006398
mov ecx, dword [ebp - 0x214]
test esi, esi
je 0x1000638e
test ecx, ecx
je 0x10006389
test cl, 1
jne 0x10006398
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x1000638e
jmp 0x10006398
xor eax, eax
mov word [esi], ax
mov ebx, ecx
shr ebx, 1
mov dword [ebp - 0x21c], ebx
push dword [esi - 8]
push esi
call fcn.1000e28e
add esp, 8
test eax, eax
js 0x100069a2
cmp eax, dword [esi - 8]
jg 0x100069a2
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
push dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
add esi, 0xfffffff0
mov byte [ebp - 4], 7
test eax, eax
jne 0x10006412
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100063e8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x228]
mov ebx, dword [ebp - 0x240]
mov ecx, dword [ebp - 0x234]
inc ecx
mov dword [ebp - 0x234], ecx
cmp ecx, dword [ebp - 0x250]
jb 0x100061d0
jmp 0x100068c3
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10006427
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x21c]
mov esi, dword [ebp - 0x228]
add eax, eax
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x214]
push eax
push 0
lea eax, [ebp - 0x298]
mov dword [ebp - 0x21c], 0
push eax
push 0
push str.DisplayVersion
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100066c8
mov eax, dword [ebp - 0x298]
cmp eax, 1
je 0x1000647f
cmp eax, 2
jne 0x100066c8
mov ebx, dword [ebp - 0x214]
shr ebx, 1
call fcn.10001520
test eax, eax
je 0x100069ac
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x218], esi
mov byte [ebp - 4], 0xa
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x100064cb
push ebx
lea ecx, [ebp - 0x218]
call fcn.10004c50
mov esi, dword [ebp - 0x218]
lea eax, [ebx + ebx]
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x214]
push eax
push esi
lea eax, [ebp - 0x29c]
push eax
mov eax, dword [ebp - 0x228]
push 0
push str.DisplayVersion
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10006545
mov eax, dword [ebp - 0x29c]
cmp eax, 1
je 0x10006515
cmp eax, 2
jne 0x10006545
mov ecx, dword [ebp - 0x214]
test esi, esi
je 0x1000653b
test ecx, ecx
je 0x10006536
test cl, 1
jne 0x10006545
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x1000653b
jmp 0x10006545
xor eax, eax
mov word [esi], ax
mov ebx, ecx
shr ebx, 1
mov dword [ebp - 0x21c], ebx
push dword [esi - 8]
push esi
call fcn.1000e28e
add esp, 8
test eax, eax
js 0x100069a2
cmp eax, dword [esi - 8]
jg 0x100069a2
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], ecx
je 0x10006649
push 0x1002acf0
push 0x1002c38c
lea ecx, [ebp + 0xc]
call fcn.10003ef0
cmp eax, 1
lea ecx, [ebp + 0xc]
push 0x1002acf0
push 0x1002c390
sete bh
call fcn.10003ef0
cmp eax, 1
lea ecx, [ebp + 0xc]
push 0x1002acf0
sete bl
push 0x1002c394
mov byte [ebp - 0x229], bl
call fcn.10003ef0
cmp eax, 1
je 0x100065d0
test bh, bh
jne 0x100065cc
test bl, bl
je 0x100065d0
xor bl, bl
jmp 0x100065d2
mov bl, 1
push ecx
mov ecx, esp
mov dword [ebp - 0x214], esp
lea eax, [ebp + 0xc]
mov dword [ebp - 0x26c], ecx
push eax
call fcn.10004690
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x218]
mov dword [ebp - 0x26c], ecx
push eax
call fcn.10004690
mov byte [ebp - 4], 0xa
call fcn.10005d20
add esp, 8
xor cl, cl
test bl, bl
je 0x10006622
test eax, eax
movzx ecx, cl
mov edx, 1
cmove ecx, edx
test bh, bh
je 0x1000662b
cmp eax, 0xffffffff
je 0x10006649
cmp byte [ebp - 0x229], 0
je 0x10006639
cmp eax, 1
je 0x10006649
test cl, cl
jne 0x10006649
mov byte [ebp - 4], 7
add esi, 0xfffffff0
jmp 0x100063d3
mov ecx, dword [ebp - 0x260]
lea edx, [esi - 0x10]
mov dword [ebp - 0x214], edx
mov ebx, dword [ecx]
sub ebx, 0x10
cmp edx, ebx
je 0x100066a9
cmp dword [ebx + 0xc], 0
jl 0x1000669a
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x1000669a
mov ecx, edx
call fcn.10004880
mov esi, eax
lea edx, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000668d
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x260]
lea eax, [esi + 0x10]
mov dword [ecx], eax
jmp 0x100066a3
push dword [esi - 0xc]
push esi
call fcn.10004580
mov edx, dword [ebp - 0x214]
mov byte [ebp - 4], 7
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100066c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x228]
mov eax, dword [ebp - 0x21c]
add eax, eax
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x214]
push eax
push 0
lea eax, [ebp - 0x2a0]
push eax
push 0
push 0x1002c398
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100063ee
mov eax, dword [ebp - 0x2a0]
cmp eax, 1
je 0x1000671a
cmp eax, 2
jne 0x100063ee
mov esi, dword [ebp - 0x214]
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
shr esi, 1
sub eax, esi
or eax, ecx
jge 0x10006745
push esi
lea ecx, [ebp - 0x248]
call fcn.10004c50
mov edi, dword [ebp - 0x248]
lea eax, [esi + esi]
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x214]
push eax
push edi
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 0x228]
push 0
push 0x1002c398
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100067bf
mov eax, dword [ebp - 0x258]
cmp eax, 1
je 0x1000678f
cmp eax, 2
jne 0x100067bf
mov ecx, dword [ebp - 0x214]
test edi, edi
je 0x100067b5
test ecx, ecx
je 0x100067b0
test cl, 1
jne 0x100067bf
mov eax, ecx
shr eax, 1
cmp word [edi + eax*2 - 2], 0
je 0x100067b5
jmp 0x100067bf
xor eax, eax
mov word [edi], ax
mov ebx, ecx
shr ebx, 1
mov dword [ebp - 0x21c], ebx
push dword [edi - 8]
push edi
call fcn.1000e28e
add esp, 8
test eax, eax
js 0x100069a2
cmp eax, dword [edi - 8]
jg 0x100069a2
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x24c]
call fcn.10004690
mov byte [ebp - 4], 0xc
mov esi, dword [ebp - 0x24c]
mov ebx, dword [esi - 0xc]
test ebx, ebx
js 0x100069a2
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x1000682f
push ebx
lea ecx, [ebp - 0x24c]
call fcn.10004c50
mov esi, dword [ebp - 0x24c]
lea eax, [ebx + 1]
push eax
push esi
call fcn.100110f2
add esp, 8
cmp ebx, dword [esi - 8]
jg 0x100069a2
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
cmp dword [esi - 0xc], eax
jge 0x10006858
or ebx, 0xffffffff
jmp 0x10006875
push str..exe
push esi
call fcn.1000c354
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10006871
or ebx, 0xffffffff
jmp 0x10006875
sub ebx, esi
sar ebx, 1
mov byte [ebp - 4], 7
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10006891
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp ebx, 0xffffffff
je 0x100063e8
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x100068b3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x228], eax
mov ebx, dword [ebp - 0x240]
mov dword [ebp - 0x224], 0
test ebx, ebx
je 0x100068d8
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov ebx, dword [ebp - 0x254]
inc ebx
mov dword [ebp - 0x254], ebx
cmp ebx, dword [ebp - 0x278]
jl 0x10006011
or ebx, 0xffffffff
cmp dword [edi - 0xc], 0
jne 0x100069b6
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x264], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1000693f
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x264], 0
je 0x10006a14
cmp dword [ebp - 0x230], 0x20019
jne 0x10006a14
mov dword [ebp - 0x230], 0x20119
add edi, 0xfffffff0
mov byte [ebp - 4], 6
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10006981
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10001520
mov ecx, eax
test ecx, ecx
je 0x100069ac
mov esi, dword [ebp - 0x228]
jmp 0x10005fe0
mov esi, dword [ebp - 0x228]
jmp 0x100063f4
push 0x80070057
call fcn.10001170
push 0x80004005
call fcn.10001170
mov edx, dword [ebp - 0x268]
lea ecx, [edi - 0x10]
mov esi, dword [edx]
sub esi, 0x10
cmp ecx, esi
je 0x10006a14
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x10006a09
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x10006a09
call fcn.10004880
mov dword [ebp - 0x258], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x100069fc
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x258]
mov ecx, dword [ebp - 0x268]
add eax, 0x10
mov dword [ecx], eax
jmp 0x10006a14
push dword [edi - 0xc]
mov ecx, edx
push edi
call fcn.10004580
mov ebx, dword [ebp - 0x288]
xor esi, esi
test ebx, ebx
je 0x10006a41
cmp esi, ebx
jae 0x100069a2
mov eax, dword [ebp - 0x28c]
push dword [eax + esi*4]
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
inc esi
cmp esi, ebx
jb 0x10006a28
mov byte [ebp - 4], 6
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10006a5d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x28c]
test ecx, ecx
je 0x10006aa0
xor esi, esi
test ebx, ebx
je 0x10006a97
mov edx, dword [ecx + esi*4]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10006a92
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x28c]
inc esi
cmp esi, ebx
jb 0x10006a71
push ecx
call fcn.10011142
add esp, 4
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x27c]
test ecx, ecx
je 0x10006aef
mov ebx, dword [ebp - 0x278]
xor esi, esi
test ebx, ebx
je 0x10006ae6
nop word [eax + eax]
mov edx, dword [ecx + esi*4]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10006ae1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x27c]
inc esi
cmp esi, ebx
jb 0x10006ac0
push ecx
call fcn.10011142
add esp, 4
mov eax, dword [ebp - 0x228]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10006b02
push eax
call ebx
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x10006b0f
push eax
call ebx
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10006b30
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10006b4e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10006b6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000aa33
mov esp, ebp
pop ebp
ret