Function at 0x10045921
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008668e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push esi
push edi
push 1
lea ecx, [ebp - 0xec]
call fcn.100289a7
and dword [ebp - 4], 0
mov dword [ebp - 0xe0], 0xfffffff9
mov dword [ebp - 0xdc], 0xfffffff9
mov dword [ebp - 0xd8], 0xfffffff9
mov dword [ebp - 0xd4], 0xfffffff9
lea ecx, [ebp - 0x4d]
call fcn.1000935a
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x124]
call fcn.10028a23
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0xcc]
call fcn.100289e9
mov byte [ebp - 4], 1
mov dword [ebp - 0x48], 0
jmp 0x100459c0
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 1
jge 0x100459d9
push dword [ebp - 0x48]
lea ecx, [ebp - 0xec]
call fcn.10028a14
and dword [eax], 0
jmp 0x100459b9
mov byte [ebp - 0x21], 0
movzx eax, byte [ebp - 0x21]
test eax, eax
je 0x100459ef
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0
lea ecx, [ebp - 0xcc]
call fcn.10028a14
and dword [eax], 0
jmp 0x10045a25
push 0
lea ecx, [ebp - 0xcc]
call fcn.10028a14
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x9c]
mov dword [ecx], eax
push 0
lea ecx, [ebp - 0xcc]
call fcn.10028a14
cmp dword [eax], 0
jl 0x10045a50
mov dword [ebp - 0x98], 0x443250e6
mov eax, dword [ebp - 0x98]
dec eax
mov dword [ebp - 0x98], eax
jmp 0x10045a01
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xcc]
call fcn.10028a0f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call fcn.10028a0f
and dword [ebp - 0x11c], 0
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x118]
rep stosd dword es:[edi], eax
push 4
lea ecx, [ebp - 0x5c]
call fcn.100289a7
mov dword [ebp - 4], 2
mov dword [ebp - 0x18], 0
push 1
lea ecx, [ebp - 0xb8]
call fcn.100289a7
mov byte [ebp - 4], 3
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.10045739
add esp, 0xc
mov dword [ebp - 0x28], 0
jmp 0x10045acd
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 1
jge 0x10045ae9
push dword [ebp - 0x28]
lea ecx, [ebp - 0xb8]
call fcn.10028a14
mov dword [eax], 0x74da8628
jmp 0x10045ac6
mov dword [ebp - 0x18], 3
jmp 0x10045af9
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x10045db4
mov dword [ebp - 0x10], 9
mov dword [ebp - 0x40], 0
jmp 0x10045b1a
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 2
jge 0x10045b30
mov eax, dword [ebp - 0x40]
mov dword [ebp + eax*4 - 0x100], 0xff846c8
jmp 0x10045b13
mov dword [ebp - 0x10], 3
jmp 0x10045b40
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x10045c0f
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x68], 0xc9cd
mov dword [ebp - 0x74], 0xfffffffb
push dword [ebp - 0x18]
lea ecx, [ebp - 0x5c]
call fcn.10028a14
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov esi, dword [ebp - 0x34]
shl esi, 2
push dword [ebp - 0x18]
lea ecx, [ebp - 0x5c]
call fcn.10028a14
mov eax, dword [eax]
sub eax, esi
je 0x10045beb
mov dword [ebp - 0x68], 0x2d91509c
mov esi, dword [ebp - 0x68]
sub esi, dword [ebp - 0x18]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x5c]
call fcn.10028a14
cmp dword [eax], esi
jl 0x10045bae
mov dword [ebp - 0x90], 1
jmp 0x10045bb5
and dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x90], eax
jge 0x10045bc9
mov dword [ebp - 0x60], 1
jmp 0x10045bcd
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x10045beb
mov dword [ebp - 0x8c], 1
jmp 0x10045bf2
and dword [ebp - 0x8c], 0
mov esi, dword [ebp - 0x8c]
sub esi, 9
push 0
lea ecx, [ebp - 0xb8]
call fcn.10028a14
mov dword [eax], esi
jmp 0x10045b39
push dword [ebp - 0x18]
lea ecx, [ebp - 0x5c]
call fcn.10028a14
cmp dword [eax], 0
je 0x10045d71
mov dword [ebp - 0x10], 3
jmp 0x10045c33
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x10045d6f
mov dword [ebp - 0x30], 0xfffffffc
mov dword [ebp - 0x30], 0
jmp 0x10045c54
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 3
jg 0x10045d6a
mov dword [ebp - 0x38], 0x7071658a
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x38], 0
jmp 0x10045c7c
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 3
jg 0x10045d4b
push dword [ebp - 0x10]
lea ecx, [ebp - 0x5c]
call fcn.10028a14
cmp dword [eax], 0x16765654
je 0x10045ca2
mov dword [ebp - 0x7c], 1
jmp 0x10045ca6
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x7c]
sub eax, dword [ebp - 0x18]
cmp eax, 0x3cb8
jg 0x10045cbf
mov dword [ebp - 0x94], 1
jmp 0x10045cc6
and dword [ebp - 0x94], 0
push dword [ebp - 0x30]
lea ecx, [ebp - 0x5c]
call fcn.10028a14
mov ecx, dword [ebp - 0x94]
add ecx, 0xfffe
cmp dword [eax], ecx
jge 0x10045ced
mov dword [ebp - 0x84], 1
jmp 0x10045cf4
and dword [ebp - 0x84], 0
push dword [ebp - 0x18]
lea ecx, [ebp - 0x5c]
call fcn.10028a14
mov ecx, dword [ebp - 0x84]
add ecx, dword [eax]
imul eax, ecx, 5
cmp eax, 0xfffa
jbe 0x10045d1a
mov dword [ebp - 0x4c], 1
jmp 0x10045d1e
and dword [ebp - 0x4c], 0
push 0
lea ecx, [ebp - 0xb8]
call fcn.10028a14
mov ecx, dword [ebp - 0x4c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x6c], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x6c]
mov dword [ebp + eax - 0x100], ecx
jmp 0x10045c75
mov byte [ebp - 0x1e], 0
movzx eax, byte [ebp - 0x1e]
test eax, eax
je 0x10045d65
push 0
push 0x47c2
call fcn.100492bf
pop ecx
pop ecx
jmp 0x10045c4d
jmp 0x10045c2c
jmp 0x10045daf
mov dword [ebp - 0x10], 0
jmp 0x10045d81
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jg 0x10045daf
mov byte [ebp - 0x1f], 0
push 0x2d63
push 0x536e
lea eax, [ebp - 0x1f]
push eax
push 0x7b94
push 1
push 0x38a2
call fcn.100457ad
add esp, 0x18
jmp 0x10045d7a
jmp 0x10045af2
mov esi, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0xb8]
call fcn.10028a14
mov dword [eax], esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb8]
call fcn.10028a0f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.10028a0f
push 0x1c
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
push 0x2f00
push 0x3159
call fcn.10057626
pop ecx
pop ecx
call eax
test eax, eax
je 0x10046039
mov dword [ebp - 0xbc], 0xee
push 1
lea ecx, [ebp - 0xa8]
call fcn.100289a7
mov dword [ebp - 4], 4
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0xc0], 0xfffffffe
mov dword [ebp - 0x3c], 0
jmp 0x10045e47
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 1
jge 0x10045e63
push dword [ebp - 0x3c]
lea ecx, [ebp - 0xa8]
call fcn.10028a14
mov dword [eax], 0x5b57fd54
jmp 0x10045e40
mov dword [ebp - 0x1c], 0
jmp 0x10045e73
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jg 0x10045f5b
mov dword [ebp - 0xac], 1
mov byte [ebp - 0x1d], 0
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x10045ea1
push 0x58a1
push 1
call fcn.100458aa
pop ecx
pop ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0xa8]
call fcn.10028a14
push dword [ebp - 0x1c]
lea ecx, [ebp - 0xa8]
call fcn.10028a14
cmp dword [eax], 0
jne 0x10045ecf
push 0xfffffffffffffffe
pop eax
test eax, eax
jne 0x10045ecf
and dword [ebp - 0x70], 0
jmp 0x10045ed6
mov dword [ebp - 0x70], 1
push 0
lea ecx, [ebp - 0xa8]
call fcn.10028a14
mov eax, dword [eax]
cmp eax, dword [ebp - 0x70]
jle 0x10045ef3
mov dword [ebp - 0x78], 1
jmp 0x10045ef7
and dword [ebp - 0x78], 0
push dword [ebp - 0x1c]
lea ecx, [ebp - 0xa8]
call fcn.10028a14
mov ecx, dword [ebp - 0x78]
cmp ecx, dword [eax]
jge 0x10045f15
mov dword [ebp - 0x80], 1
jmp 0x10045f19
and dword [ebp - 0x80], 0
push dword [ebp - 0x1c]
lea ecx, [ebp - 0xa8]
call fcn.10028a14
mov eax, dword [eax]
cmp eax, dword [ebp - 0x80]
je 0x10045f40
cmp dword [ebp - 0xac], 0
jne 0x10045f40
and dword [ebp - 0x88], 0
jmp 0x10045f4a
mov dword [ebp - 0x88], 1
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xc0], eax
jmp 0x10045e6c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.10028a0f
mov eax, dword [ebp - 0x108]
and eax, dword [ebp - 0xbc]
jne 0x10045f81
mov dword [ebp - 0x64], 1
jmp 0x10045f85
and dword [ebp - 0x64], 0
mov al, byte [ebp - 0x64]
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 0x108]
and eax, 0x101
je 0x10045f9c
mov byte [ebp - 0x11], 1
push 1
lea ecx, [ebp - 0xf8]
call fcn.100289a7
mov dword [ebp - 4], 5
mov dword [ebp - 0x2c], 0xfffffffa
mov dword [ebp - 0x44], 0
jmp 0x10045fc7
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 1
jge 0x10045fe3
push dword [ebp - 0x44]
lea ecx, [ebp - 0xf8]
call fcn.10028a14
mov dword [eax], 0xe91a
jmp 0x10045fc0
mov dword [ebp - 0x2c], 0
jmp 0x10045ff3
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jg 0x10046012
mov byte [ebp - 0x20], 0
push 0
push 0x6eb9
lea eax, [ebp - 0x20]
push eax
call fcn.1004907f
add esp, 0xc
jmp 0x10045fec
push 1
push 0x3df7
lea eax, [ebp - 0x2c]
push eax
call fcn.100458e3
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf8]
call fcn.10028a0f
mov al, byte [ebp - 0x11]
jmp 0x1004603b
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret