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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100273c6
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x10033010]
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.10006470
call fcn.10005250
mov ecx, eax
test ecx, ecx
je 0x1000628c
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 0x100061de
mov ebx, dword [ebp - 0x254]
jmp 0x100058f7
mov esi, dword [ebp - 0x228]
xor al, al
mov dword [ebp - 0x244], eax
cmp ebx, 0xffffffff
jne 0x100059d1
mov ebx, dword [ebp - 0x238]
mov dword [ebp - 0x218], 0
test ebx, ebx
je 0x10005973
cmp dword [ebx], 0
je 0x10005966
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x10005935
lea ebx, [eax + 1]
jmp 0x10005994
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000596c
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 0x10005992
cmp dword [ebx + 4], 0
jne 0x10005973
mov ebx, 1
jmp 0x10005994
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 0x100061c2
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x100059af
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 0x10005a61
call fcn.10005250
test eax, eax
je 0x1000628c
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 0x10006282
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.100046a0
mov esi, dword [ebp - 0x234]
lea ecx, [ebp - 0x240]
add esp, 0x10
push dword [ebp - 0x230]
push esi
push 0x80000003
call fcn.1000a600
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 0x10005a5b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x228]
test ebx, ebx
jne 0x100061c2
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 0x100061c2
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x100061a3
xor ecx, ecx
mov dword [ebp - 0x234], ecx
test eax, eax
je 0x100061a3
nop dword [eax]
test esi, esi
je 0x10005ac9
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 0x10005cd4
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.1000a600
test eax, eax
jne 0x10006277
mov eax, dword [ebp - 0x244]
test al, al
jne 0x10005d07
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 0x10005cd4
mov eax, dword [ebp - 0x290]
cmp eax, 1
je 0x10005bb2
cmp eax, 2
jne 0x10005cd4
mov ebx, dword [ebp - 0x218]
shr ebx, 1
call fcn.10005250
test eax, eax
je 0x1000628c
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 0x10005bfe
push ebx
lea ecx, [ebp - 0x218]
call fcn.10004490
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 0x10005c78
mov eax, dword [ebp - 0x294]
cmp eax, 1
je 0x10005c48
cmp eax, 2
jne 0x10005c78
mov ecx, dword [ebp - 0x214]
test esi, esi
je 0x10005c6e
test ecx, ecx
je 0x10005c69
test cl, 1
jne 0x10005c78
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x10005c6e
jmp 0x10005c78
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.1000f927
add esp, 8
test eax, eax
js 0x10006282
cmp eax, dword [esi - 8]
jg 0x10006282
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 0x10005cf2
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10005cc8
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 0x10005ab0
jmp 0x100061a3
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10005d07
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 0x10005fa8
mov eax, dword [ebp - 0x298]
cmp eax, 1
je 0x10005d5f
cmp eax, 2
jne 0x10005fa8
mov ebx, dword [ebp - 0x214]
shr ebx, 1
call fcn.10005250
test eax, eax
je 0x1000628c
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 0x10005dab
push ebx
lea ecx, [ebp - 0x218]
call fcn.10004490
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 0x10005e25
mov eax, dword [ebp - 0x29c]
cmp eax, 1
je 0x10005df5
cmp eax, 2
jne 0x10005e25
mov ecx, dword [ebp - 0x214]
test esi, esi
je 0x10005e1b
test ecx, ecx
je 0x10005e16
test cl, 1
jne 0x10005e25
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x10005e1b
jmp 0x10005e25
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.1000f927
add esp, 8
test eax, eax
js 0x10006282
cmp eax, dword [esi - 8]
jg 0x10006282
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 0x10005f29
push 0x1002d15c
push 0x1002d634
lea ecx, [ebp + 0xc]
call fcn.10003820
cmp eax, 1
lea ecx, [ebp + 0xc]
push 0x1002d15c
push 0x1002d638
sete bh
call fcn.10003820
cmp eax, 1
lea ecx, [ebp + 0xc]
push 0x1002d15c
sete bl
push 0x1002d63c
mov byte [ebp - 0x229], bl
call fcn.10003820
cmp eax, 1
je 0x10005eb0
test bh, bh
jne 0x10005eac
test bl, bl
je 0x10005eb0
xor bl, bl
jmp 0x10005eb2
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.10003f10
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x218]
mov dword [ebp - 0x26c], ecx
push eax
call fcn.10003f10
mov byte [ebp - 4], 0xa
call fcn.10005600
add esp, 8
xor cl, cl
test bl, bl
je 0x10005f02
test eax, eax
movzx ecx, cl
mov edx, 1
cmove ecx, edx
test bh, bh
je 0x10005f0b
cmp eax, 0xffffffff
je 0x10005f29
cmp byte [ebp - 0x229], 0
je 0x10005f19
cmp eax, 1
je 0x10005f29
test cl, cl
jne 0x10005f29
mov byte [ebp - 4], 7
add esi, 0xfffffff0
jmp 0x10005cb3
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 0x10005f89
cmp dword [ebx + 0xc], 0
jl 0x10005f7a
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x10005f7a
mov ecx, edx
call fcn.10004100
mov esi, eax
lea edx, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10005f6d
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 0x10005f83
push dword [esi - 0xc]
push esi
call fcn.10004170
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 0x10005fa2
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 0x1002d640
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10005cce
mov eax, dword [ebp - 0x2a0]
cmp eax, 1
je 0x10005ffa
cmp eax, 2
jne 0x10005cce
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 0x10006025
push esi
lea ecx, [ebp - 0x248]
call fcn.10004490
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 0x1002d640
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000609f
mov eax, dword [ebp - 0x258]
cmp eax, 1
je 0x1000606f
cmp eax, 2
jne 0x1000609f
mov ecx, dword [ebp - 0x214]
test edi, edi
je 0x10006095
test ecx, ecx
je 0x10006090
test cl, 1
jne 0x1000609f
mov eax, ecx
shr eax, 1
cmp word [edi + eax*2 - 2], 0
je 0x10006095
jmp 0x1000609f
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.1000f927
add esp, 8
test eax, eax
js 0x10006282
cmp eax, dword [edi - 8]
jg 0x10006282
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.10003f10
mov byte [ebp - 4], 0xc
mov esi, dword [ebp - 0x24c]
mov ebx, dword [esi - 0xc]
test ebx, ebx
js 0x10006282
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x1000610f
push ebx
lea ecx, [ebp - 0x24c]
call fcn.10004490
mov esi, dword [ebp - 0x24c]
lea eax, [ebx + 1]
push eax
push esi
call fcn.1000f5a5
add esp, 8
cmp ebx, dword [esi - 8]
jg 0x10006282
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
cmp dword [esi - 0xc], eax
jge 0x10006138
or ebx, 0xffffffff
jmp 0x10006155
push str..exe
push esi
call fcn.1000de74
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10006151
or ebx, 0xffffffff
jmp 0x10006155
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 0x10006171
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp ebx, 0xffffffff
je 0x10005cc8
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x10006193
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 0x100061b8
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 0x100058f1
or ebx, 0xffffffff
cmp dword [edi - 0xc], 0
jne 0x10006296
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 0x1000621f
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x264], 0
je 0x100062f4
cmp dword [ebp - 0x230], 0x20019
jne 0x100062f4
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 0x10006261
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10005250
mov ecx, eax
test ecx, ecx
je 0x1000628c
mov esi, dword [ebp - 0x228]
jmp 0x100058c0
mov esi, dword [ebp - 0x228]
jmp 0x10005cd4
push 0x80070057
call fcn.10005470
push 0x80004005
call fcn.10005470
mov edx, dword [ebp - 0x268]
lea ecx, [edi - 0x10]
mov esi, dword [edx]
sub esi, 0x10
cmp ecx, esi
je 0x100062f4
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x100062e9
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x100062e9
call fcn.10004100
mov dword [ebp - 0x258], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x100062dc
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 0x100062f4
push dword [edi - 0xc]
mov ecx, edx
push edi
call fcn.10004170
mov ebx, dword [ebp - 0x288]
xor esi, esi
test ebx, ebx
je 0x10006321
cmp esi, ebx
jae 0x10006282
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 0x10006308
mov byte [ebp - 4], 6
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1000633d
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 0x10006380
xor esi, esi
test ebx, ebx
je 0x10006377
mov edx, dword [ecx + esi*4]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10006372
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 0x10006351
push ecx
call fcn.1000ef32
add esp, 4
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x27c]
test ecx, ecx
je 0x100063cf
mov ebx, dword [ebp - 0x278]
xor esi, esi
test ebx, ebx
je 0x100063c6
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 0x100063c1
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 0x100063a0
push ecx
call fcn.1000ef32
add esp, 4
mov eax, dword [ebp - 0x228]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x100063e2
push eax
call ebx
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x100063ef
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 0x10006410
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 0x1000642e
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 0x1000644d
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.1000b827
mov esp, ebp
pop ebp
ret