Function at 0x404120
Capabilities:
Get common file path
Set registry value
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x43a4e2
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x44a630]
xor eax, esp
mov dword [esp + 0x178], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44a630]
xor eax, esp
push eax
lea eax, [esp + 0x190]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebx + 0x1148]
push 0
call fcn.00423f97
push eax
call fcn.00423bc5
add esp, 8
call fcn.00423bd2
cdq
mov ecx, 0x1388
idiv ecx
mov esi, edx
add esi, 0x3e8
call fcn.00423bd2
imul esi, esi, 0x2710
cdq
mov ecx, 0x2328
idiv ecx
push 0x440ba0
lea ecx, [esp + 0x20]
add edx, 0x3e8
add esi, edx
add edi, esi
lea edi, [edi + edi - 0xe65d84]
call fcn.00402b80
push 0x440ba0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x19c], 0
call fcn.00402b80
push esi
lea edx, [esp + 0x20]
push 0x44094c
push edx
mov byte [esp + 0x1a4], 1
call fcn.00401dd0
push edi
lea eax, [esp + 0x28]
push 0x44094c
push eax
call fcn.00401dd0
mov edx, dword [esp + 0x34]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
add esp, 0x18
or eax, ecx
jge 0x404224
push esi
lea ecx, [esp + 0x20]
call fcn.00401ce0
mov edx, dword [esp + 0x1c]
test esi, esi
jle 0x40423f
add edx, 0xffffffff
jmp 0x404230
add byte [edx + esi], 0x1e
sub esi, 1
test esi, esi
jg 0x404230
mov edx, dword [esp + 0x1c]
test edx, edx
jne 0x404247
xor eax, eax
jmp 0x404261
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404250
sub eax, esi
js 0x40466c
cmp eax, dword [edx - 8]
jg 0x40466c
mov dword [edx - 0xc], eax
mov ecx, dword [esp + 0x1c]
mov byte [eax + ecx], 0
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx - 0xc]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x40429b
push esi
lea ecx, [esp + 0x1c]
call fcn.00401ce0
mov ecx, dword [esp + 0x18]
test esi, esi
jle 0x4042b1
add ecx, 0xffffffff
add byte [ecx + esi], 0xd3
sub esi, 1
test esi, esi
jg 0x4042a2
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4042b9
xor eax, eax
jmp 0x4042d1
mov eax, ecx
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4042c0
sub eax, esi
js 0x40466c
cmp eax, dword [ecx - 8]
jg 0x40466c
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x18]
mov byte [eax + edx], 0
mov eax, dword [ebx + 0x1154]
sub eax, 0x10
push eax
call fcn.00401b50
lea ebp, [eax + 0x10]
add esp, 4
mov dword [esp + 0x88], ebp
lea eax, [esp + 0x20]
push eax
push 0xf003f
push 0
push ebp
push SysReAllocStringLen
mov byte [esp + 0x1ac], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40433c
mov eax, dword [ebx + 0x1154]
lea ecx, [esp + 0x20]
push ecx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [esp + 0x18]
mov edx, dword [eax - 8]
mov esi, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
or edx, ecx
jge 0x404361
push 0
lea ecx, [esp + 0x1c]
call fcn.00401ce0
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x1158]
mov edx, dword [esp + 0x20]
add esi, 1
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x404395
push 0
push 0
push 0x440c8c
call fcn.0040720f
push 0
call fcn.00423e70
push 0x100
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [ebx + 0x115c]
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4043b0
lea edi, [esp + 0x8c]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4043c5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00406e7b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4043f9
push 0x80004005
call fcn.00401b10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x28]
push 0x440c88
push edx
mov byte [esp + 0x1a4], 3
call fcn.00401dd0
add esp, 0xc
call fcn.00423bd2
cdq
mov ecx, 0x64
idiv ecx
mov eax, 0x51eb851f
lea ecx, [esp + 0x78]
mov ebx, edx
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, 0x32
imul dl
mov dword [esp + 0x28], ebx
sub bl, al
call fcn.004116c1
push 0
mov byte [esp + 0x19c], 4
mov esi, dword [esp + 0x28]
push 0x9001
push esi
lea ecx, [esp + 0x84]
call fcn.00411aee
test eax, eax
je 0x404593
push 0
push 0x1000
push 0
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x3c]
call fcn.00412476
mov byte [esp + 0x198], 5
mov ecx, dword [esp + 0x44]
not ecx
test cl, 1
jne 0x4044bf
mov edx, dword [esp + 0x40]
push edx
push 2
call fcn.004126a5
mov eax, dword [esp + 0x54]
add eax, 4
cmp eax, dword [esp + 0x58]
jbe 0x4044d5
lea ecx, [esp + 0x2c]
call fcn.00411e00
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x28]
mov dword [edx], ecx
mov eax, dword [esp + 0x44]
add dword [esp + 0x54], 4
not eax
test al, 1
jne 0x4044fa
mov ecx, dword [esp + 0x40]
push ecx
push 2
call fcn.004126a5
mov edx, dword [esp + 0x54]
add edx, 1
cmp edx, dword [esp + 0x58]
jbe 0x404510
lea ecx, [esp + 0x2c]
call fcn.00411e00
mov eax, dword [esp + 0x54]
mov byte [eax], bl
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x54], 1
mov eax, dword [ecx - 0xc]
push 0
push eax
lea edx, [esp + 0x34]
push edx
call fcn.0041218d
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.004122df
mov eax, dword [esp + 0x18]
mov eax, dword [eax - 0xc]
push 0
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.0041218d
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.004122df
lea ecx, [esp + 0x2c]
call fcn.00411e00
lea ecx, [esp + 0x2c]
call fcn.004122d1
lea ecx, [esp + 0x78]
call fcn.0041165f
lea ecx, [esp + 0x2c]
mov byte [esp + 0x198], 4
call fcn.00412438
lea ecx, [esp + 0x78]
mov byte [esp + 0x198], 3
call fcn.004117ce
lea eax, [esi - 0x10]
mov byte [esp + 0x198], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4045c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x198], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4045ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x198], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404614
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x198], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40463f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x190]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.004230ad
add esp, 0x188
ret
push 0x80070057
call fcn.00401b10
int3