Function at 0x1002b9fb
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x10059719
call fcn.10058864
sub esp, 0x94
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x48], cl
test cl, cl
je 0x1002ba4a
mov esi, dword [ebp + 0x18]
mov dword [esi], 0x18
jmp 0x1002ba41
mov dword [ebp - 0x20], 0xfffffffd
mov byte [ebp - 0x2d], bl
cmp byte [ebp - 0x2d], bl
je 0x1002ba3c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov eax, dword [ebp - 0x20]
dec dword [esi]
cmp dword [esi], ebx
jne 0x1002ba25
jmp 0x1002bf47
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x1c], 0x3bfa32a1
mov dword [ebp - 0x1c], 0x3531
push 3
mov dword [ebp - 0x1c], 0xa13b2885
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x14], ebx
pop esi
jmp 0x1002ba87
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x88], ebx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jl 0x1002ba7a
mov dword [ebp - 0x14], ebx
jmp 0x1002bab8
mov dword [ebp - 0x18], 0xb96ca2cb
mov dword [ebp - 0x18], 0xffffffe3
jmp 0x1002baaf
mov byte [ebp - 0x2f], bl
lea ecx, [ebp - 0x2f]
call fcn.1002bfd8
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x1b
jne 0x1002baa1
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 8
jg 0x1002ba91
mov ecx, dword [ebp - 0x88]
xor edx, edx
mov eax, dword [ebp - 0x14]
cmp eax, ecx
mov eax, dword [ebp - 0x84]
setle dl
xor ecx, ecx
cmp eax, edx
setne cl
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x1c]
add eax, 0xffffde5d
add ecx, eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
call fcn.1002df52
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
jmp 0x1002bb17
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x94], ebx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jl 0x1002bb0a
mov byte [ebp - 0x2e], bl
lea edx, [ebp - 0x2e]
call fcn.1002dc98
mov dword [ebp - 0x18], ebx
jmp 0x1002bb4d
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x14], ebx
jmp 0x1002bb45
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x94], 0xa9ef72d4
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jl 0x1002bb34
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 2
jle 0x1002bb2c
mov eax, dword [ebp - 0x44]
xor edi, edi
inc edi
movzx eax, word [eax]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x64], 0xf665683c
mov dword [ebp - 0x7c], 0x8b166c19
mov dword [ebp - 0x54], 0x1f6f49c2
mov dword [ebp - 0x74], 0x8551b32e
mov dword [ebp - 0x78], 0xfffffffc
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x34], 0x20410224
mov dword [ebp - 0x34], 0xae89405d
mov dword [ebp - 0x18], ebx
jmp 0x1002bba9
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0xa0], 6
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], esi
jl 0x1002bb98
mov dword [ebp - 0x18], ebx
jmp 0x1002bbbd
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x4c], ebx
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], edi
jl 0x1002bbb3
push ecx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x64]
call fcn.1002d54f
inc dword [ebp - 0x4c]
lea eax, [ebp - 0x44]
push eax
push ebx
lea edx, [ebp - 0x50]
mov ecx, 0x1485
call fcn.1002e610
mov dword [ebp - 0x14], 0x4a0d
add esp, 0x18
mov dword [ebp - 0x40], 0xeb4c8f0d
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0x14a9c79e
mov dword [ebp - 0x18], ebx
jmp 0x1002bc20
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x70], 0x4dcc80fc
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], esi
jl 0x1002bc12
mov dword [ebp - 0x38], 0x6d66
cmp dword [ebp - 0x38], 0x6fb8
jle 0x1002bc90
mov esi, ebx
mov dword [ebp - 0x3c], ebx
mov edi, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x2c], ebx
lea eax, [edi + esi]
mov edi, 0x5dfa
mov dword [ebp - 0x2c], eax
mov esi, eax
mov eax, esi
mov ecx, 0x10072098
cdq
push edx
push eax
call fcn.10013ec4
add esi, ebx
dec edi
jne 0x1002bc4f
mov esi, dword [ebp - 0x3c]
inc ebx
mov edi, dword [ebp - 0x18]
cmp ebx, 0x2a04
jl 0x1002bc42
inc edi
mov dword [ebp - 0x18], edi
push 0
pop ebx
cmp edi, 0x45ff
jl 0x1002bc3f
inc esi
mov dword [ebp - 0x3c], esi
cmp esi, 0x6d3c
jl 0x1002bc3a
xor edi, edi
inc edi
mov dword [ebp - 0x18], ebx
jmp 0x1002bc9f
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x60], edi
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 2
jl 0x1002bc95
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x38], 0x6b7d
jge 0x1002bcc0
mov edx, str.ontw_mpnw_kqdh_edxelvn
mov ecx, 0x10072098
call fcn.1001684d
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], ebx
jne 0x1002bccc
dec dword [ebp - 0x60]
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x5c], ebx
je 0x1002bcdb
mov ecx, edi
cmp dword [ebp - 0x68], ebx
jne 0x1002bcdd
mov ecx, ebx
mov eax, dword [ebp - 0x6c]
xor edx, edx
add ecx, eax
mov eax, dword [ebp - 0x20]
cmp ecx, eax
setg dl
sub edx, dword [ebp - 0x14]
neg edx
sbb edx, edx
inc edx
add edx, dword [ebp - 0x40]
sub edx, dword [ebp - 0x20]
neg edx
sbb edx, edx
inc edx
jne 0x1002bd08
mov edx, edi
cmp dword [ebp - 0x68], ebx
jne 0x1002bd0a
mov edx, ebx
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp edx, eax
setne cl
imul eax, ecx, 0x8009
xor ecx, ecx
cmp eax, 5
setle cl
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x14], edi
jg 0x1002bd5b
mov ecx, 0x6d9e96b
mov dword [ebp - 0x2c], 0x2e7eb665
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x70], ecx
mov eax, dword [ebp - 0x1c]
inc dword [ebp - 0x1c]
cmp eax, ecx
mov eax, edi
cmove eax, ebx
mov dword [ebp - 0x2c], eax
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jle 0x1002bd35
mov ecx, ebx
mov dword [ebp - 0x18], ebx
cmp ecx, 2
jae 0x1002bf3d
mov dword [ebp - 0x1c], 0xfffffff8
mov dword [ebp - 0x40], 0x28cb
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x20], 0xa47b6c41
mov dword [ebp - 0x20], 0x1a4b
cmp dword [ebp - 0x20], 0x1d3b
jle 0x1002bdc1
mov esi, ebx
mov edi, ebx
mov ecx, edi
mov eax, esi
sar eax, cl
mov ecx, 0x10072098
cdq
push edx
push eax
call fcn.10013ec4
inc edi
cmp edi, 0x2d19
jl 0x1002bd99
inc esi
cmp esi, 0x1abd
jl 0x1002bd97
xor edi, edi
inc edi
mov dword [ebp - 4], 2
cmp dword [ebp - 0x20], 0x1767
jge 0x1002bde0
mov edx, str.twcd_dipfpgr_hrnqosllk_dmoptkao_antw_ppzagdy_vfii_nkm_szpav_dgsclbaot_tacbckt_rvytz_ioyywx_kykh
mov ecx, 0x10072098
call fcn.1001684d
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], ebx
jmp 0x1002be44
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x24], 7
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x1002be36
mov dword [ebp - 0x24], 0xfffffff2
jmp 0x1002bf02
mov dword [ebp - 0x14], 0x9f7fd1e8
mov dword [ebp - 0x34], 0x4145c174
mov dword [ebp - 0x3c], 0xfffffff8
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x20], 5
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x14]
neg eax
sbb eax, eax
inc eax
cmp eax, dword [ebp - 0x14]
jne 0x1002be8b
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov eax, dword [ebp - 0x24]
cmp ecx, eax
setg dl
xor ebx, ebx
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
cmp eax, ecx
mov eax, dword [ebp - 0x1c]
setge bl
xor edx, edx
cmp ebx, eax
mov eax, dword [ebp - 0x1c]
setle dl
xor ecx, ecx
cmp edx, eax
setg cl
xor ebx, ebx
cmp ecx, dword [ebp - 0x14]
je 0x1002beca
mov ecx, ebx
cmp dword [ebp - 0x40], ebx
je 0x1002becc
mov ecx, edi
mov eax, dword [ebp - 0x14]
add eax, ecx
cmp eax, 6
je 0x1002bed9
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
imul eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
mov eax, dword [ebp - 0x3c]
imul eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0xc
jge 0x1002be55
lea eax, [ebp - 0x25]
mov byte [ebp - 0x25], bl
push eax
mov edx, 0x626d
call fcn.1002e85b
mov eax, dword [ebp - 0x18]
mov dl, 0x1e
mov esi, dword [ebp - 0x44]
pop ecx
mov cl, byte [eax + esi]
call fcn.10033d4e
mov ecx, dword [ebp - 0x18]
mov byte [ecx + esi], al
inc ecx
mov dword [ebp - 0x18], ecx
jmp 0x1002bd60
mov eax, dword [ebp - 0x58]
mov cx, word [ebp - 0x50]
mov word [eax], cx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret