Function at 0x4185e0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 0x70], 0x16ad1
mov dword [ebp - 0x3c], 0x27f3
mov dword [ebp - 0x44], 0x6053
mov dword [ebp - 0x30], 0xce9
mov dword [ebp - 0x68], 0x3fa8
mov dword [ebp - 0x1c], 0x31a3
mov dword [ebp - 4], 0x115ac
mov dword [ebp - 0x5c], 0x1ad9
mov dword [ebp - 0x28], 0x113c6
mov dword [ebp - 0x64], 0x8d80
mov dword [ebp - 0x60], 0x3ed7
mov dword [ebp - 0x14], 0x16297
mov dword [ebp - 8], 0x16a2
mov dword [ebp - 0x38], 0x16b29
mov dword [ebp - 0x10], 0x9b4d
mov dword [ebp - 0x74], 0x13558
mov dword [ebp - 0x58], 0x6bb4
mov dword [ebp - 0x6c], 0x10014
mov dword [ebp - 0x40], 0x4e83
mov dword [ebp - 0x2c], 0x8ec6
mov dword [ebp - 0x54], 0xd004
mov dword [ebp - 0xc], 0x6833
mov dword [ebp - 0x78], 0x10614
mov dword [ebp - 0x34], 0x147fe
mov eax, dword [ebp - 0x28]
sub eax, 0x103b2
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x5b42
push ecx
mov edx, dword [ebp - 0x54]
sub edx, 0x4876
push edx
mov eax, dword [ebp - 0x2c]
add eax, 0x6af0
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0xdc84
push ecx
call fcn.0040feb0
add esp, 0x14
cmp dword [ebp - 4], 0x115ad
jge 0x4186eb
mov edx, dword [ebp - 8]
and edx, dword [ebp - 0x1c]
je 0x4186e0
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x4186c6
cmp dword [ebp - 0x14], 0x16298
jge 0x41877c
mov edx, dword [ebp - 0x58]
cmp edx, dword [ebp - 0x38]
jge 0x418709
mov dword [ebp - 0x20], 1
jmp 0x418710
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x5c]
jge 0x418721
mov dword [ebp - 0x24], 1
jmp 0x418728
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x40]
imul ecx, dword [ebp - 0x10]
and ecx, dword [ebp - 0x20]
and ecx, dword [ebp - 0x24]
je 0x41876e
mov edx, dword [ebp - 0x28]
cmp edx, dword [ebp - 4]
jne 0x41876e
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x60]
jne 0x41876e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x2c]
jne 0x41876e
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x64]
jne 0x41876e
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x68]
jne 0x41876e
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
jmp 0x4186eb
mov dword [ebp - 0x18], 0
jmp 0x41878e
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x6c]
sub ecx, 0x10013
cmp dword [ebp - 0x18], ecx
jge 0x418800
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x34]
jge 0x4187ad
mov dword [ebp - 0x48], 1
jmp 0x4187b4
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x44]
jge 0x4187c8
mov dword [ebp - 0x4c], 1
jmp 0x4187cf
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0x40]
or ecx, dword [ebp - 0x70]
cmp ecx, dword [ebp - 0x44]
jge 0x4187e3
mov dword [ebp - 0x50], 1
jmp 0x4187ea
mov dword [ebp - 0x50], 0
mov edx, dword [ebp - 0x48]
or edx, dword [ebp - 0x4c]
or edx, dword [ebp - 0x50]
je 0x4187fe
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x418785
mov esp, ebp
pop ebp
ret