Function at 0x10039cee
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x1005c848
call fcn.1005ab18
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x28], 0x1ee8
xor edi, edi
cmp dword [ebp - 0x28], 0x202e
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], edx
jle 0x10039d7d
mov esi, edi
mov dword [ebp - 0x24], edi
mov ebx, edi
mov dword [ebp - 0x20], edi
mov eax, esi
mov esi, edi
cdq
idiv ebx
mov ebx, edx
mov ecx, esi
mov eax, ebx
shl eax, cl
lea ecx, [ebp - 0x60]
cdq
push edx
push eax
call fcn.10001a65
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10039d44
mov eax, dword [eax]
push eax
call fcn.10042c54
pop ecx
push edi
push 1
lea ecx, [ebp - 0x60]
call fcn.100023f4
inc esi
cmp esi, 0x2143
jl 0x10039d29
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
inc ebx
mov dword [ebp - 0x20], ebx
cmp ebx, 0x569b
jl 0x10039d20
inc esi
mov dword [ebp - 0x24], esi
cmp esi, 0xf6e
jl 0x10039d1b
cmp dword [ebp - 0x28], 0x1d43
jge 0x10039d91
push str.plazewd_hfbjxplyj_vbe_kpwmg_pbwi_iuifzek_bwgbngmu_ovadeo_emlphzege_slowl
call fcn.10042c54
pop ecx
or dword [ebp - 4], 0xffffffff
cmp byte [ebp + 0x30], 0
je 0x10039eda
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x1c], edi
call fcn.10038a2e
mov edx, dword [ebp + 0x24]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 2
call fcn.10038a2e
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x44]
sub ecx, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x48]
sar ecx, 2
sar eax, 2
mov dword [ebp - 0x14], edi
cmp eax, ecx
jbe 0x10039e13
lea eax, [ebp - 0x48]
mov edx, 0x51f4
push eax
lea eax, [ebp - 0x14]
xor cl, cl
push 0x716e
push eax
call fcn.1003a453
add esp, 0xc
lea eax, [ebp - 0x3c]
mov edx, 0x676d
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.1003be85
add esp, 0xc
jmp 0x10039e3f
push 0x511e
push ecx
lea eax, [ebp - 0x14]
push eax
push 1
lea edx, [ebp - 0x3c]
call fcn.100398a3
add esp, 0x10
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x14]
push eax
sub esp, 0xc
call fcn.1003990d
add esp, 0x10
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x18], edi
jle 0x10039ec0
test edi, edi
jne 0x10039ec0
push 1
lea eax, [ebp - 0x1c]
mov edx, 0x388e
push eax
push 0x76d7
push 1
push 0x528e
push 1
lea eax, [ebp - 0x3c]
push eax
push 0x17b4
lea eax, [ebp - 0x18]
push 0x61c4
push eax
lea ecx, [ebp - 0x48]
call fcn.10039aaf
mov esi, dword [ebp - 0x18]
add esp, 0x28
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + esi*4]
mov eax, dword [ebp - 0x3c]
cmp ecx, dword [eax + esi*4]
jge 0x10039eb4
push 0x6e33
push 1
lea eax, [ebp - 0x1c]
mov edx, 0x632a
push eax
push 1
push 0x7e62
mov cl, 1
call fcn.10039277
add esp, 0x14
mov edi, dword [ebp - 0x1c]
inc esi
mov dword [ebp - 0x18], esi
cmp esi, dword [ebp - 0x14]
jl 0x10039e48
mov eax, dword [ebp + 0x2c]
lea ecx, [ebp - 0x3c]
mov dword [eax], edi
call fcn.1003c7d9
lea ecx, [ebp - 0x48]
call fcn.1003c7d9
jmp 0x10039fde
mov dword [ebp - 0x28], 0xe00
cmp dword [ebp - 0x28], 0x1051
jle 0x10039f2b
mov esi, edi
mov ebx, edi
mov dword [ebp - 0x30], edi
mov ecx, edi
lea eax, [ebx + esi]
sar eax, cl
mov ecx, 0x10075eb8
cdq
push edx
push eax
call fcn.10001edd
inc edi
cmp edi, 0x3e06
jl 0x10039ef1
inc ebx
push 0
pop edi
cmp ebx, 0x43e8
jl 0x10039eee
inc esi
cmp esi, 0x4ee7
jl 0x10039eec
push edi
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [ebp - 4], 4
cmp dword [ebp - 0x28], 0xbb8
jge 0x10039f68
mov edx, str.apmxkbcqz_czj_kajbffk_vwzl
mov ecx, 0x10075eb8
call fcn.10003d9f
jmp 0x10039f68
mov eax, dword [ebp + 0x1c]
cmp dword [eax], edi
jne 0x10039fba
mov eax, dword [ebp + 0x34]
mov esi, dword [ebp - 0x2c]
mov eax, dword [eax]
cmp dword [eax + 4], edi
jne 0x10039f87
mov eax, dword [esi]
cmp dword [eax + 8], edi
jne 0x10039f87
mov edx, edi
jmp 0x10039f8a
xor edx, edx
inc edx
mov ebx, dword [ebp + 0x28]
xor ecx, ecx
mov esi, dword [esi]
mov eax, dword [ebx]
cmp eax, edx
mov eax, dword [ebp + 0x34]
setle cl
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
sub eax, ecx
xor ecx, ecx
cmp eax, dword [esi]
mov eax, dword [ebp + 0x20]
setne cl
xor edx, edx
cmp dword [esi + 8], ecx
setg dl
cmp edx, dword [eax]
jle 0x10039fbd
jmp 0x10039fc0
mov ebx, dword [ebp + 0x28]
xor edi, edi
inc edi
mov eax, dword [ebp + 0x10]
xor edx, edx
mov eax, dword [eax]
sub edi, dword [eax + 4]
mov eax, dword [ebx]
cmp edi, 0xfffffff8
setle dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [ebp + 0x18]
sete cl
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret