Function at 0x41f350
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov dword [ebp - 0x44], 0x13f
mov dword [ebp - 0x60], 0x117
mov dword [ebp - 0x54], 0x1a6
mov dword [ebp - 0x6c], 0x38
mov dword [ebp - 0x70], 0x364
mov dword [ebp - 0x74], 0x216
mov dword [ebp - 0x48], 0x11c
mov dword [ebp - 0x58], 0x29e
mov dword [ebp - 0x5c], 0x11d
mov dword [ebp - 0x78], 0x25e
mov dword [ebp - 0x7c], 0x184
mov dword [ebp - 0x80], 0x1a7
mov dword [ebp - 0x4c], 0x1f7
mov dword [ebp - 0x50], 0x2cc
mov dword [ebp - 0x84], 0x5d
mov dword [ebp - 4], 0x1c7
mov dword [ebp - 0x34], 0x16c
mov dword [ebp - 0xc], 0x3d3
mov dword [ebp - 0x38], 0x387
mov dword [ebp - 0x2c], 0x36d
mov dword [ebp - 0x14], 0x1c5
mov dword [ebp - 0x88], 0x3ca
mov dword [ebp - 0x8c], 0x264
mov dword [ebp - 8], 0
jmp 0x41f415
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x34]
sub ecx, 0x1880c
cmp dword [ebp - 8], ecx
jge 0x41f4f3
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x14]
jge 0x41f438
mov dword [ebp - 0x18], 1
jmp 0x41f43f
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp + 0x1c]
add edx, 1
mov dword [ebp + 0x1c], edx
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x40]
jge 0x41f465
mov dword [ebp - 0x1c], 1
jmp 0x41f46c
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x18]
and edx, dword [ebp - 0x1c]
or ecx, edx
je 0x41f4e8
mov eax, dword [ebp + 0x1c]
imul eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0xc]
jge 0x41f491
mov dword [ebp - 0x20], 1
jmp 0x41f498
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x4c]
add edx, dword [ebp - 4]
cmp edx, dword [ebp - 0xc]
jge 0x41f4b5
mov dword [ebp - 0x24], 1
jmp 0x41f4bc
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 0x24]
cmp eax, dword [ebp - 0x50]
jge 0x41f4cd
mov dword [ebp - 0x28], 1
jmp 0x41f4d4
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x20]
or ecx, dword [ebp - 0x24]
or ecx, dword [ebp - 0x28]
je 0x41f4e8
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x41f40c
mov eax, dword [ebp - 0x54]
add eax, 0x12a
push eax
mov ecx, dword [ebp - 0xc]
sub ecx, 0x2e3
push ecx
mov edx, dword [ebp - 0x58]
add edx, 0xa6
push edx
mov eax, dword [ebp - 0x14]
sub eax, 0xe
push eax
mov ecx, dword [ebp + 0x20]
sub ecx, 0x64
push ecx
call fcn.00408580
add esp, 0x14
mov dword [ebp - 0x10], 0
jmp 0x41f538
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
sub eax, 0x189be
cmp dword [ebp - 0x10], eax
jge 0x41f59f
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebp + 0x18]
jge 0x41f556
mov dword [ebp - 0x30], 1
jmp 0x41f55d
mov dword [ebp - 0x30], 0
mov edx, dword [ebp + 8]
sub edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
and eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x30]
je 0x41f59d
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [ebp - 0x68]
jge 0x41f59d
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x41f52f
mov esp, ebp
pop ebp
ret