Function at 0x409050
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474871
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x49ef38]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x24], esi
mov dword [esi], vtable.CDevice.0
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
call edx
add eax, 0x10
mov dword [esi + 8], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x49f4e4
mov dword [ebp - 4], ebx
call edx
add eax, 0x10
mov dword [esi + 0xc], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov byte [ebp - 4], 1
call edx
add eax, 0x10
mov dword [esi + 0x10], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov byte [ebp - 4], 2
call edx
add eax, 0x10
mov dword [esi + 0x14], eax
lea edi, [esi + 0x1c]
mov dword [edi], ebx
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov byte [ebp - 4], 4
call edx
add eax, 0x10
mov dword [esi + 0x20], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov byte [ebp - 4], 5
call edx
add eax, 0x10
mov dword [esi + 0x24], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov byte [ebp - 4], 6
call edx
add eax, 0x10
mov dword [esi + 0x28], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov byte [ebp - 4], 7
call edx
add eax, 0x10
mov dword [esi + 0x2c], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov byte [ebp - 4], 8
call edx
add eax, 0x10
mov dword [esi + 0x30], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov byte [ebp - 4], 9
call edx
add eax, 0x10
mov dword [esi + 0x38], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov byte [ebp - 4], 0xa
call edx
add eax, 0x10
mov dword [esi + 0x3c], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov byte [ebp - 4], 0xb
call edx
add eax, 0x10
mov dword [esi + 0x40], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov byte [ebp - 4], 0xc
call edx
add eax, 0x10
mov dword [esi + 0x44], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov byte [ebp - 4], 0xd
call edx
add eax, 0x10
mov dword [esi + 0x4c], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov byte [ebp - 4], 0xe
call edx
add eax, 0x10
mov dword [esi + 0x50], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov byte [ebp - 4], 0xf
call edx
add eax, 0x10
mov dword [esi + 0x54], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov byte [ebp - 4], 0x10
call edx
add eax, 0x10
mov dword [esi + 0x58], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov byte [ebp - 4], 0x11
call edx
add eax, 0x10
mov dword [esi + 0x5c], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov byte [ebp - 4], 0x12
call edx
add eax, 0x10
mov dword [esi + 0x60], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov byte [ebp - 4], 0x13
call edx
add eax, 0x10
mov dword [esi + 0x64], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov byte [ebp - 4], 0x14
call edx
add eax, 0x10
mov dword [esi + 0x68], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov byte [ebp - 4], 0x15
call edx
add eax, 0x10
mov dword [esi + 0x6c], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov byte [ebp - 4], 0x16
call edx
add eax, 0x10
mov dword [esi + 0x70], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov byte [ebp - 4], 0x17
call edx
add eax, 0x10
mov dword [esi + 0x74], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov byte [ebp - 4], 0x18
call edx
add eax, 0x10
mov dword [esi + 0x78], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov byte [ebp - 4], 0x19
call edx
add eax, 0x10
mov dword [esi + 0x7c], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
push 0x47d9f4
push 0x17
push ebx
push 0x47e28c
mov dword [esi + 4], eax
mov dword [esi + 0x34], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x84], ebx
mov byte [ebp - 4], 0x1b
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x409383
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ole32.dll_OleRun]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
jl 0x409370
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x47df78
push eax
mov eax, dword [ecx]
call eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp - 0x1c], ebx
jge 0x409399
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
cmp eax, ebx
mov dword [ebp - 0x14], ecx
jge 0x40939c
cmp eax, 0x80004002
je 0x40939c
push eax
call fcn.004633e0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0x1c
cmp ecx, ebx
jne 0x4093ae
push 0x80004003
call fcn.004633e0
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ecx]
add ecx, 0x24
mov dword [ebp - 0x28], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call edx
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jne 0x4093dc
push 0x80004003
call fcn.004633e0
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
cmp eax, ebx
je 0x4093ed
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x1c]
mov dword [edi], ebx
mov ecx, dword [eax]
push edi
mov dword [ebp - 0x28], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x1c]
push edx
mov edx, dword [ecx + 0x20]
push eax
call edx
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x409421
mov dword [ebp - 0x14], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [edi]
cmp eax, ebx
jne 0x409431
push 0x80004003
call fcn.004633e0
mov ecx, dword [eax]
lea edx, [esi + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
mov edi, dword [edi]
mov dword [ebp - 0x20], ebx
cmp edi, ebx
jne 0x409450
push 0x80004003
call fcn.004633e0
mov ecx, dword [edi]
mov eax, dword [ecx + 0x3c]
lea edx, [ebp - 0x20]
push edx
push edi
call eax
mov edx, dword [ebp - 0x20]
cmp edx, ebx
je 0x409493
mov eax, edx
lea edi, [eax + 2]
jmp 0x409470
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409470
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esi + 0x10]
call fcn.004028e0
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x47e380
call fcn.00406330
lea edx, [ebp + 8]
push edx
mov ecx, esi
call fcn.004089e0
push eax
lea ecx, [esi + 8]
mov byte [ebp - 4], 0x1d
call fcn.00404480
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x1c
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4094de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x47e36c
call fcn.00406330
lea ecx, [ebp + 8]
push ecx
mov ecx, esi
call fcn.004089e0
push eax
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 0x1e
call fcn.00404480
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x1c
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409529
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x10]
push ecx
sub eax, 0x10
mov dword [ebp - 0x28], esp
mov edi, esp
push eax
call fcn.00401530
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], 0x1f
call fcn.00419a30
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x1c
call fcn.00416940
push eax
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 0x20
call fcn.00404480
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x1c
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40958b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x10]
push ecx
sub eax, 0x10
mov dword [ebp + 8], esp
mov edi, esp
push eax
call fcn.00401530
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], 0x21
call fcn.00419a30
mov ecx, eax
mov byte [ebp - 4], 0x1c
call fcn.00416b30
mov dword [esi + 0x80], eax
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0x1b
cmp eax, ebx
je 0x409620
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x409620
mov eax, 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 4