Function at 0x5b1e00
Capabilities:
Delete directory
Delete file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x656ad0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x6cd05c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x4c]
call fcn.005affc0
mov esi, dword [ebp - 0x48]
or ebx, 0xffffffff
mov eax, dword [eax]
mov edi, dword [eax + 0xac]
test esi, esi
je 0x5b1e64
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x5b1e64
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x5b1e64
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x4c]
call fcn.005affc0
test edi, edi
jle 0x5b1e7e
mov dword [ebp - 4], 0
push 0x8c3a3
jmp 0x5b1e8a
mov dword [ebp - 4], 1
push 0x8c3e7
call fcn.005b0050
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x5b1ebc
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x5b1ebc
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x5b1ebc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push ecx
mov edx, 0x6981c0
mov ecx, esp
call fcn.00405a10
call fcn.00647910
add esp, 4
lea ecx, [ebp - 0x4c]
test al, al
je 0x5b1eeb
call fcn.005affc0
mov dword [ebp - 4], 2
push 0x8c3ab
jmp 0x5b1efc
call fcn.005affc0
mov dword [ebp - 4], 3
push 0x8c3ac
call fcn.005b0050
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x5b1f2e
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x5b1f2e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x5b1f2e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
call fcn.0044e558
mov ecx, eax
test ecx, ecx
jne 0x5b1f43
push 0x80004005
call fcn.004028a0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b1f58
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x5b1f5a
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov edx, 0x6981e0
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00405650
push 0x697b88
mov byte [ebp - 4], 5
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.00404fb0
mov byte [ebp - 4], 4
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x5b1fd0
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b1fcc
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b1fcc
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5b1fd0
mov ecx, edx
call esi
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push eax
push 0x20019
push 0
push edi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5b21d9
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x34], 0x104
call fcn.0044e558
mov ecx, eax
test ecx, ecx
jne 0x5b201e
push 0x80004005
call fcn.004028a0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b2033
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x5b2035
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov edx, 0x697d34
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.00405650
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 7
mov edx, 1
mov ecx, dword [esi - 8]
sub edx, dword [esi - 4]
sub ecx, 0x104
or ecx, edx
jge 0x5b207b
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.00402600
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x34]
push ecx
push esi
lea ecx, [ebp - 0x3c]
push ecx
push dword [eax]
push edi
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov byte [ebp - 4], 6
mov ecx, ebx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x5b20eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x14]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b20e8
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x14]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b20e3
mov eax, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call eax
jmp 0x5b20eb
call dword [ebp - 0x2c]
jmp 0x5b20eb
call dword [ebp - 0x2c]
push dword [esi - 8]
push esi
call fcn.0058d0f1
add esp, 8
test eax, eax
js 0x5b21cf
cmp eax, dword [esi - 8]
jg 0x5b21cf
cmp dword [ebp - 0x48], 0
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
jne 0x5b2120
push esi
call fcn.0058ed9f
add esp, 4
jmp 0x5b2122
xor eax, eax
cmp dword [esi - 0xc], 0
lea ecx, [ebp - 0x44]
jne 0x5b213b
call fcn.005affc0
mov byte [ebp - 4], 8
push 0x8c3e5
jmp 0x5b215e
cmp eax, 0x12
jl 0x5b2150
call fcn.005affc0
mov byte [ebp - 4], 9
push 0x8c3ad
jmp 0x5b215e
call fcn.005affc0
mov byte [ebp - 4], 0xa
push 0x8c3ae
call fcn.005b0050
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x48], ecx
test ecx, ecx
je 0x5b218b
mov eax, ebx
lock xadd dword [ecx + 4], eax
jne 0x5b218b
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x48]
mov eax, ebx
lock xadd dword [ecx + 8], eax
jne 0x5b218b
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x5b2215
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b21cb
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b21cb
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call esi
jmp 0x5b221b
call edx
jmp 0x5b2215
push 0x80070057
call fcn.004028a0
lea ecx, [ebp - 0x4c]
call fcn.005affc0
push 0x8c3b5
mov byte [ebp - 4], 0xb
call fcn.005b0050
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x5b2215
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x5b2215
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x5b2215
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x5b225a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b2258
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b2258
push 0
push dword [ecx + 4]
call esi
jmp 0x5b225a
call edx
call fcn.0044e558
mov ecx, eax
test ecx, ecx
jne 0x5b226f
push 0x80004005
call fcn.004028a0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b2284
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x5b2286
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov edx, 0x698240
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0x48]
call fcn.00405650
push 0x697cc8
mov byte [ebp - 4], 0xd
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.00404fb0
mov byte [ebp - 4], 0xc
add esp, 0xc
mov ecx, dword [ebp - 0x48]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x5b22fd
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b22f9
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b22f9
mov eax, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [edx + 4]
call eax
jmp 0x5b22fd
mov ecx, edx
call esi
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x40]
push eax
push 0x20019
push 0
push edi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5b24fb
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x3c], 0x104
call fcn.0044e558
mov ecx, eax
test ecx, ecx
jne 0x5b234b
push 0x80004005
call fcn.004028a0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b2360
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x5b2362
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov edx, 0x697d84
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2c]
call fcn.00405650
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 0xf
mov edx, 1
mov ecx, dword [esi - 8]
sub edx, dword [esi - 4]
sub ecx, 0x104
or ecx, edx
jge 0x5b23a8
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.00402600
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x3c]
push ecx
push esi
lea ecx, [ebp - 0x34]
push ecx
push dword [eax]
push edi
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov byte [ebp - 4], 0xe
mov ecx, ebx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x5b2417
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x48], edi
mov edi, dword [ebp - 0x14]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b2414
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x48], edi
mov edi, dword [ebp - 0x14]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b240f
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5b2417
call dword [ebp - 0x48]
jmp 0x5b2417
call dword [ebp - 0x48]
push dword [esi - 8]
push esi
call fcn.0058d0f1
add esp, 8
test eax, eax
js 0x5b21cf
cmp eax, dword [esi - 8]
jg 0x5b21cf
cmp dword [ebp - 0x28], 0
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
jne 0x5b244c
push esi
call fcn.0058ed9f
add esp, 4
jmp 0x5b244e
xor eax, eax
cmp dword [esi - 0xc], 0
lea ecx, [ebp - 0x30]
jne 0x5b2467
call fcn.005affc0
mov byte [ebp - 4], 0x10
push 0x8c3e6
jmp 0x5b248a
cmp eax, 0x12
jl 0x5b247c
call fcn.005affc0
mov byte [ebp - 4], 0x11
push 0x8c3b6
jmp 0x5b248a
call fcn.005affc0
mov byte [ebp - 4], 0x12
push 0x8c3b7
call fcn.005b0050
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x48], ecx
test ecx, ecx
je 0x5b24b7
mov eax, ebx
lock xadd dword [ecx + 4], eax
jne 0x5b24b7
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x48]
mov eax, ebx
lock xadd dword [ecx + 8], eax
jne 0x5b24b7
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x5b2537
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b24f7
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b24f7
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call esi
jmp 0x5b253d
call edx
jmp 0x5b2537
lea ecx, [ebp - 0x4c]
call fcn.005affc0
push 0x8c3be
mov byte [ebp - 4], 0x13
call fcn.005b0050
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x5b2537
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x5b2537
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x5b2537
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x5b257c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b257a
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b257a
push 0
push dword [ecx + 4]
call esi
jmp 0x5b257c
call edx
call fcn.005b2c80
lea ecx, [ebp - 0x4c]
test al, al
je 0x5b259b
call fcn.005affc0
mov dword [ebp - 4], 0x14
push 0x8c3df
jmp 0x5b25ac
call fcn.005affc0
mov dword [ebp - 4], 0x15
push 0x8c3e0
call fcn.005b0050
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x5b25de
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x5b25de
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x5b25de
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x18]
call fcn.005b4960
xor edi, edi
mov byte [ebp - 0xd], 0
nop dword [eax]
push ecx
mov edx, 0x6982a0
mov ecx, esp
call fcn.00405a10
call fcn.00647910
add esp, 4
test al, al
jne 0x5b2627
cmp edi, 0x1e
jle 0x5b2677
lea ecx, [ebp - 0x4c]
call fcn.005affc0
mov dword [ebp - 4], 0x16
push 0x8c3bf
jmp 0x5b279e
cmp byte [ebp - 0xd], 0
jne 0x5b2673
lea ecx, [ebp - 0x38]
call fcn.005affc0
push 0x8c3c3
mov dword [ebp - 4], 0x17
call fcn.005b0050
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x5b2673
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x5b2673
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x5b2673
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 0xd], 1
mov edx, 0x698330
lea ecx, [ebp - 0x40]
call fcn.00405650
mov esi, eax
mov edx, 0x698380
mov dword [ebp - 4], 0x18
lea ecx, [ebp - 0x48]
call fcn.00405650
push dword [esi]
push dword [eax]
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExA]
mov edx, dword [ebp - 0x48]
mov ecx, ebx
mov dword [ebp - 0x3c], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x5b26ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b26e8
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b26e8
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5b26ea
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x5b2732
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b272e
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b272e
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5b2732
mov ecx, edx
call esi
cmp dword [ebp - 0x3c], 0
jne 0x5b278a
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp byte [0x6e8640], 0
je 0x5b2752
cmp edi, 0x28
jg 0x5b2774
cmp edi, 0x708
jle 0x5b25f0
lea ecx, [ebp - 0x4c]
call fcn.005affc0
mov dword [ebp - 4], 0x1b
push 0x8c3c5
jmp 0x5b279e
lea ecx, [ebp - 0x4c]
call fcn.005affc0
mov dword [ebp - 4], 0x1a
push 0x8c3c5
jmp 0x5b279e
lea ecx, [ebp - 0x4c]
call fcn.005affc0
mov dword [ebp - 4], 0x19
push 0x8c3c4
call fcn.005b0050
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x5b27d0
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x5b27d0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x5b27d0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push ecx
mov edx, 0x6983a0
mov ecx, esp
call fcn.00405a10
call fcn.00647910
add esp, 4
lea ecx, [ebp - 0x4c]
test al, al
je 0x5b27ff
call fcn.005affc0
mov dword [ebp - 4], 0x1c
push 0x8c3a8
jmp 0x5b2810
call fcn.005affc0
mov dword [ebp - 4], 0x1d
push 0x8c3c7
call fcn.005b0050
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x5b2842
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x5b2842
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x5b2842
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 0xd], 1
mov byte [ebp - 0xe], 1
call fcn.0044e558
mov ecx, eax
test ecx, ecx
jne 0x5b285f
push 0x80004005
call fcn.004028a0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b2874
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x5b2876
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov edx, 0x6983c0
mov dword [ebp - 4], 0x1e
lea ecx, [ebp - 0x48]
call fcn.00405650
push 0x697ce8
mov byte [ebp - 4], 0x1f
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call fcn.00404fb0
mov byte [ebp - 4], 0x1e
add esp, 0xc
mov ecx, dword [ebp - 0x48]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x5b28ee
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b28ea
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b28ea
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [edx + 4]
call edi
jmp 0x5b28f4
mov ecx, edx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x40]
push eax
push 0x20019
push 0
push esi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5b291d
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5b2921
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x5b2960
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b295e
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b295e
push 0
push dword [ecx + 4]
call edi
jmp 0x5b2960
call edx
call fcn.0044e558
mov ecx, eax
test ecx, ecx
jne 0x5b2975
push 0x80004005
call fcn.004028a0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b298a
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x5b298c
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov edx, 0x698420
mov dword [ebp - 4], 0x20
lea ecx, [ebp - 0x48]
call fcn.00405650
push 0x697d08
mov byte [ebp - 4], 0x21
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call fcn.00404fb0
mov byte [ebp - 4], 0x20
add esp, 0xc
mov ecx, dword [ebp - 0x48]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x5b29fe
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b29fa
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b29fa
push 0
push dword [edx + 4]
call edi
jmp 0x5b29fe
mov ecx, edx
call esi
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x40]
push eax
push 0x20019
push 0
push esi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5b2a27
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5b2a2b
mov byte [ebp - 0xe], 0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x5b2a6a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b2a68
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b2a68
push 0
push dword [ecx + 4]
call edi
jmp 0x5b2a6a
call edx
cmp byte [ebp - 0xd], 0
jne 0x5b2a8c
cmp byte [ebp - 0xe], 0
jne 0x5b2a8c
lea ecx, [ebp - 0x4c]
call fcn.005affc0
mov dword [ebp - 4], 0x22
push 0x8c3e1
jmp 0x5b2aa0
lea ecx, [ebp - 0x4c]
call fcn.005affc0
mov dword [ebp - 4], 0x23
push 0x8c3e2
call fcn.005b0050
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x5b2ad2
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x5b2ad2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x5b2ad2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
call fcn.005b2c80
test al, al
je 0x5b2b00
lea ecx, [ebp - 0x4c]
call fcn.005affc0
push 0x8c3e3
mov dword [ebp - 4], 0x24
call fcn.005b0050
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x48]
jmp 0x5b2b23
lea ecx, [ebp - 0x30]
call fcn.005affc0
push 0x8c3e4
mov dword [ebp - 4], 0x25
call fcn.005b0050
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x5b2b46
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x5b2b46
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x5b2b46
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push eax
call fcn.005b5390
mov dword [ebp - 4], 0x26
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
push eax
call fcn.005b5250
mov byte [ebp - 4], 0x27
xor edi, edi
push dword [ebp - 0x20]
call esi
test eax, eax
jne 0x5b2b9e
lea esi, [eax + 0xa]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 1
jne 0x5b2b82
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc edi
cmp edi, 0x3c
jb 0x5b2b76
mov esi, dword [ebp - 0x18]
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [esi + 0x28]
test eax, eax
je 0x5b2bc8
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5b2bc8
mov ecx, dword [esi + 0x28]
push 1
call fcn.0045dc89
mov byte [ebp - 4], 0x26
mov eax, ebx
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x5b2c0f
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b2c0b
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b2c0b
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [edx + 4]
call edi
jmp 0x5b2c15
mov ecx, edx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x5b2c67
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b2c63
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b2c63
push 0
push dword [edx + 4]
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret