Function at 0x10013210
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 [0x10234e38]
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 0x1001324e
cmp edx, 0x105
jae 0x1001324e
inc edx
jmp 0x10013255
mov byte [ebp - 0x118], 0
xor eax, eax
lea ebx, [ebp - 0x118]
mov dword [0x1024042c], eax
mov dword [0x10240424], eax
mov dword [0x10240428], eax
mov dword [0x10240420], 1
test edx, edx
je 0x10013488
cmp byte [ebp - 0x118], 0
je 0x1001346c
mov esi, 0x1020d23c
lea edi, [ebp - 0x118]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x100132b6
test dl, dl
je 0x100132b2
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x100132b6
add edi, 2
add esi, 2
test dl, dl
jne 0x10013296
xor eax, eax
jmp 0x100132bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x10013446
mov esi, 0x1020d238
lea edi, [ebp - 0x118]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x100132ee
test dl, dl
je 0x100132ea
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x100132ee
add edi, 2
add esi, 2
test dl, dl
jne 0x100132ce
xor eax, eax
jmp 0x100132f3
sbb eax, eax
or eax, 1
test eax, eax
je 0x10013420
mov esi, str.CRLF
lea edi, [ebp - 0x118]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x10013326
test dl, dl
je 0x10013322
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x10013326
add edi, 2
add esi, 2
test dl, dl
jne 0x10013306
xor eax, eax
jmp 0x1001332b
sbb eax, eax
or eax, 1
test eax, eax
je 0x100133f6
push 0x3b
lea eax, [ebp - 0x118]
push eax
call fcn.101c8a70
mov esi, eax
add esp, 8
test esi, esi
je 0x100136c1
push 0x1020d24c
lea eax, [ebp - 0x118]
push eax
call fcn.101c8800
mov edx, eax
lea eax, [ebp - 0x118]
add esp, 8
cmp eax, edx
je 0x100136ad
push 0x1020d248
lea eax, [ebp - 0x118]
push eax
call fcn.101c8800
mov edx, eax
lea eax, [ebp - 0x118]
add esp, 8
cmp eax, edx
je 0x10013699
push str.CRLF_
lea eax, [ebp - 0x118]
push eax
call fcn.101c8800
mov edx, eax
lea eax, [ebp - 0x118]
add esp, 8
cmp eax, edx
je 0x100134a9
xor eax, eax
push eax
push 0x60
mov dword [0x1024042c], eax
mov dword [0x10240424], eax
mov dword [0x10240428], eax
call fcn.10022aa0
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x100134a4
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [0x1024042c], 8
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x100134a4
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [0x1024042c], 6
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x100134a4
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [0x1024042c], 7
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x100134a4
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x100134a4
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x100134a4
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
call fcn.101a6152
mov dword [0x1024042c], 8
mov edi, 8
lea ebx, [esi + 1]
push 0x3a
push ebx
call fcn.101c8a70
mov esi, eax
add esp, 8
test esi, esi
je 0x1001368f
push 0x1020d25c
push ebx
call fcn.101c8800
add esp, 8
cmp ebx, eax
je 0x10013685
push 0x1020d258
push ebx
call fcn.101c8800
add esp, 8
cmp ebx, eax
je 0x1001367b
push str.CRLF:
push ebx
call fcn.101c8800
add esp, 8
cmp ebx, eax
jne 0x100133ba
mov eax, 8
lea ebx, [esi + 1]
cmp eax, edi
jne 0x10013523
mov eax, 0
cmp byte [ebx], 0
je 0x100133ba
xor edx, edx
mov dword [ebp - 0x11c], eax
xor ecx, ecx
movsx eax, byte [ebx]
test eax, eax
je 0x10013670
test ecx, ecx
je 0x10013586
cmp ecx, 2
je 0x10013586
cmp ecx, 1
jne 0x1001355f
mov edi, eax
and edi, 0xfffffffe
cmp edi, 0x2c
je 0x10013603
jmp 0x10013568
cmp ecx, 3
jne 0x100133ba
cmp eax, 0x2c
je 0x10013654
lea edi, [eax - 0x30]
cmp edi, 9
ja 0x100133ba
lea esi, [esi + esi*4]
lea esi, [eax + esi*2 - 0x30]
jmp 0x10013593
lea esi, [eax - 0x30]
cmp esi, 9
ja 0x100133ba
inc ecx
inc ebx
cmp edx, 0x40
jl 0x10013536
mov eax, dword [ebp - 0x11c]
cmp byte [ebx], 0
jne 0x100133ba
movsx ebx, byte [ebx - 1]
cmp ebx, 0x2c
je 0x100133ba
cmp ebx, 0x2d
je 0x100133ba
cmp ecx, 1
je 0x1001361d
cmp esi, dword [edx*4 + 0x10240020]
jl 0x100133ba
mov dword [edx*4 + 0x10240120], esi
inc edx
mov dword [0x10240424], eax
mov dword [0x10240428], edx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x100134a4
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [edx*4 + 0x10240020], esi
cmp eax, 0x2d
jne 0x10013568
mov ecx, 2
jmp 0x10013593
mov dword [edx*4 + 0x10240020], esi
mov dword [edx*4 + 0x10240120], esi
inc edx
mov dword [0x10240424], eax
mov dword [0x10240428], edx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x100134a4
jmp 0x100133ee
cmp esi, dword [edx*4 + 0x10240020]
jl 0x100133ba
mov dword [edx*4 + 0x10240120], esi
inc edx
xor ecx, ecx
jmp 0x10013593
mov eax, dword [ebp - 0x11c]
jmp 0x100135a8
mov eax, 6
jmp 0x10013517
mov eax, 7
jmp 0x10013517
mov eax, 7
jmp 0x1001351a
mov dword [0x1024042c], 6
mov edi, 6
jmp 0x100134b8
mov dword [0x1024042c], 7
mov edi, 7
jmp 0x100134b8
xor edi, edi
jmp 0x100134bb