Function at 0x10028158
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100282d5
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x100281b8
mov byte [ebp - 1], 0
lea eax, [ebp - 1]
push eax
push 0x798b
push 0
push 1
push 0x4149
push 0x1690
push 0x15ba
push 0
call fcn.1002c5e2
add esp, 0x20
jmp 0x100282d0
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x28], 0x5ad3
mov dword [ebp - 0x5c], 0x100084a0
cmp dword [ebp - 0x28], 0x5c01
jle 0x1002827b
and dword [ebp - 0x20], 0
jmp 0x100281ec
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x13d6
jge 0x1002827b
and dword [ebp - 0x24], 0
jmp 0x10028206
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x7e74
jge 0x10028276
and dword [ebp - 0x10], 0
jmp 0x1002821c
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x92b
jge 0x10028274
mov eax, dword [ebp - 0x24]
cdq
idiv dword [ebp - 0x10]
add edx, dword [ebp - 0x20]
mov eax, edx
cdq
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov word [ebp - 0x68], ax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
lea ecx, [ebp - 0x94]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0x94]
call fcn.100252df
jmp 0x10028215
jmp 0x100281ff
jmp 0x100281e5
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x1002829d
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], 7
jl 0x100282be
push 0x499f
push 0
push 0x5d01
push dword [ebp - 0x50]
call fcn.10028c50
add esp, 0x10
jmp 0x10028292
cmp dword [ebp - 0x28], 0x5a36
jge 0x100282d0
push dword [ebp - 0x5c]
call fcn.1008287d
pop ecx
jmp 0x100283f3
mov dword [ebp - 0x2c], 0x2ea3
mov dword [ebp - 0x34], 0x10008500
cmp dword [ebp - 0x2c], 0x30e9
jle 0x100283ab
and dword [ebp - 8], 0
jmp 0x100282fd
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x3a44
jge 0x100283ab
and dword [ebp - 0xc], 0
jmp 0x10028317
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x4f46
jge 0x100283a6
and dword [ebp - 0x14], 0
jmp 0x10028331
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x1091
jge 0x100283a1
and dword [ebp - 0x1c], 0
jmp 0x10028347
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x28a9
jge 0x1002839f
mov eax, dword [ebp - 8]
imul eax, dword [ebp - 0xc]
and eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x7c], eax
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
lea ecx, [ebp - 0xac]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0xac]
call fcn.100252df
jmp 0x10028340
jmp 0x1002832a
jmp 0x10028310
jmp 0x100282f6
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x2c], 0x2c87
jge 0x100283c3
push dword [ebp - 0x34]
call fcn.1008287d
pop ecx
lea eax, [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test eax, eax
je 0x100283e9
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
and dword [eax], 0
jmp 0x100283f3
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov esp, ebp
pop ebp
ret