Function at 0x4082c0
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x454d05
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x17c
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [esp + 0x190], ecx
mov eax, dword [0x471df4]
mov dword [esp + 0x30], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x84]
mov bl, 5
push 0x104
push eax
mov byte [esp + 0x198], bl
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test dword [edi + 0x5dc], 0x40000
je 0x408445
push 0x46a404
lea ecx, [esp + 0x20]
call fcn.0044a442
add edi, 0xdb4
push eax
lea ecx, [esp + 0x18]
push edi
push ecx
mov byte [esp + 0x19c], 6
call fcn.0044a5b7
lea edx, [esp + 0x1a4]
mov byte [esp + 0x190], 7
push edx
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x194], 8
call fcn.0044a4c1
lea ecx, [esp + 0x20]
mov byte [esp + 0x190], 7
call fcn.0044a3d4
lea ecx, [esp + 0x14]
mov byte [esp + 0x190], 6
call fcn.0044a3d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x190], bl
call fcn.0044a3d4
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x198]
push ecx
push edx
call fcn.0042cf30
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x190], 4
call fcn.0044a3d4
lea ecx, [esp + 0xc]
mov byte [esp + 0x190], 3
call fcn.0044a3d4
lea ecx, [esp + 0x198]
mov byte [esp + 0x190], 2
call fcn.0044a3d4
lea ecx, [esp + 0x19c]
mov byte [esp + 0x190], 1
call fcn.0044a3d4
lea ecx, [esp + 0x1a0]
mov byte [esp + 0x190], 0
call fcn.0044a3d4
lea ecx, [esp + 0x1a4]
mov dword [esp + 0x190], 0xffffffff
call fcn.0044a3d4
mov eax, 1
jmp 0x408830
cmp dword [edi + 0x18], 4
jne 0x408525
push str.OPTIONSINSTALL
lea ecx, [esp + 0x28]
call fcn.0044a442
mov esi, eax
lea eax, [esp + 0x84]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x194], 9
call fcn.0044a442
push esi
lea ecx, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x19c], 0xa
call fcn.0044a5b7
push 0x46a404
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0x19c], 0xb
call fcn.0044a61d
lea ecx, [esp + 0x1a4]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov byte [esp + 0x19c], 0xc
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x194], 0xd
call fcn.0044a4c1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x190], 0xc
call fcn.0044a3d4
lea ecx, [esp + 0x14]
mov byte [esp + 0x190], 0xb
call fcn.0044a3d4
lea ecx, [esp + 0x20]
mov byte [esp + 0x190], 0xa
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x190], 9
call fcn.0044a3d4
mov byte [esp + 0x190], bl
lea ecx, [esp + 0x24]
jmp 0x4085f6
push str.OPTIONSCABS
lea ecx, [esp + 0x3c]
call fcn.0044a442
mov esi, eax
lea eax, [esp + 0x84]
lea ecx, [esp + 0x34]
push eax
mov byte [esp + 0x194], 0xe
call fcn.0044a442
push esi
lea ecx, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x19c], 0xf
call fcn.0044a5b7
push 0x46a404
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x19c], 0x10
call fcn.0044a61d
lea ecx, [esp + 0x1a4]
lea edx, [esp + 0x24]
push ecx
push eax
push edx
mov byte [esp + 0x19c], 0x11
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x194], 0x12
call fcn.0044a4c1
lea ecx, [esp + 0x24]
mov byte [esp + 0x190], 0x11
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x190], 0x10
call fcn.0044a3d4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x190], 0xf
call fcn.0044a3d4
lea ecx, [esp + 0x34]
mov byte [esp + 0x190], 0xe
call fcn.0044a3d4
mov byte [esp + 0x190], bl
lea ecx, [esp + 0x38]
call fcn.0044a3d4
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x198]
push eax
push ecx
call fcn.0042cf30
mov eax, dword [edi + 0x18]
add esp, 8
cmp eax, 4
jne 0x40866b
push 0x46ad80
lea ecx, [esp + 0x19c]
call fcn.00449464
cmp eax, 0xffffffff
je 0x40866b
mov eax, dword [esp + 0x198]
lea edx, [esp + 0x10]
push edx
push eax
lea ecx, [edi + 0x2f8]
call fcn.00414d30
test eax, eax
je 0x40866b
lea ecx, [esp + 0x10]
call fcn.0044a88a
push str.SYSTEM
lea ecx, [esp + 0x14]
call fcn.00449464
cmp eax, 0xffffffff
mov esi, 1
jne 0x40866f
mov esi, dword [esp + 0x28]
mov ecx, dword [edi + 0x5dc]
not ecx
test cl, 0x40
je 0x4086da
push 0x46ad80
lea ecx, [esp + 0x19c]
call fcn.00449464
cmp eax, 0xffffffff
je 0x4086da
mov eax, dword [edi + 0x18]
cmp eax, 2
je 0x4086a3
cmp eax, 3
je 0x4086a3
test esi, esi
je 0x4086da
lea ecx, [esp + 0x19c]
call fcn.0044a88a
lea edx, [esp + 0x19c]
lea ecx, [edi + 0xb40]
push edx
call fcn.00449c44
push ecx
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.0044a149
mov ecx, edi
call fcn.00408070
push str.0X00000020
lea ecx, [esp + 0x1a4]
call fcn.00449464
cmp eax, 0xffffffff
jne 0x408706
push str.0X00000040
lea ecx, [esp + 0x1a4]
call fcn.00449464
cmp eax, 0xffffffff
je 0x40874d
mov edx, dword [esp + 0x19c]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
lea ecx, [esp + 0x3c]
push ecx
push 0
push edx
call esi
test eax, eax
je 0x40874d
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x60]
push eax
push 0
push ecx
call esi
test eax, eax
je 0x40874d
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x78]
cmp eax, ecx
ja 0x408766
jne 0x40874d
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x74]
cmp edx, eax
ja 0x408766
mov eax, dword [esp + 0x19c]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call fcn.0042cf30
add esp, 8
mov esi, eax
jmp 0x40876a
mov esi, dword [esp + 0x30]
push str..CAT
lea ecx, [esp + 0x19c]
call fcn.00449464
cmp eax, 0xffffffff
je 0x408793
lea edx, [esp + 0x198]
lea ecx, [edi + 0x5c0]
push edx
call fcn.00449c44
push 0x46ad80
lea ecx, [esp + 0x19c]
call fcn.00449464
cmp eax, 0xffffffff
je 0x4087b9
lea eax, [esp + 0xc]
lea ecx, [edi + 0x808]
push eax
call fcn.00449c44
lea ecx, [esp + 0x10]
mov byte [esp + 0x190], 4
call fcn.0044a3d4
lea ecx, [esp + 0xc]
mov byte [esp + 0x190], 3
call fcn.0044a3d4
lea ecx, [esp + 0x198]
mov byte [esp + 0x190], 2
call fcn.0044a3d4
lea ecx, [esp + 0x19c]
mov byte [esp + 0x190], 1
call fcn.0044a3d4
lea ecx, [esp + 0x1a0]
mov byte [esp + 0x190], 0
call fcn.0044a3d4
lea ecx, [esp + 0x1a4]
mov dword [esp + 0x190], 0xffffffff
call fcn.0044a3d4
mov eax, esi
mov ecx, dword [esp + 0x188]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x188
ret 0x10