Function at 0x4161d8
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aed2d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x8c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x4163de
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x2c], 0x43c6
mov dword [ebp - 0x50], str.jruahwzv_nhgkmrzuz_pfsxwoxvj_xfb_ioqz_hdsgknbm_wlv_wwknsd_fkifxyip_lsuxltsi
cmp dword [ebp - 0x2c], 0x449a
jle 0x4162f2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
and dword [ebp - 0x24], 0
jmp 0x416253
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x4443
jge 0x4162f2
and dword [ebp - 0x20], 0
jmp 0x41626d
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2541
jge 0x4162ed
and dword [ebp - 0x28], 0
jmp 0x416283
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x5bcd
jge 0x4162e8
and dword [ebp - 0x1c], 0
jmp 0x416299
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x2444
jge 0x4162e6
mov eax, dword [ebp - 0x28]
cdq
idiv dword [ebp - 0x1c]
and edx, dword [ebp - 0x20]
xor edx, dword [ebp - 0x24]
mov eax, edx
cdq
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
lea ecx, [ebp - 0x9c]
call fcn.004019d3
pop ecx
pop ecx
mov ecx, eax
call fcn.00441f2b
push eax
call fcn.00499008
pop ecx
lea ecx, [ebp - 0x9c]
call fcn.00441f21
jmp 0x416292
jmp 0x41627c
jmp 0x416266
jmp 0x41624c
lea eax, [ebp + 0x14]
mov dword [ebp - 0x38], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x2c], 0x4208
jge 0x41630e
push dword [ebp - 0x50]
call fcn.00499008
pop ecx
jmp 0x41632a
or dword [ebp - 4], 0xffffffff
jmp 0x416334
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x416391
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x416372
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 1
jge 0x41638f
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x68]
call fcn.00442139
mov dword [eax], 0x19195c58
jmp 0x416367
jmp 0x4163dc
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x4163bf
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 1
jge 0x4163dc
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x34]
call fcn.00442139
mov dword [eax], 0xfbd6c3f0
jmp 0x4163b4
jmp 0x416430
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x44]
push dword [ebp - 0x4c]
push dword [ebp - 0x54]
push dword [ebp - 0x5c]
push dword [ebp - 0x64]
push dword [ebp - 0x6c]
push dword [ebp - 0x74]
call fcn.00432241
add esp, 0x24
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret