Function at 0x100244b7
Capabilities:
Query environment variable

Disassembly:
push 0x870
mov eax, 0x10151fb8
call fcn.1012b6ae
mov dword [ebp - 0x864], ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x858], eax
xor eax, eax
mov ebx, eax
mov dword [ebp - 0x83c], esi
mov dword [ebp - 0x844], ebx
mov dword [ebp - 0x850], eax
mov dword [ebp - 0x84c], eax
mov dword [ebp - 0x848], eax
mov dword [ebp - 4], eax
push 0x410
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.1012db70
mov eax, dword [esi + 4]
xor edx, edx
mov ecx, dword [esi]
add esp, 0xc
sub eax, ecx
mov dword [ebp - 0x86c], edx
sar eax, 2
test eax, eax
je 0x10024a11
lea eax, [ecx + edx*4]
push eax
lea ecx, [ebp - 0x838]
call fcn.10008916
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x838]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x10024554
jmp 0x100249e0
js 0x10024b01
cmp word [eax], 0x2e
jne 0x100245d3
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1012db70
add esp, 0xc
test edi, edi
je 0x10024594
push dword [ebp - 0x838]
mov eax, dword [edi]
push edi
call dword [eax + 0x18]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x85c]
call fcn.100088c7
mov byte [ebp - 4], 3
lea eax, [ebp - 0x85c]
push eax
lea ecx, [ebp - 0x850]
call fcn.10008790
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x85c]
lea ecx, [ecx - 0x10]
call fcn.100078bc
jmp 0x100249e0
push 2
lea eax, [ebp - 0x870]
push eax
lea ecx, [ebp - 0x838]
call fcn.10014b9c
mov byte [ebp - 4], 5
push 0x101845a8
push dword [eax]
call fcn.10131153
pop ecx
pop ecx
mov esi, eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x870]
lea ecx, [ecx - 0x10]
call fcn.100078bc
test esi, esi
jne 0x10024744
call fcn.10007945
push eax
lea ecx, [ebp - 0x860]
call fcn.10008bfd
mov byte [ebp - 4], 8
call fcn.10007945
push eax
lea ecx, [ebp - 0x840]
call fcn.10008bfd
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x874]
push 2
push eax
lea ecx, [ebp - 0x838]
call fcn.1001f1fd
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x860]
push esi
push ecx
mov ecx, dword [ebp - 0x864]
or ebx, 1
mov dword [ebp - 0x844], ebx
push dword [eax]
call fcn.10024d57
mov esi, dword [ebp - 0x860]
test eax, eax
je 0x1002468c
cmp dword [esi - 0xc], 0
mov byte [ebp - 0x831], 0
jne 0x10024693
mov byte [ebp - 0x831], 1
mov dword [ebp - 4], 0xa
test bl, 1
je 0x100246ba
and ebx, 0xfffffffe
mov dword [ebp - 0x844], ebx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x874]
lea ecx, [ecx - 0x10]
call fcn.100078bc
cmp byte [ebp - 0x831], 0
je 0x100246fe
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x840]
lea ecx, [ecx - 0x10]
call fcn.100078bc
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
call fcn.100078bc
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x838]
lea ecx, [ecx - 0x10]
call fcn.100078bc
mov esi, dword [ebp - 0x83c]
jmp 0x100249f2
push 0
lea eax, [ebp - 0x840]
push eax
push esi
call fcn.1005313d
add esp, 0xc
test eax, eax
je 0x10024726
lea eax, [ebp - 0x840]
push eax
lea ecx, [ebp - 0x850]
call fcn.10010737
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x840]
lea ecx, [ecx - 0x10]
call fcn.100078bc
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
jmp 0x100249d5
push 2
lea eax, [ebp - 0x878]
push eax
lea ecx, [ebp - 0x838]
call fcn.10014b9c
mov byte [ebp - 4], 0x12
push 0x101845b0
push dword [eax]
call fcn.10131153
pop ecx
pop ecx
mov esi, eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x878]
lea ecx, [ecx - 0x10]
call fcn.100078bc
test esi, esi
jne 0x10024847
call fcn.10007945
push eax
lea ecx, [ebp - 0x854]
call fcn.10008bfd
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x87c]
push 2
push eax
lea ecx, [ebp - 0x838]
call fcn.1001f1fd
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x854]
push esi
push ecx
mov ecx, dword [ebp - 0x864]
or ebx, 2
mov dword [ebp - 0x844], ebx
push dword [eax]
call fcn.10024d57
mov esi, dword [ebp - 0x854]
test eax, eax
je 0x100247e8
cmp dword [esi - 0xc], 0
mov byte [ebp - 0x831], 0
jne 0x100247ef
mov byte [ebp - 0x831], 1
mov dword [ebp - 4], 0x15
test bl, 2
je 0x10024816
and ebx, 0xfffffffd
mov dword [ebp - 0x844], ebx
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x87c]
lea ecx, [ecx - 0x10]
call fcn.100078bc
cmp byte [ebp - 0x831], 0
je 0x10024830
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
call fcn.100078bc
jmp 0x100246e1
lea eax, [ebp - 0x854]
push eax
lea ecx, [ebp - 0x850]
call fcn.10010737
jmp 0x10024738
push dword [ebp - 0x838]
mov esi, 0x410
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.100100b8
mov eax, dword [ebp - 0x838]
cmp dword [eax - 0xc], 0
jl 0x10024b01
cmp word [eax], 0x25
jne 0x100248db
push esi
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.1012db70
add esp, 0xc
lea eax, [ebp - 0x830]
mov esi, 0x208
push esi
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x206
ja 0x100249a0
cmp word [ebp - 0x830], 0
je 0x100249a0
push SysReAllocString
lea eax, [ebp - 0x830]
push eax
push 0
push esi
lea eax, [ebp - 0x420]
push eax
call fcn.10015d3f
jmp 0x100249a0
push 0
push 0x5c
lea ecx, [ebp - 0x838]
call fcn.10018481
cmp eax, 0xffffffff
jne 0x100249a0
test edi, edi
je 0x1002490b
mov eax, dword [edi]
push edi
call dword [eax + 0x18]
push eax
push esi
lea eax, [ebp - 0x420]
push eax
call fcn.100100b8
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
push 0x101845b8
push eax
call esi
push dword [ebp - 0x838]
lea eax, [ebp - 0x420]
push eax
call esi
lea eax, [ebp - 0x420]
push eax
call fcn.10010313
test eax, eax
jne 0x100249a0
mov esi, dword [ebp - 0x838]
push 0x27
call fcn.10010082
pop ecx
test eax, eax
je 0x10024966
xor edx, edx
lea ecx, [ebp - 0x420]
push edx
push ecx
push 0x208
push edx
push esi
push edx
call eax
jmp 0x1002497e
xor ecx, ecx
lea eax, [ebp - 0x420]
push ecx
push eax
push 0x208
push ecx
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x10024989
cmp eax, 0x208
jb 0x100249a0
push dword [ebp - 0x838]
lea eax, [ebp - 0x420]
push 0x410
push eax
call fcn.100100b8
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x868]
call fcn.100088c7
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x868]
push eax
lea ecx, [ebp - 0x850]
call fcn.10008790
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x868]
lea ecx, [ecx - 0x10]
call fcn.100078bc
mov esi, dword [ebp - 0x83c]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x838]
lea ecx, [ecx - 0x10]
call fcn.100078bc
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x86c]
mov ecx, dword [esi]
inc edx
sub eax, ecx
mov dword [ebp - 0x86c], edx
sar eax, 2
cmp edx, eax
jb 0x1002452f
mov eax, dword [ebp - 0x84c]
xor esi, esi
sub eax, dword [ebp - 0x850]
sar eax, 2
test eax, eax
je 0x10024ae7
mov edi, dword [ebp - 0x858]
lea ecx, [ebp - 0x680]
call fcn.10021fd4
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x680]
mov eax, dword [ebp - 0x850]
push dword [eax + esi*4]
call fcn.10023549
jmp 0x10024abd
lea ecx, [ebp - 0x680]
call fcn.100258dc
test eax, eax
jne 0x10024ab0
cmp dword [ebp - 0x424], eax
je 0x10024a7a
mov eax, dword [ebp - 0x680]
shr eax, 4
and eax, 1
jmp 0x10024a7c
xor eax, eax
test eax, eax
jne 0x10024ab0
lea eax, [ebp - 0x858]
push eax
lea ecx, [ebp - 0x680]
call fcn.10023dc3
mov byte [ebp - 4], 0x1f
mov ecx, edi
push eax
call fcn.10008790
mov byte [ebp - 4], 0x1e
mov ecx, dword [ebp - 0x858]
lea ecx, [ecx - 0x10]
call fcn.100078bc
push 1
lea ecx, [ebp - 0x680]
call fcn.1002362c
test eax, eax
jne 0x10024a55
mov byte [ebp - 4], al
lea ecx, [ebp - 0x680]
call fcn.1002232c
mov ecx, dword [ebp - 0x84c]
inc esi
sub ecx, dword [ebp - 0x850]
sar ecx, 2
cmp esi, ecx
jb 0x10024a30
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x850]
call fcn.10008abd
xor eax, eax
inc eax
call fcn.1012b658
ret 0xc
push 0x80070057
call fcn.100074e1
int3