Function at 0x104553e
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x104556f
call fcn.0103ab81
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.01036505
sub esp, 0xffffffec
or eax, 0xffffffff
jmp 0x10455db
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x10455cc
push 0x3d
push esi
call fcn.01045894
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x10455cc
cmp esi, eax
je 0x10455cc
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x1069164]
sete cl
cmp eax, dword [0x1069168]
mov dword [ebp - 8], ecx
jne 0x10455b2
mov edi, eax
call fcn.010454e1
mov dword [0x1069164], eax
cmp eax, ebx
jne 0x1045616
cmp dword [ebp + 0xc], ebx
je 0x10455df
cmp dword [0x106916c], ebx
je 0x10455df
call fcn.01044db1
test eax, eax
je 0x1045616
call fcn.0103ab81
mov dword [eax], 0x16
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
jne 0x1045783
push 4
call fcn.0103af85
cmp eax, ebx
pop ecx
mov dword [0x1069164], eax
je 0x10455d7
mov dword [eax], ebx
cmp dword [0x106916c], ebx
jne 0x1045616
push 4
call fcn.0103af85
cmp eax, ebx
pop ecx
mov dword [0x106916c], eax
je 0x10455d7
mov dword [eax], ebx
mov esi, dword [0x1069164]
cmp esi, ebx
mov dword [ebp - 0x14], esi
je 0x10455d7
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
call fcn.01045494
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x104568a
cmp dword [esi], ebx
je 0x104568a
lea esi, [esi + edi*4]
push dword [esi]
call fcn.01034e45
cmp dword [ebp - 8], ebx
pop ecx
jne 0x1045667
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x10456dd
mov eax, dword [esi + 4]
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
inc edi
lea esi, [eax + edi*4]
cmp dword [esi], ebx
jne 0x104565b
cmp edi, 0x3fffffff
jae 0x10456dd
push 4
push edi
push dword [0x1069164]
call fcn.0103b058
add esp, 0xc
cmp eax, ebx
je 0x10456dd
jmp 0x10456d8
cmp dword [ebp - 8], ebx
jne 0x1045775
cmp edi, ebx
jge 0x1045699
neg edi
lea eax, [edi + 2]
cmp eax, edi
jl 0x10455d7
cmp eax, 0x3fffffff
jae 0x10455d7
push eax
push 4
push dword [0x1069164]
call fcn.0103b058
sub esp, 0xfffffff4
cmp eax, ebx
je 0x10455d7
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x1069164], eax
cmp dword [ebp + 0xc], ebx
je 0x104575a
mov esi, dword [ebp - 4]
push 1
push esi
call fcn.0103d380
inc eax
pop ecx
inc eax
push eax
call fcn.0103afc5
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x104575a
push esi
push esi
call fcn.0103d380
inc eax
pop ecx
inc eax
push eax
push edi
call fcn.0103d315
sub esp, 0xfffffff4
test eax, eax
je 0x1045723
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01036409
sub esp, 0xffffffec
mov ecx, dword [ebp - 8]
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x1045753
or dword [ebp - 0x10], 0xffffffff
call fcn.0103ab81
mov dword [eax], 0x2a
push edi
call fcn.01034e45
pop ecx
cmp dword [ebp - 8], ebx
je 0x104576d
push dword [ebp - 4]
call fcn.01034e45
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
mov eax, dword [ebp - 0x10]
jmp 0x10455da
push dword [ebp - 4]
call fcn.01034e45
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
xor eax, eax
jmp 0x10455da