Function at 0x10052b70
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x1008ce1d
call fcn.1008b538
sub esp, 0x74
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x18], 0x57fd5464
mov edi, ecx
inc esi
push esi
lea ecx, [ebp - 0x4c]
call fcn.10019794
xor ebx, ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
jmp 0x10052bb2
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x4c]
mov dword [eax + ecx*4], 0x9dfc
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], esi
jl 0x10052ba2
mov dword [ebp - 0x18], ebx
jmp 0x10052c35
mov dword [ebp - 0x1c], 0xfffffff7
cmp dword [ebp - 0x18], ebx
jne 0x10052c3b
cmp dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 0x4c]
je 0x10052bd6
mov edx, esi
cmp dword [ecx], ebx
jne 0x10052bd8
mov edx, ebx
xor eax, eax
cmp dword [ecx], edx
setge al
xor edx, edx
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
setg dl
xor eax, eax
cmp edx, 0xfffffff9
setl al
cmp eax, dword [ebp - 0x1c]
je 0x10052c06
mov eax, esi
cmp dword [ebp - 0x1c], ebx
jne 0x10052c08
mov eax, ebx
mov ecx, 0xffffb521
sub ecx, eax
add ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x4c]
imul ecx, dword [eax]
test ecx, ecx
jne 0x10052c23
mov edx, ebx
cmp dword [ebp - 0x1c], ebx
je 0x10052c25
mov edx, esi
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
cmp edx, eax
setg cl
mov dword [ebp - 0x28], ecx
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0xfffffff3
jne 0x10052bbc
lea ecx, [ebp - 0x4c]
call fcn.10019816
push edi
push 0x3186
push esi
call fcn.1004cb2e
mov dword [ebp - 0x18], 0xfb0b0297
add esp, 0xc
mov dword [ebp - 0x1c], 0xd9dcee34
mov dword [ebp - 0x34], ebx
cmp dword [ebp - 0x18], ebx
jne 0x10052e10
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov eax, dword [ebp - 0x18]
cmp ecx, eax
setl dl
sub edx, dword [ebp - 0x18]
imul edx, dword [ebp - 0x18]
test edx, edx
jne 0x10052e10
mov dword [ebp - 0x28], 0x1b68dee2
mov dword [ebp - 0x20], 0xfffffffc
mov dword [ebp - 0x14], 0xfffffff7
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], ebx
je 0x10052cb4
mov dword [ebp - 0x1c], 0x70a3267e
dec dword [ebp - 0x1c]
jmp 0x10052cc3
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x10052cc3
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x69ac
jle 0x10052dd2
mov dword [ebp - 0x14], 0x8131dda8
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x24], 0xa450c197
push 2
call fcn.10019794
push esi
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], ebx
call fcn.10019794
mov dword [ebp - 0x14], ebx
jmp 0x10052d0f
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x64]
mov dword [eax + ecx*4], 9
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jl 0x10052cff
mov dword [ebp - 0x14], ebx
jmp 0x10052d2a
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x58]
mov dword [eax + ecx*4], 4
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jl 0x10052d1a
mov dword [ebp - 0x14], ebx
jmp 0x10052d42
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x2c], 6
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jl 0x10052d34
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, esi
cmp dword [ebp - 0x14], ebx
jne 0x10052d56
mov eax, ebx
cmp eax, dword [ebp - 0x18]
jl 0x10052d5e
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
test eax, eax
mov eax, dword [ebp - 0x64]
sets cl
xor edx, edx
cmp ecx, 0x64e7
setge dl
mov dword [eax], edx
mov dword [ebp - 0x14], edx
xor edx, edx
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x1c]
imul esi, dword [eax]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
mov eax, dword [ebp - 0x20]
setge dl
sub eax, edx
sub eax, esi
mov dword [ebp - 0x20], eax
jne 0x10052da6
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x58]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], 0xe54384f3
call fcn.10019816
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.10019816
xor esi, esi
inc esi
jmp 0x10052e37
mov dword [ebp - 0x28], 0xe4a53e8a
xor edx, edx
mov dword [ebp - 0x1c], 0xfffffff6
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
mov eax, dword [ebp - 0x28]
setge dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [ebp - 0x18]
setle cl
xor edx, edx
cmp eax, ecx
mov eax, dword [ebp - 0x14]
setl dl
xor ecx, ecx
cmp eax, edx
setge cl
mov dword [ebp - 0x20], ecx
jmp 0x10052e37
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x10052e37
push ebx
push 0x2602
push 0x2165
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
push edi
call fcn.10033f7c
mov dword [ebp - 0x14], 0xb7c7ce53
mov edi, eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x34], 2
pop ecx
mov dword [ebp - 0x24], 0x6b43d271
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x34], 6
push 3
call fcn.10019794
push 3
mov dword [ebp - 0x18], ebx
pop edx
jmp 0x10052e89
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x40], 0xfffffff7
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], edx
jl 0x10052e7b
mov dword [ebp - 0x18], ebx
jmp 0x10052ea3
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x70]
mov dword [eax + ecx*4], 0xfffffffb
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], edx
jl 0x10052e93
mov dword [ebp - 0x14], ebx
jmp 0x10052ebe
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + eax*4 - 0x40]
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x40], ecx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jle 0x10052ead
mov dword [ebp - 0x14], 2
cmp dword [ebp - 0x14], ebx
jl 0x10052fe0
mov eax, 0xaaf0a9b2
mov dword [ebp - 0x18], 5
mov dword [ebp - 0x20], 0xfffffff7
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x34], 0xe197e7c1
mov dword [ebp - 0x28], 0xd9964374
mov dword [ebp - 0x1c], 4
mov eax, dword [ebp - 0x14]
cmp dword [ebp + eax*4 - 0x40], ebx
jne 0x10052fe0
cmp dword [ebp - 0x3c], ebx
je 0x10052f50
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 8]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], ebx
je 0x10052f2f
mov ecx, esi
cmp dword [ebp - 0x24], ebx
jne 0x10052f31
mov ecx, ebx
dec dword [ebp - 0x1c]
xor edx, edx
mov eax, dword [ebp - 0x20]
cmp ecx, eax
mov eax, dword [ebp - 0x1c]
setg dl
xor ecx, ecx
cmp eax, edx
setne cl
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], ebx
jne 0x10052f5b
mov eax, dword [ebp - 0x14]
cmp dword [ebp + eax*4 - 0x40], ebx
jne 0x10052f5b
mov esi, ebx
mov eax, dword [ebp - 0x14]
xor edx, edx
mov ecx, dword [ebp + eax*4 - 0x40]
mov eax, dword [ebp - 0x18]
cmp eax, ecx
mov eax, dword [ebp - 0x14]
setl dl
xor ecx, ecx
imul edx, esi
mov eax, dword [ebp + eax*4 - 0x40]
cmp eax, edx
mov eax, dword [ebp - 0x30]
setl cl
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp - 0x34]
setl dl
xor ecx, ecx
cmp edx, eax
setl cl
neg ecx
je 0x10052fa8
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], 0
je 0x10052fcf
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x10052fcf
mov dword [ebp - 0x1c], ebx
jmp 0x10052fc9
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], 0
je 0x10052fc3
push ebx
push 0x229f
push ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 2
jle 0x10052fad
dec dword [ebp - 0x14]
mov eax, 0xaaf0a9b2
push 1
pop esi
jns 0x10052ed9
lea ecx, [ebp - 0x70]
call fcn.10019816
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret