Function at 0x474064
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x2c
push 0
push 0
dec ecx
jne 0x47406d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404aa0
xor eax, eax
push ebp
push 0x474b18
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404600
lea eax, [ebp - 0x1c]
mov edx, 0x474b30
call fcn.00404698
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.004086a4
mov eax, dword [ebp - 0x28]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
call fcn.004086a4
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.004049fc
jne 0x4740e4
cmp byte [ebp - 9], 0
je 0x474ac8
mov dword [0x479044], 3
xor eax, eax
mov dword [0x479048], eax
mov eax, dword [0x477b3c]
mov byte [eax], 0
mov dword [0x479030], 1
lea eax, [ebp - 0x24]
mov edx, dword [0x477970]
mov edx, dword [edx]
call fcn.00404698
push dword [ebp - 0x24]
push 0x474b4c
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404978
mov eax, dword [ebp - 0x30]
call fcn.00408e5c
test al, al
jne 0x4741b4
mov edx, dword [0x477a2c]
mov edx, dword [edx]
lea eax, [ebp - 0x24]
mov ecx, 0x474b58
call fcn.00404904
push dword [ebp - 0x24]
push 0x474b4c
push dword [ebp - 0x1c]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404978
mov eax, dword [ebp - 0x34]
call fcn.00408e5c
test al, al
jne 0x4741b4
lea eax, [ebp - 0x1c]
mov edx, 0x474b30
call fcn.00404698
push dword [ebp - 0x24]
push 0x474b4c
push dword [ebp - 0x1c]
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00404978
mov eax, dword [ebp - 0x38]
call fcn.00408e5c
test al, al
jne 0x4741b4
mov dword [0x479048], 1
jmp 0x474ac8
xor eax, eax
push ebp
push 0x474a3b
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x24]
push 0x474b4c
push dword [ebp - 0x1c]
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00404978
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x474a1d
inc esi
xor ebx, ebx
cmp byte [ebp - 9], 0
je 0x47423a
mov eax, dword [ebp + 8]
push dword [eax]
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x40]
push 0x474b70
mov eax, dword [ebp + 8]
mov edx, 3
call fcn.00404978
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x50], 0
lea ecx, [ebp - 0x58]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
lea edx, [ebp - 0x54]
mov ecx, 1
mov eax, 0x474b80
call fcn.00409760
mov eax, dword [ebp - 0x44]
call fcn.00472e94
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.004088f4
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
call fcn.004086e0
mov eax, dword [ebp - 0x60]
mov ecx, 0x64
mov edx, 5
call fcn.00404b10
mov edx, dword [ebp - 0x5c]
mov eax, 0x474b90
call fcn.00404bf4
test eax, eax
jg 0x4743bb
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x78]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x74]
call fcn.004088f4
mov eax, dword [ebp - 0x74]
lea edx, [ebp - 0x70]
call fcn.004086e0
mov eax, dword [ebp - 0x70]
mov ecx, 0x64
mov edx, 5
call fcn.00404b10
mov edx, dword [ebp - 0x6c]
mov eax, 0x474ba0
call fcn.00404bf4
test eax, eax
jg 0x4743bb
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x84]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x84]
lea edx, [ebp - 0x80]
call fcn.004088f4
mov eax, dword [ebp - 0x80]
mov ecx, 0x64
mov edx, 5
call fcn.00404b10
mov edx, dword [ebp - 0x7c]
mov eax, 0x474bb4
call fcn.00404bf4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jle 0x4743bb
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x8c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x20]
dec ecx
mov edx, 1
call fcn.00404b10
mov ecx, dword [ebp - 0x88]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0x20]
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x98]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
call fcn.004088f4
mov eax, dword [ebp - 0x94]
mov ecx, 4
mov edx, 1
call fcn.00404b10
mov eax, dword [ebp - 0x90]
mov edx, 0x474bc0
call fcn.004049fc
jne 0x474526
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0xa4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0xa0]
call fcn.004088f4
mov eax, dword [ebp - 0xa0]
mov ecx, 0x64
mov edx, 5
call fcn.00404b10
mov edx, dword [ebp - 0x9c]
mov eax, 0x474bd0
call fcn.00404bf4
test eax, eax
jle 0x47450f
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xac]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0xa8]
call fcn.004088f4
mov eax, dword [ebp - 0xa8]
mov ecx, 0x64
mov edx, 5
call fcn.00404b10
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 0x10]
mov eax, 0x474bd0
call fcn.00404bf4
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00404b10
lea eax, [ebp - 0x18]
push eax
mov edx, dword [ebp - 0x10]
mov eax, 0x474bd0
call fcn.00404bf4
mov edx, eax
inc edx
mov ecx, 0x64
mov eax, dword [ebp - 0x10]
call fcn.00404b10
lea eax, [ebp - 0xb0]
mov ecx, dword [ebp - 0x10]
mov edx, 0x474bc0
call fcn.00404904
mov eax, dword [ebp - 0xb0]
call fcn.00472e94
mov eax, dword [ebp - 0x18]
call fcn.00404ab0
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404ab0
push eax
call sub.kernel32.dll_SetEnvironmentVariableA
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0xbc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xbc]
lea edx, [ebp - 0xb8]
call fcn.004088f4
mov eax, dword [ebp - 0xb8]
mov ecx, 0xa
mov edx, 1
call fcn.00404b10
mov eax, dword [ebp - 0xb4]
mov edx, 0x474bdc
call fcn.004049fc
jne 0x4745bc
push 0x479034
lea ecx, [ebp - 0xc4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xc4]
lea edx, [ebp - 0xc0]
call fcn.004088f4
mov eax, dword [ebp - 0xc0]
mov ecx, 0x64
mov edx, 0xb
call fcn.00404b10
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0xd0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xd0]
lea edx, [ebp - 0xcc]
call fcn.004088f4
mov eax, dword [ebp - 0xcc]
mov ecx, 5
mov edx, 1
call fcn.00404b10
mov eax, dword [ebp - 0xc8]
mov edx, 0x474bf0
call fcn.004049fc
jne 0x474664
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xdc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xdc]
lea edx, [ebp - 0xd8]
call fcn.004088f4
mov eax, dword [ebp - 0xd8]
mov ecx, 0x64
mov edx, 6
call fcn.00404b10
mov eax, dword [ebp - 0xd4]
call fcn.00408a48
mov dword [0x47903c], eax
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0xe8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xe8]
lea edx, [ebp - 0xe4]
call fcn.004088f4
mov eax, dword [ebp - 0xe4]
mov ecx, 8
mov edx, 1
call fcn.00404b10
mov eax, dword [ebp - 0xe0]
mov edx, 0x474c00
call fcn.004049fc
jne 0x47470c
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0xf4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xf4]
lea edx, [ebp - 0xf0]
call fcn.004088f4
mov eax, dword [ebp - 0xf0]
mov ecx, 0x64
mov edx, 9
call fcn.00404b10
mov eax, dword [ebp - 0xec]
call fcn.00408a48
mov dword [0x479040], eax
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x100]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x100]
lea edx, [ebp - 0xfc]
call fcn.004088f4
mov eax, dword [ebp - 0xfc]
mov ecx, 8
mov edx, 1
call fcn.00404b10
mov eax, dword [ebp - 0xf8]
mov edx, 0x474c14
call fcn.004049fc
jne 0x47479d
mov eax, dword [0x477b3c]
mov byte [eax], 1
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10c], eax
mov byte [ebp - 0x108], 0xb
lea edx, [ebp - 0x10c]
xor ecx, ecx
mov eax, 0x474c28
call fcn.00409760
mov eax, dword [ebp - 0x104]
call fcn.00472e94
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x118]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x118]
lea edx, [ebp - 0x114]
call fcn.004088f4
mov eax, dword [ebp - 0x114]
mov ecx, 9
mov edx, 1
call fcn.00404b10
mov eax, dword [ebp - 0x110]
mov edx, 0x474c48
call fcn.004049fc
jne 0x474853
lea ecx, [ebp - 0x11c]
mov edx, 0x474c5c
mov eax, dword [ebp - 4]
call fcn.00474d20
mov eax, dword [ebp - 0x11c]
mov edx, 0x474c68
call fcn.004049fc
je 0x474853
mov eax, dword [0x477b3c]
mov byte [eax], 1
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10c], eax
mov byte [ebp - 0x108], 0xb
lea edx, [ebp - 0x10c]
xor ecx, ecx
mov eax, 0x474c28
call fcn.00409760
mov eax, dword [ebp - 0x120]
call fcn.00472e94
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x12c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x12c]
lea edx, [ebp - 0x128]
call fcn.004088f4
mov eax, dword [ebp - 0x128]
mov ecx, 9
mov edx, 1
call fcn.00404b10
mov eax, dword [ebp - 0x124]
mov edx, 0x474c7c
call fcn.004049fc
jne 0x4748fb
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x138]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.004088f4
mov eax, dword [ebp - 0x134]
mov ecx, 0xc
mov edx, 0xa
call fcn.00404b10
mov eax, dword [ebp - 0x130]
call fcn.00408a48
mov dword [0x479030], eax
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x144]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.004088f4
mov eax, dword [ebp - 0x140]
mov ecx, 0xd
mov edx, 1
call fcn.00404b10
mov eax, dword [ebp - 0x13c]
mov edx, 0x474c90
call fcn.004049fc
jne 0x47495a
mov dword [0x479044], 3
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x150]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
call fcn.004088f4
mov eax, dword [ebp - 0x14c]
mov ecx, 0xd
mov edx, 1
call fcn.00404b10
mov eax, dword [ebp - 0x148]
mov edx, 0x474ca8
call fcn.004049fc
jne 0x4749b6
xor eax, eax
mov dword [0x479044], eax
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x15c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x158]
call fcn.004088f4
mov eax, dword [ebp - 0x158]
mov ecx, 0x10
mov edx, 1
call fcn.00404b10
mov eax, dword [ebp - 0x154]
mov edx, 0x474cc0
call fcn.004049fc
jne 0x474a15
mov dword [0x479044], 4
inc ebx
dec esi
jne 0x474207
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474a42
mov eax, dword [ebp - 4]
add eax, 0xa0
mov edx, dword [ebp - 0x1c]
call fcn.00404654
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474b1f
lea eax, [ebp - 0x168]
mov edx, 0x17
call fcn.00404624
lea eax, [ebp - 0x104]
mov edx, 0x2c
call fcn.00404624
lea eax, [ebp - 0x44]
mov edx, 9
call fcn.00404624
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00404624
lea eax, [ebp - 8]
call fcn.00404600
ret