Function at 0x44c970
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], edi
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44c985
sub esi, edx
sar esi, 1
test ecx, ecx
je 0x44cf80
test esi, esi
je 0x44cf80
push ebx
mov ebx, dword [sym.imp.MSVCR120.dll_wcschr]
push 0x25
push ecx
call ebx
add esp, 8
test eax, eax
je 0x44ca68
lea eax, [esi*2 + 2]
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x44cbbe
push dword [ebp + 8]
lea ecx, [esi + 1]
push ecx
push eax
mov dword [ebp - 0x18], ecx
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
mov edx, dword [ebp - 0x14]
xor eax, eax
add esp, 0xc
xor ecx, ecx
mov word [edx + esi*2], ax
cmp word [edx], ax
je 0x44ca1e
mov eax, edx
lea edi, [ecx + 0x5c]
mov esi, 0x2f
cmp si, word [eax]
jne 0x44ca10
mov word [eax], di
inc ecx
cmp word [edx + ecx*2], 0
lea eax, [edx + ecx*2]
jne 0x44ca08
mov edi, dword [ebp - 0x10]
push 0x25
push edx
call ebx
add esp, 8
test eax, eax
je 0x44ca68
lea ebx, [ebx]
lea esi, [eax + 2]
push 0x25
push esi
call ebx
mov edi, eax
add esp, 8
test edi, edi
je 0x44ca65
push 0x5c
push esi
call ebx
add esp, 8
cmp edi, eax
jb 0x44ca9e
push 0x5c
push esi
call ebx
add esp, 8
test eax, eax
je 0x44ca9e
push 0x25
push edi
call ebx
add esp, 8
test eax, eax
jne 0x44ca30
mov edi, dword [ebp - 0x10]
push ecx
push dword [ebp + 8]
mov ecx, edi
call fcn.0044cf90
test al, al
je 0x44cbbe
mov ecx, edi
call fcn.0044d1e0
mov ecx, edi
mov dword [edi + 0x28], eax
call fcn.0044d440
xor eax, eax
cmp dword [edi + 0x28], 0xffffffff
pop ebx
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x14]
xor ebx, ebx
mov esi, dword [sym.imp.MSVCR120.dll_wcschr]
push 0x25
push edi
call esi
add esp, 8
test eax, eax
je 0x44cabf
cmp eax, edi
je 0x44cabf
mov ebx, eax
sub ebx, edi
sar ebx, 1
push 0x25
push eax
lea edi, [eax + 2]
call esi
mov esi, eax
add esp, 8
test esi, esi
je 0x44cb76
cmp esi, edi
jbe 0x44cae0
mov eax, esi
sub eax, edi
sar eax, 1
add ebx, eax
add esi, 2
push 0x25
push esi
call dword [sym.imp.MSVCR120.dll_wcschr]
mov edi, eax
add esp, 8
cmp esi, edi
jne 0x44caf8
inc ebx
jmp 0x44cb60
test edi, edi
je 0x44cbc9
push 0x5c
push esi
call dword [sym.imp.MSVCR120.dll_wcschr]
add esp, 8
test eax, eax
je 0x44cb1f
cmp edi, eax
jbe 0x44cb1f
mov eax, edi
inc ebx
sub eax, esi
sar eax, 1
add ebx, eax
jmp 0x44cb5e
xor eax, eax
push eax
push eax
push esi
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x44cb50
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44cb34
sub esi, ecx
inc ebx
sar esi, 1
mov eax, 0x25
add ebx, esi
mov word [edi], ax
jmp 0x44cb5e
dec eax
add ebx, eax
mov eax, 0x25
mov word [edi], ax
add edi, 2
mov esi, edi
push 0x25
push esi
call dword [sym.imp.MSVCR120.dll_wcschr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x44cad4
test edi, edi
je 0x44cb94
cmp word [edi], 0
je 0x44cb94
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x44cb83
sub edi, ecx
sar edi, 1
add ebx, edi
inc ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebx*2 + 2]
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
mov esi, eax
add esp, 4
mov dword [ebp - 8], esi
test esi, esi
jne 0x44cbe4
push dword [ebp - 0x14]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
lea ecx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44cbd0
sub esi, ecx
inc ebx
sar esi, 1
add ebx, esi
jmp 0x44cb94
push 0x25
push dword [ebp - 0x14]
xor eax, eax
xor ebx, ebx
mov word [esi], ax
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCR120.dll_wcschr]
mov edi, eax
add esp, 8
test edi, edi
je 0x44cc4f
cmp edi, dword [ebp - 0x14]
je 0x44cc4f
mov ebx, dword [ebp - 0x14]
xor eax, eax
mov ecx, ebx
mov word [edi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44cc14
sub ecx, edx
sar ecx, 1
push ebx
lea eax, [ecx + 1]
push eax
push esi
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x44cc35
sub ebx, ecx
mov eax, 0x25
sar ebx, 1
mov dword [ebp - 4], ebx
mov word [edi], ax
lea eax, [esi + ebx*2]
xor ecx, ecx
push 0x25
push edi
mov dword [ebp - 0xc], eax
lea esi, [edi + 2]
mov word [eax], cx
call dword [sym.imp.MSVCR120.dll_wcschr]
mov edi, eax
add esp, 8
test edi, edi
je 0x44ce2d
cmp edi, esi
jbe 0x44ccce
mov ecx, esi
xor eax, eax
mov word [edi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44cc81
sub ecx, edx
sar ecx, 1
push esi
lea eax, [ecx + 1]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44cca4
sub esi, ecx
mov eax, 0x25
sar esi, 1
mov word [edi], ax
add ebx, esi
mov eax, dword [ebp - 8]
xor ecx, ecx
lea eax, [eax + ebx*2]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], eax
mov word [eax], cx
lea ebx, [edi + 2]
push 0x25
push ebx
call dword [sym.imp.MSVCR120.dll_wcschr]
mov esi, eax
add esp, 8
cmp ebx, esi
jne 0x44ccff
push 0x585088
push 2
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
jmp 0x44ce03
test esi, esi
je 0x44ce8d
push 0x5c
push ebx
call dword [sym.imp.MSVCR120.dll_wcschr]
add esp, 8
cmp esi, eax
jbe 0x44cd84
test eax, eax
je 0x44cd84
mov ecx, edi
xor eax, eax
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44cd25
sub ecx, edx
sar ecx, 1
push edi
lea eax, [ecx + 1]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
lea ecx, [edi + 2]
jmp 0x44cd50
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x44cd50
mov eax, dword [ebp - 4]
sub edi, ecx
mov ecx, dword [ebp - 8]
mov ebx, esi
sar edi, 1
add eax, edi
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov word [eax], cx
mov eax, 0x25
mov word [esi], ax
jmp 0x44ce14
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 4]
push eax
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, eax
test ecx, ecx
jne 0x44cdf1
lea edi, [ebx - 2]
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x44cdb0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44cdb0
sub ecx, edx
sar ecx, 1
push edi
lea eax, [ecx + 1]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x44cdd3
mov eax, dword [ebp - 4]
sub edi, ecx
sar edi, 1
mov ecx, 0x25
add eax, edi
mov word [esi], cx
jmp 0x44ce01
mov eax, dword [ebp - 4]
add eax, ecx
mov ecx, 0x25
mov word [esi], cx
add esi, 2
mov ebx, esi
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov word [eax], cx
push 0x25
push ebx
call dword [sym.imp.MSVCR120.dll_wcschr]
mov ebx, dword [ebp - 4]
mov edi, eax
add esp, 8
test edi, edi
jne 0x44cc73
test esi, esi
je 0x44cede
cmp word [esi], 0
je 0x44cede
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44ce44
sub ecx, edx
sar ecx, 1
push esi
lea eax, [ecx + 1]
push eax
mov eax, dword [ebp - 8]
lea eax, [eax + ebx*2]
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
lea ecx, [esi + 2]
jmp 0x44ce70
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44ce70
sub esi, ecx
sar esi, 1
xor ecx, ecx
lea eax, [esi + ebx]
mov ebx, dword [ebp - 8]
mov word [ebx + eax*2], cx
jmp 0x44cee1
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44ce92
mov ebx, dword [ebp - 4]
sub ecx, edx
sar ecx, 1
push edi
lea eax, [ecx + 1]
push eax
mov eax, dword [ebp - 8]
lea eax, [eax + ebx*2]
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
add edi, 2
lea ecx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x44cec0
sub edi, ecx
sar edi, 1
xor ecx, ecx
lea eax, [ebx + edi]
mov ebx, dword [ebp - 8]
mov word [ebx + eax*2 + 2], cx
jmp 0x44cee1
mov ebx, dword [ebp - 8]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.MSVCR120.dll_free]
call esi
push dword [ebp - 0x20]
call dword [sym.imp.MSVCR120.dll_malloc]
mov edi, eax
add esp, 8
test edi, edi
jne 0x44cf0f
push ebx
call esi
add esp, 4
xor al, al
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov eax, dword [eax + 4]
test eax, eax
je 0x44cf3b
push eax
call esi
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [eax + 4], 0
jmp 0x44cf3e
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], ebx
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x44cf44
sub ebx, ecx
sar ebx, 1
lea eax, [ebx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x44cf70
push eax
call esi
add esp, 4
mov dword [ebx + 0xc], 0
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0xc], edi
mov edi, ebx
mov dword [edi + 0x10], eax
jmp 0x44ca7b
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4