Function at 0x10017d80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081f0c
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x100bb2a8]
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 - 0x1d8], edx
mov dword [ebp - 0x1dc], ecx
mov dword [ebp - 4], 2
call fcn.10001e63
mov ecx, eax
test ecx, ecx
jne 0x10017dd6
push 0x80004005
call fcn.10001bd3
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x1c4], ebx
mov byte [ebp - 4], 3
call fcn.10001e63
mov ecx, eax
test ecx, ecx
jne 0x10017dfd
push 0x80004005
call fcn.10001bd3
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c8], edi
mov byte [ebp - 4], 4
call fcn.10001e63
mov ecx, eax
test ecx, ecx
jne 0x10017e24
push 0x80004005
call fcn.10001bd3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1b0], eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x20], 0x61766441
mov dword [ebp - 0x1b], 0x2e323369
mov word [ebp - 0x16], 0x6c6c
mov byte [ebp - 0x1c], 0x70
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x17], 0x64
call fcn.10001e63
mov ecx, eax
test ecx, ecx
jne 0x10017e6b
push 0x80004005
call fcn.10001bd3
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x19c], esi
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 6
test eax, 0xffff0000
jne 0x10017ea8
movzx ecx, ax
call fcn.10001cf0
test eax, eax
je 0x10017ecf
lea edx, [ebp - 0x20]
movzx ecx, dx
push ecx
push eax
lea ecx, [ebp - 0x19c]
call fcn.10007d68
jmp 0x10017ec9
lea ecx, [ebp - 0x20]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10017eb0
sub ecx, edx
lea eax, [ebp - 0x20]
push ecx
push eax
lea ecx, [ebp - 0x19c]
call fcn.10008e96
mov esi, dword [ebp - 0x19c]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 7
lea ecx, [ebx - 0x10]
mov dword [ebp - 0x1a0], edx
or eax, 0xffffffff
mov dword [ebp - 0x1a4], ecx
cmp edx, ecx
je 0x10017f56
cmp dword [ecx + 0xc], 0
lea ebx, [ecx + 0xc]
jl 0x10017f38
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x10017f38
mov ecx, edx
call fcn.10008de6
mov dword [ebp - 0x1b8], eax
or eax, 0xffffffff
mov ecx, eax
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x10017f27
mov esi, dword [ebp - 0x1a4]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
or eax, 0xffffffff
mov ebx, dword [ebp - 0x1b8]
add ebx, 0x10
mov dword [ebp - 0x1c4], ebx
jmp 0x10017f50
push dword [esi - 0xc]
lea ecx, [ebp - 0x1c4]
push esi
call fcn.10008e96
mov ebx, dword [ebp - 0x1c4]
or eax, 0xffffffff
mov edx, dword [ebp - 0x1a0]
mov byte [ebp - 4], 5
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10017f6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x2a], 0x6e656b6f
mov dword [ebp - 0x30], 0x74695773
mov word [ebp - 0x3a], 0x6165
mov word [ebp - 0x34], 0x636f
mov word [ebp - 0x37], 0x5065
mov word [ebp - 0x2c], 0x5468
mov word [ebp - 0x32], 0x7365
mov word [ebp - 0x3c], 0x7243
mov word [ebp - 0x26], 0x57
mov byte [ebp - 0x35], 0x72
mov byte [ebp - 0x38], 0x74
call fcn.10001e63
mov ecx, eax
test ecx, ecx
jne 0x10017fc1
push 0x80004005
call fcn.10001bd3
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x19c], esi
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 8
test eax, 0xffff0000
jne 0x10017ffe
movzx ecx, ax
call fcn.10001cf0
test eax, eax
je 0x10018023
lea edx, [ebp - 0x3c]
movzx ecx, dx
push ecx
push eax
lea ecx, [ebp - 0x19c]
call fcn.10007d68
jmp 0x1001801d
lea ecx, [ebp - 0x3c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10018004
sub ecx, edx
lea eax, [ebp - 0x3c]
push ecx
push eax
lea ecx, [ebp - 0x19c]
call fcn.10008e96
mov esi, dword [ebp - 0x19c]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 9
lea ecx, [edi - 0x10]
mov dword [ebp - 0x1a0], edx
mov dword [ebp - 0x1a4], ecx
cmp edx, ecx
je 0x100180a7
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
jl 0x1001808c
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x1001808c
mov ecx, edx
call fcn.10008de6
or esi, 0xffffffff
mov dword [ebp - 0x1b8], eax
mov ecx, esi
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x1001807b
mov edi, dword [ebp - 0x1a4]
push edi
mov ecx, dword [edi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1b8]
mov edx, dword [ebp - 0x1a0]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c8], edi
jmp 0x100180aa
push dword [esi - 0xc]
lea ecx, [ebp - 0x1c8]
push esi
call fcn.10008e96
mov edi, dword [ebp - 0x1c8]
mov edx, dword [ebp - 0x1a0]
or esi, 0xffffffff
mov byte [ebp - 4], 5
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100180c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x60]
mov word [ebp - 0x58], 0x652e
push eax
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 0x5d], 0x65726f6c
mov word [ebp - 0x60], 0x7865
mov word [ebp - 0x55], 0x65
mov byte [ebp - 0x59], 0x72
mov byte [ebp - 0x5e], 0x70
mov byte [ebp - 0x56], 0x78
call fcn.10006677
push eax
lea ecx, [ebp - 0x1b0]
mov byte [ebp - 4], 0xa
call fcn.10006622
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp - 0x1a4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10018127
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10018141
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100bd9d4], eax
jmp 0x10018146
mov eax, dword [0x100bd9d4]
test eax, eax
je 0x1001883c
lea eax, [ebp - 0x70]
mov word [ebp - 0x6f], 0x7265
push eax
mov word [ebp - 0x66], 0x6c6c
mov word [ebp - 0x6c], 0x6c65
mov word [ebp - 0x69], 0x2e32
mov byte [ebp - 0x6d], 0x6e
mov byte [ebp - 0x67], 0x64
mov byte [ebp - 0x64], 0
mov byte [ebp - 0x6a], 0x33
mov byte [ebp - 0x70], 0x4b
mov dword [ebp - 0x47], 0x7478654e
mov word [ebp - 0x4d], 0x6563
mov word [ebp - 0x50], 0x7250
mov dword [ebp - 0x4b], 0x32337373
mov byte [ebp - 0x43], 0
mov byte [ebp - 0x4e], 0x6f
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x1c0], eax
test eax, eax
je 0x1001883c
lea ecx, [ebp - 0x50]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1a4], eax
test eax, eax
je 0x10018830
xor eax, eax
mov dword [ebp - 0x198], 0x128
push eax
push 2
mov dword [ebp - 0x1a0], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x1a8], eax
cmp eax, 0xffffffff
je 0x100182af
lea ecx, [ebp - 0x198]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x100182a3
mov esi, dword [ebp - 0x1b0]
nop dword [eax]
nop dword [eax + eax]
lea eax, [ebp - 0x174]
push eax
lea ecx, [ebp - 0x19c]
call fcn.10006677
push esi
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0xb
call fcn.10011410
test eax, eax
jne 0x10018266
push dword [ebp - 0x190]
push eax
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1a0], eax
test eax, eax
jne 0x10018348
mov byte [ebp - 4], 5
or ecx, 0xffffffff
mov edx, dword [ebp - 0x19c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10018288
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x198]
push eax
push dword [ebp - 0x1a8]
call dword [ebp - 0x1a4]
cmp eax, 1
je 0x10018220
or esi, 0xffffffff
push dword [ebp - 0x1a8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 0x1bc], 0
test eax, eax
je 0x10018830
lea ecx, [ebp - 0x1a8]
mov dword [ebp - 0x1a8], 0
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1001830f
lea eax, [ebp - 0x1bc]
push eax
push 1
push 2
push 0
push 0x18b
push dword [ebp - 0x1a8]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push dword [ebp - 0x1a8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1bc], 0
je 0x10018830
mov dword [ebp - 0x1b8], 0
call fcn.10001e63
mov ecx, eax
test ecx, ecx
jne 0x10018375
push 0x80004005
call fcn.10001bd3
mov byte [ebp - 4], 5
or esi, 0xffffffff
mov edx, dword [ebp - 0x19c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100182a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100182a3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1a0], eax
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x1a0]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.__s___s
push eax
call fcn.100096bf
push 0x40
lea eax, [ebp - 0x234]
mov dword [ebp - 0x238], 0x44
push 0
push eax
call fcn.1005cd30
add esp, 0x1c
mov dword [ebp - 0x20c], 1
mov eax, 1
lea ecx, [ebp - 0x1a4]
mov word [ebp - 0x208], ax
push 0x100a57dd
call fcn.10006677
mov byte [ebp - 4], 0xd
mov esi, dword [ebp - 0x1a0]
mov dword [ebp - 0x1cc], 0
test esi, esi
jne 0x100183fd
xor eax, eax
jmp 0x10018437
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10018402
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x1b4], eax
cmp eax, 0x3fffffff
jle 0x1001841f
xor eax, eax
jmp 0x10018437
add eax, eax
call fcn.1005b400
mov ecx, esp
mov edx, esi
push 3
push dword [ebp - 0x1b4]
call fcn.10001ba2
push eax
lea ecx, [ebp - 0x19c]
call fcn.10006794
lea ecx, [ebp - 0x1ec]
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x19c]
push ecx
lea ecx, [ebp - 0x238]
push ecx
push 0
push 0
push 0
push dword [eax - 0xc]
lea ecx, [ebp - 0x19c]
call fcn.10008d6a
push eax
push 0
push 1
push dword [ebp - 0x1bc]
call dword [0x100bd9d4]
test eax, eax
je 0x100184bd
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x1ec]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, dword [ebp - 0x1d8]
push dword [ebp - 0x1e8]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1ec]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100184d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1dc]
mov dword [ecx], eax
cmp eax, 0x522
je 0x100187b4
mov dword [ebp - 0x1b4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
push ecx
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1d0], esp
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x1a8]
mov edx, eax
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x1ac], eax
jl 0x10018522
cmp edx, dword [ecx]
jne 0x10018522
mov eax, ecx
mov ecx, dword [ebp - 0x1ac]
lock inc dword [ecx]
jmp 0x10018569
mov eax, dword [edx]
push 1
push dword [ecx + 4]
mov ecx, edx
call dword [eax]
mov edx, eax
mov dword [ebp - 0x1ac], edx
test edx, edx
je 0x100187af
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov edx, dword [eax + 4]
add eax, 0x10
mov ecx, dword [ebp - 0x1ac]
inc edx
push edx
push eax
add ecx, 0x10
call fcn.100010b0
mov eax, dword [ebp - 0x1ac]
add esp, 8
mov ecx, dword [ebp - 0x1d0]
add eax, 0x10
mov dword [ecx], eax
call fcn.100178a0
add esp, 4
test eax, eax
jne 0x100185a1
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x1b4]
inc eax
mov dword [ebp - 0x1b4], eax
cmp eax, 0xa
jl 0x100184e0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
push ecx
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0x1d4], esp
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x1b4]
mov edx, eax
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x1ac], eax
jl 0x100185e3
cmp edx, dword [ecx]
jne 0x100185e3
mov eax, ecx
mov ecx, dword [ebp - 0x1ac]
lock inc dword [ecx]
jmp 0x1001862a
mov eax, dword [edx]
push 1
push dword [ecx + 4]
mov ecx, edx
call dword [eax]
mov edx, eax
mov dword [ebp - 0x1ac], edx
test edx, edx
je 0x100187af
mov eax, dword [ebp - 0x1b4]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov edx, dword [eax + 4]
add eax, 0x10
mov ecx, dword [ebp - 0x1ac]
inc edx
push edx
push eax
add ecx, 0x10
call fcn.100010b0
mov eax, dword [ebp - 0x1ac]
add esp, 8
mov ecx, dword [ebp - 0x1d4]
add eax, 0x10
mov dword [ecx], eax
call fcn.100178a0
mov byte [ebp - 4], 0xd
add esp, 4
mov edx, dword [ebp - 0x19c]
add edx, 0xfffffff0
test eax, eax
jne 0x1001867b
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10018663
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x1cc]
inc ecx
mov dword [ebp - 0x1cc], ecx
cmp ecx, 5
jl 0x100183f5
jmp 0x1001869a
mov dword [ebp - 0x1b8], 1
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001869a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x1bc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1c0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0xc
or eax, 0xffffffff
mov edx, dword [ebp - 0x1a4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100186d4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 5
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100186f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, esi
mov edx, dword [ebp - 0x1b0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10018713
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1001872e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add ebx, 0xfffffff0
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x10018749
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10018767
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10018785
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x100187a4
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1b8]
jmp 0x100188f0
call fcn.10008e8b
push dword [ebp - 0x1bc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1c0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0xd
or eax, 0xffffffff
mov edx, dword [ebp - 0x19c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100187ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
or eax, 0xffffffff
mov edx, dword [ebp - 0x1a4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10018810
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 5
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001883c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1001883c
push dword [ebp - 0x1c0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 4
mov eax, esi
mov edx, dword [ebp - 0x1b0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001885d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10018878
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add ebx, 0xfffffff0
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x10018893
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100188b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100188cf
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], esi
dec esi
test esi, esi
jg 0x100188ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
lea esp, [ebp - 0x248]
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.1005a19b
mov esp, ebp
pop ebp
ret