Function at 0x43fee0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x110
lea edx, [ebp - 0x118]
mov eax, dword [0x4f195c]
xor eax, ebp
push 0x105
push edx
mov dword [ebp - 0x10], eax
push str.FOR_FMT_TERMINATOR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edx, eax
test edx, edx
jbe 0x43ff1e
cmp edx, 0x105
jae 0x43ff1e
inc edx
jmp 0x43ff25
mov byte [ebp - 0x118], 0
xor eax, eax
lea ebx, [ebp - 0x118]
mov dword [0x4fb64c], eax
mov dword [0x4fb644], eax
mov dword [0x4fb648], eax
mov dword [0x4fb640], 1
test edx, edx
je 0x440131
cmp byte [ebp - 0x118], 0
je 0x44011c
mov esi, 0x4c6df0
lea edi, [ebp - 0x118]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x43ff86
test dl, dl
je 0x43ff82
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x43ff86
add edi, 2
add esi, 2
test dl, dl
jne 0x43ff66
xor eax, eax
jmp 0x43ff8b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4400fd
mov esi, 0x4c6dec
lea edi, [ebp - 0x118]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x43ffbe
test dl, dl
je 0x43ffba
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x43ffbe
add edi, 2
add esi, 2
test dl, dl
jne 0x43ff9e
xor eax, eax
jmp 0x43ffc3
sbb eax, eax
or eax, 1
test eax, eax
je 0x4400de
mov esi, str.CRLF
lea edi, [ebp - 0x118]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x43fff6
test dl, dl
je 0x43fff2
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x43fff6
add edi, 2
add esi, 2
test dl, dl
jne 0x43ffd6
xor eax, eax
jmp 0x43fffb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4400bf
push 0x3b
lea eax, [ebp - 0x118]
push eax
call fcn.004aa0f0
mov esi, eax
add esp, 8
test esi, esi
je 0x440352
push 0x4c6e00
lea eax, [ebp - 0x118]
push eax
call fcn.004aa220
mov edx, eax
lea eax, [ebp - 0x118]
add esp, 8
cmp eax, edx
je 0x44033e
push 0x4c6dfc
lea eax, [ebp - 0x118]
push eax
call fcn.004aa220
mov edx, eax
lea eax, [ebp - 0x118]
add esp, 8
cmp eax, edx
je 0x44032a
push str.CRLF_
lea eax, [ebp - 0x118]
push eax
call fcn.004aa220
mov edx, eax
lea eax, [ebp - 0x118]
add esp, 8
cmp eax, edx
je 0x44014b
xor eax, eax
push eax
push 0x60
mov dword [0x4fb64c], eax
mov dword [0x4fb644], eax
mov dword [0x4fb648], eax
call fcn.00464d00
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
cmp ecx, dword [0x4f195c]
jne 0x440146
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [0x4fb64c], 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
cmp ecx, dword [0x4f195c]
jne 0x440146
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [0x4fb64c], 6
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
cmp ecx, dword [0x4f195c]
jne 0x440146
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [0x4fb64c], 7
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
cmp ecx, dword [0x4f195c]
jne 0x440146
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
cmp ecx, dword [0x4f195c]
jne 0x440146
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
cmp ecx, dword [0x4f195c]
jne 0x440146
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
call fcn.004a91cc
mov dword [0x4fb64c], 8
mov edi, 8
lea ebx, [esi + 1]
push 0x3a
push ebx
call fcn.004aa0f0
mov esi, eax
add esp, 8
test esi, esi
je 0x440320
push 0x4c6e10
push ebx
call fcn.004aa220
add esp, 8
cmp ebx, eax
je 0x440316
push 0x4c6e0c
push ebx
call fcn.004aa220
add esp, 8
cmp ebx, eax
je 0x44030c
push str.CRLF:
push ebx
call fcn.004aa220
add esp, 8
cmp ebx, eax
jne 0x44008a
mov eax, 8
lea ebx, [esi + 1]
cmp eax, edi
jne 0x4401c5
mov eax, 0
cmp byte [ebx], 0
je 0x44008a
xor edx, edx
mov dword [ebp - 0x11c], eax
xor ecx, ecx
movsx eax, byte [ebx]
test eax, eax
je 0x440301
test ecx, ecx
je 0x440228
cmp ecx, 2
je 0x440228
cmp ecx, 1
jne 0x440201
mov edi, eax
and edi, 0xfffffffe
cmp edi, 0x2c
je 0x44029e
jmp 0x44020a
cmp ecx, 3
jne 0x44008a
cmp eax, 0x2c
je 0x4402e5
lea edi, [eax - 0x30]
cmp edi, 9
ja 0x44008a
lea esi, [esi + esi*4]
lea esi, [eax + esi*2 - 0x30]
jmp 0x440235
lea esi, [eax - 0x30]
cmp esi, 9
ja 0x44008a
inc ecx
inc ebx
cmp edx, 0x40
jl 0x4401d8
mov eax, dword [ebp - 0x11c]
cmp byte [ebx], 0
jne 0x44008a
movsx ebx, byte [ebx - 1]
cmp ebx, 0x2c
je 0x44008a
cmp ebx, 0x2d
je 0x44008a
cmp ecx, 1
je 0x4402b5
cmp esi, dword [edx*4 + 0x4fb240]
jl 0x44008a
mov dword [edx*4 + 0x4fb340], esi
inc edx
mov dword [0x4fb644], eax
mov dword [0x4fb648], edx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
cmp ecx, dword [0x4f195c]
jne 0x440146
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [edx*4 + 0x4fb240], esi
cmp eax, 0x2d
jne 0x44020a
mov ecx, 2
jmp 0x440235
mov dword [edx*4 + 0x4fb240], esi
mov dword [edx*4 + 0x4fb340], esi
inc edx
mov dword [0x4fb644], eax
mov dword [0x4fb648], edx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
cmp ecx, dword [0x4f195c]
jne 0x440146
jmp 0x4400b7
cmp esi, dword [edx*4 + 0x4fb240]
jl 0x44008a
mov dword [edx*4 + 0x4fb340], esi
inc edx
xor ecx, ecx
jmp 0x440235
mov eax, dword [ebp - 0x11c]
jmp 0x44024a
mov eax, 6
jmp 0x4401b9
mov eax, 7
jmp 0x4401b9
mov eax, 7
jmp 0x4401bc
mov dword [0x4fb64c], 6
mov edi, 6
jmp 0x44015a
mov dword [0x4fb64c], 7
mov edi, 7
jmp 0x44015a
xor edi, edi
jmp 0x44015d