Function at 0x4091d0
Capabilities:
Allocate or change rwx memory
Check if file exists
Create directory
Delete file
Execute shellcode via indirect call
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47bf30
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x4a5018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 0x10]
push 4
mov dword [ebp - 0x3c], eax
call fcn.004551d2
add esp, 4
mov esi, eax
push 0x10
mov dword [esi], vtable.CCVProductDef.0
call fcn.004551d2
mov edi, eax
add esp, 4
lea eax, [edi + 4]
mov dword [eax], 1
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_class_CProductDefBase_.0
mov dword [edi + 0xc], esi
lock inc dword [eax]
mov ecx, dword [0x4aaa7c]
mov dword [0x4aaa78], esi
or esi, 0xffffffff
mov dword [ebp - 0x28], ecx
mov dword [0x4aaa7c], edi
test ecx, ecx
je 0x409288
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x409288
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x28]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x409288
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
lea ecx, [edi + 4]
lock xadd dword [ecx], eax
jne 0x4092ab
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lea ecx, [edi + 8]
lock xadd dword [ecx], eax
jne 0x4092ab
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp dword [0x4aaa88], 0
jne 0x40931a
push 0xa8
call fcn.004551d2
mov edi, eax
add esp, 4
lea esi, [edi + 0xc]
mov dword [edi + 4], 1
mov ecx, esi
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_obj2_class_CCVProductUrlDef_.0
call fcn.00423730
mov eax, dword [0x4aaa8c]
mov dword [0x4aaa8c], edi
mov edi, eax
mov dword [0x4aaa88], esi
or esi, 0xffffffff
test edi, edi
je 0x40931a
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x40931a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x40931a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [0x4aaa8c]
test eax, eax
je 0x409327
lock inc dword [eax + 4]
mov edi, dword [0x4aaa8c]
mov ecx, dword [0x4aaa88]
mov dword [ebp - 0x38], edi
test edi, edi
je 0x409346
lea eax, [edi + 4]
lock inc dword [eax]
lock inc dword [eax]
lock inc dword [eax]
mov dword [0x4aaa80], ecx
mov ecx, dword [0x4aaa84]
mov dword [ebp - 0x28], ecx
mov dword [0x4aaa84], edi
test ecx, ecx
je 0x40937d
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x40937d
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x28]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x40937d
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x4093a0
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x4093a0
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x4093a0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
sub esp, 0xc
call fcn.0040b230
mov eax, dword [0x4aaa7c]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4093c9
lock inc dword [eax + 4]
mov ecx, dword [0x4aaa7c]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [0x4aaa78]
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ecx]
call dword [eax + 0x60]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4093fd
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x4093fd
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x4093fd
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00419930
mov edx, dword [ebp - 0x30]
add esp, 4
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409426
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
call fcn.00408f90
push dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40947f
mov ecx, dword [ebp - 0x34]
mov edx, 0x104
add ecx, 8
sub dword [ebp - 0x2c], ecx
nop
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40947a
mov eax, dword [ebp - 0x2c]
movzx eax, word [eax + ecx]
test ax, ax
je 0x409473
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x409450
jmp 0x409477
test edx, edx
jne 0x40947a
sub ecx, 2
xor eax, eax
mov word [ecx], ax
mov ecx, dword [ebp - 0x34]
mov eax, 0x492fc8
add ecx, 0x210
mov edx, 0x104
sub eax, ecx
mov dword [ebp - 0x34], eax
nop word [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4094ca
mov eax, dword [ebp - 0x34]
movzx eax, word [eax + ecx]
test ax, ax
je 0x4094c3
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4094a0
jmp 0x4094c7
test edx, edx
jne 0x4094ca
sub ecx, 2
xor eax, eax
mov word [ecx], ax
mov eax, esi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4094e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, str.Dump
lea ecx, [ebp - 0x2c]
call fcn.00419b50
push dword [ebp - 0x2c]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x409519
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp - 0x2c]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00406910
mov edx, dword [ebp - 0x2c]
add eax, 0x10
mov dword [ebp - 0x30], eax
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409544
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00408f90
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
test edx, edx
je 0x4095c2
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x28], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409560
sub ecx, dword [ebp - 0x28]
sar ecx, 1
cmp ecx, 0x103
ja 0x4095c2
mov ecx, dword [ebp - 0x34]
mov edx, 0x104
mov eax, dword [ebp - 0x30]
add ecx, 0x1418
sub eax, ecx
mov dword [ebp - 0x28], eax
nop
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4095ba
mov eax, dword [ebp - 0x28]
movzx eax, word [eax + ecx]
test ax, ax
je 0x4095b3
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x409590
jmp 0x4095b7
test edx, edx
jne 0x4095ba
sub ecx, 2
mov edx, dword [ebp - 0x30]
xor eax, eax
mov word [ecx], ax
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4095d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00408f90
cmp dword [0x4aa594], 0
mov dword [ebp - 0x28], eax
je 0x4096a5
push 0x4271b0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov eax, dword [ebp - 0x28]
push str.kernel32.dll
mov dword [ebp - 0x1c], 0x4c2c033
mov byte [ebp - 0x18], 0
mov dword [eax + 0x1a30], 0x1084
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40969f
push 0x4967dc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x40969f
push 5
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4096a5
mov ecx, dword [ebp - 0x30]
push 5
mov eax, dword [ecx]
mov dword [ebp - 0x24], eax
mov al, byte [ecx + 4]
mov byte [ebp - 0x20], al
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4096a5
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 0x40
push 5
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40969f
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], 0
mov dword [ecx], eax
mov al, byte [ebp - 0x18]
mov byte [ecx + 4], al
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x28]
push 5
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4096a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.00408f90
mov dword [eax + 0x1a40], 0x409020
call fcn.00408f90
xorps xmm0, xmm0
mov dword [eax + 0x1a34], 0
mov eax, dword [0x4a8acc]
add eax, 0x10
mov dword [ebp - 0x74], vtable.WTL::CMessageLoop.0
push eax
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x40], 0
movq qword [ebp - 0x48], xmm0
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x34], eax
mov eax, dword [0x4aaa50]
push 4
mov dword [ebp - 0x28], eax
mov ecx, dword [eax + 8]
inc ecx
push ecx
push dword [eax]
call fcn.0045d0df
add esp, 0xc
test eax, eax
je 0x409771
mov ecx, dword [ebp - 0x28]
push 4
mov dword [ecx], eax
mov eax, dword [ecx + 8]
inc eax
push eax
push dword [ecx + 4]
call fcn.0045d0df
mov edx, eax
add esp, 0xc
test edx, edx
je 0x409771
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 8]
shl ecx, 2
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax]
mov dword [eax + 4], edx
add ecx, dword [ebp - 0x28]
je 0x409762
mov edx, dword [ebp - 0x34]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov ecx, dword [ebp - 0x28]
add ecx, edx
je 0x40976e
lea edx, [ebp - 0x74]
mov dword [ecx], edx
inc dword [eax + 8]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ecx
mov ecx, dword [ebp - 0x3c]
lea edx, [ebp - 0x74]
call fcn.0040ecc0
mov dword [ebp - 0x34], eax
add esp, 4
mov eax, dword [0x4a8acc]
add eax, 0x10
mov dword [ebp - 0x28], eax
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [0x4aaa50]
xor ecx, ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 8]
test eax, eax
jle 0x4097dd
mov edx, dword [edx]
mov edi, dword [ebp - 0x3c]
cmp dword [edx], edi
mov edi, dword [ebp - 0x38]
je 0x4097cc
inc ecx
add edx, 4
cmp ecx, eax
jl 0x4097b8
jmp 0x4097dd
cmp ecx, 0xffffffff
je 0x4097dd
push ecx
mov ecx, dword [0x4aaa50]
call fcn.0040af80
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [0x4aa598]
mov dword [ebp - 0x2c], edx
test edx, edx
je 0x4098bf
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov ecx, dword [edx + 0x4c]
mov eax, dword [ecx + 0x24]
movups xmmword [ecx + 0x24], xmm0
mov dword [ecx + 0x24], eax
mov ecx, edx
call fcn.004276c0
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x4c]
mov dword [edx + 0x48], vtable.CHttpDownloadEventPtr_class_CDataReporter_.0
test eax, eax
je 0x40983d
mov dword [eax + 0x24], 0
xorps xmm0, xmm0
mov ecx, dword [edx + 0x4c]
mov eax, dword [ecx + 0x24]
movups xmmword [ecx + 0x24], xmm0
mov dword [ecx + 0x24], eax
mov ecx, dword [edx + 0x4c]
test ecx, ecx
je 0x40984d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x44]
mov eax, esi
sub ecx, 0x10
mov dword [ebp - 0x38], ecx
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40986f
mov ecx, dword [ecx]
push dword [ebp - 0x38]
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x34]
lea esi, [edx + 0x34]
mov ecx, esi
push dword [eax + 4]
push esi
call fcn.00423490
push 0x14
push dword [esi]
call fcn.00455202
mov esi, dword [ebp - 0x2c]
add esp, 8
lea ecx, [esi + 8]
call fcn.00427dc0
mov eax, dword [esi]
mov ecx, esi
push dword [eax + 4]
push esi
call fcn.00423490
push 0x14
push dword [esi]
call fcn.00455202
push 0x50
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.00455202
add esp, 0x10
mov eax, dword [0x4a8acc]
add eax, 0x10
mov dword [0x4aa598], 0
push eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x4aaa54]
test esi, esi
je 0x40992d
cmp dword [esi + 4], 0
jle 0x4098fb
mov eax, dword [esi]
push dword [eax]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [0x4aaa54]
test esi, esi
je 0x40992d
mov eax, dword [esi]
test eax, eax
je 0x409914
push eax
call fcn.00459833
add esp, 4
mov dword [esi], 0
push 0xc
push esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00455202
add esp, 8
push dword [ebp - 0x38]
mov dword [0x4aaa54], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x4aaa50]
test esi, esi
je 0x409988
mov eax, dword [esi]
test eax, eax
je 0x40995f
push eax
call fcn.00459833
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x409976
push eax
call fcn.00459833
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
mov dword [esi + 8], 0
call fcn.00455202
add esp, 8
mov esi, dword [0x4aaa48]
test esi, esi
je 0x4099ba
cmp dword [esi], 0
je 0x4099ba
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4099a4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi + 0x20]
push 0
mov dword [esi + 0x10], 0
call eax
add esi, 0x24
cmp dword [esi], 0
jne 0x409997
mov esi, dword [0x4a5f5c]
mov ecx, dword [0x4a5f60]
cmp esi, ecx
jae 0x4099ea
nop word [eax + eax]
mov eax, dword [esi]
test eax, eax
je 0x4099e3
mov eax, dword [eax + 0x1c]
push 0
call eax
mov ecx, dword [0x4a5f60]
add esi, 4
cmp esi, ecx
jb 0x4099d0
mov ecx, 0x4aaa1c
call fcn.0040b350
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x74], vtable.WTL::CMessageLoop.0
test eax, eax
je 0x409a27
push eax
call fcn.00459833
add esp, 4
mov dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
test eax, eax
je 0x409a4c
push eax
call fcn.00459833
add esp, 4
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
test edi, edi
je 0x409aa2
or esi, 0xffffffff
lea ecx, [edi + 4]
mov eax, esi
lock xadd dword [ecx], eax
jne 0x409a85
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x409a82
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [edi + 4]
mov eax, esi
lock xadd dword [ecx], eax
jne 0x409aa2
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x409aa2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00454d47
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10