Function at 0x44fce0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1124
call fcn.004b3f40
mov eax, dword [0x52de04]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x52be94], 0
jne 0x44ff92
push str.imageFormatslt
call fcn.0041c8c0
lea edx, [ebp - 0x108]
add esp, 4
sub edx, eax
nop dword [eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x44fd20
push esi
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00415280
push 0x1000
lea eax, [ebp - 0x1108]
push 0
push eax
call fcn.004b90a0
add esp, 0x10
mov dword [0x52be94], 0
cmp dword [0x52be98], 0x10
mov eax, 0x52be84
cmovae eax, dword [0x52be84]
push 0x1000
mov byte [eax], 0
lea eax, [ebp - 0x1108]
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edi, [ebp - 0x1108]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x44fd91
sub edi, ecx
mov ecx, dword [0x52be98]
mov dword [ebp - 0x1124], ecx
cmp edi, ecx
ja 0x44fdd9
cmp ecx, 0x10
mov dword [0x52be94], edi
push edi
lea eax, [ebp - 0x1108]
mov esi, 0x52be84
cmovae esi, dword [0x52be84]
push eax
push esi
call fcn.004b8680
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x44fec6
cmp edi, 0x7fffffff
ja 0x44ffa0
mov esi, edi
or esi, 0xf
push ebx
cmp esi, 0x7fffffff
jbe 0x44fe0a
mov eax, connect
mov esi, closesocket
push eax
call fcn.004020c0
add esp, 4
mov ebx, eax
jmp 0x44fe62
mov edx, ecx
mov eax, closesocket
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x44fe30
mov eax, connect
mov esi, closesocket
push eax
call fcn.004020c0
add esp, 4
mov ebx, eax
jmp 0x44fe62
lea eax, [ecx + edx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x44fe4f
push eax
call fcn.004020c0
add esp, 4
mov ebx, eax
jmp 0x44fe62
test eax, eax
je 0x44fe60
push eax
call fcn.0049c406
add esp, 4
mov ebx, eax
jmp 0x44fe62
xor ebx, ebx
push edi
lea eax, [ebp - 0x1108]
mov dword [0x52be94], edi
push eax
push ebx
mov dword [0x52be98], esi
call fcn.004b8680
mov eax, dword [ebp - 0x1124]
add esp, 0xc
mov byte [ebx + edi], 0
cmp eax, 0x10
jb 0x44febf
mov edx, dword [0x52be84]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x44feb5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44ffa5
push ecx
push edx
call fcn.004b3acc
add esp, 8
mov dword [0x52be84], ebx
pop ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x1108]
push eax
lea eax, [ebp - 0x1120]
push str._s__s
push eax
call fcn.00415150
add esp, 0x10
lea eax, [ebp - 0x1120]
cmp dword [ebp - 0x110c], 0x10
cmovae eax, dword [ebp - 0x1120]
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0x4fd8ac
call fcn.0041c8c0
push eax
push 0x504ac0
call fcn.00412960
add esp, 0xc
pop edi
pop esi
test eax, eax
je 0x44ff5c
cmp dword [ebp - 0x110c], 0x10
lea ecx, [ebp - 0x1120]
mov eax, 0x52be84
cmovae ecx, dword [ebp - 0x1120]
cmp dword [0x52be98], 0x10
push ecx
cmovae eax, dword [0x52be84]
push eax
push str.just_set_PATH_from_n_n_s_n_nto_n_n_s
call fcn.004153c0
add esp, 0xc
mov ecx, dword [ebp - 0x110c]
cmp ecx, 0x10
jb 0x44ff92
mov edx, dword [ebp - 0x1120]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x44ff88
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44ffa5
push ecx
push edx
call fcn.004b3acc
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3f28
mov esp, ebp
pop ebp
ret
call fcn.00402bf0
call fcn.004c342f
int3