Function at 0x100105f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b730
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x1002b148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
push 2
xor edi, edi
mov dword [ebp - 4], 0
push edi
push 0x1001dd80
mov ecx, ebx
call fcn.1000ee30
mov esi, eax
cmp esi, 0xffffffff
je 0x100108d3
lea esp, [esp]
mov eax, esi
mov ecx, ebx
sub eax, edi
push eax
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.1000af00
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.10004ec0
cmp dword [ebp - 0x14], 0x10
mov byte [ebp - 4], 0
jb 0x10010697
push dword [ebp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp esi, 0xffffffff
je 0x100108c0
push 1
add esi, 2
mov byte [ebp - 0x44], 0x7d
push esi
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call fcn.1000ee30
mov dword [ebp - 0x58], eax
mov ecx, ebx
cmp eax, 0xffffffff
je 0x1001088b
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x28]
push eax
call fcn.1000af00
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x18]
cmp ebx, 0x10
mov edx, 2
mov byte [ebp - 4], 3
cmovae ecx, dword [ebp - 0x28]
cmp edi, edx
cmovb edx, edi
test edx, edx
je 0x10010750
mov esi, 0x1001dd80
sub edx, 4
jb 0x10010711
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x10010716
add ecx, 4
add esi, 4
sub edx, 4
jae 0x10010700
cmp edx, 0xfffffffc
je 0x1001074a
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x10010743
cmp edx, 0xfffffffd
je 0x1001074a
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x10010743
cmp edx, 0xfffffffe
je 0x1001074a
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x10010743
cmp edx, 0xffffffff
je 0x1001074a
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x1001074a
sbb eax, eax
or eax, 1
jmp 0x1001074c
xor eax, eax
test eax, eax
jne 0x10010764
cmp edi, 2
jae 0x1001075a
or eax, 0xffffffff
jmp 0x10010762
xor eax, eax
cmp edi, 2
setne al
test eax, eax
sete al
test al, al
je 0x1001077f
push 2
push 0x1001dd80
lea ecx, [ebp - 0x40]
call fcn.10004f90
jmp 0x10010859
cmp ebx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.MSVCR120.dll_getenv]
mov edx, eax
add esp, 4
test edx, edx
je 0x100107cc
cmp byte [edx], 0
jne 0x100107af
xor ecx, ecx
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.10004f90
jmp 0x10010859
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100107b4
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.10004f90
jmp 0x10010859
mov ebx, dword [ebp - 0x48]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebx + 4]
call fcn.1000b460
mov edi, dword [ebx + 4]
mov esi, eax
cmp esi, edi
je 0x10010839
cmp dword [esi + 0x24], 0x10
lea edx, [esi + 0x10]
mov ebx, dword [edx + 0x10]
jb 0x100107f2
mov edx, dword [edx]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov eax, ebx
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x18], ebx
cmovb eax, dword [ebp - 0x18]
push eax
push edx
push ecx
call fcn.10002f00
add esp, 0xc
test eax, eax
jne 0x1001082a
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
jae 0x10010821
or eax, 0xffffffff
jmp 0x10010828
xor eax, eax
cmp ecx, ebx
setne al
test eax, eax
sets al
test al, al
jne 0x10010839
mov dword [ebp - 0x50], esi
lea eax, [ebp - 0x50]
jmp 0x1001083f
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov eax, dword [eax]
cmp eax, dword [ecx + 4]
je 0x10010859
push 0xffffffffffffffff
add eax, 0x28
lea ecx, [ebp - 0x40]
push 0
push eax
call fcn.10004ec0
mov edi, dword [ebp - 0x58]
inc edi
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
jb 0x10010872
push dword [ebp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ebx, dword [ebp - 0x54]
mov ecx, ebx
push 2
push edi
push 0x1001dd80
call fcn.1000ee30
mov esi, eax
jmp 0x10010660
push 0xffffffffffffffff
lea eax, [esi - 2]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1000af00
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.10004ec0
cmp dword [ebp - 0x14], 0x10
mov byte [ebp - 4], 0
jb 0x100108c0
push dword [ebp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
lea eax, [ebp - 0x40]
cmp ebx, eax
je 0x100108d3
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.10002c50
cmp dword [ebp - 0x2c], 0x10
jb 0x100108e4
push dword [ebp - 0x40]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100197c4
mov esp, ebp
pop ebp
ret 4