Function at 0x100035c7
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x10009de0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x1fe
mov word [ebp - 0x244], ax
lea eax, [ebp - 0x242]
push ebx
push eax
mov dword [ebp - 0x460], ebx
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x45c], ebx
lea edi, [ebp - 0x458]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ax, word [0x10009240]
add esp, 0xc
mov esi, 0x10009240
cmp ax, bx
jge 0x10003631
mov ecx, esi
neg word [ecx]
add ecx, 2
cmp word [ecx], bx
jne 0x10003626
mov eax, dword [0x1000b8d8]
xor ecx, ecx
cmp eax, ebx
setne cl
neg eax
sbb eax, eax
and eax, 3
add eax, 0x33
lea ecx, [ecx + ecx + 0x32]
push ecx
push eax
push dword [0x1000b7d4]
lea eax, [ebp - 0x244]
push dword [0x1000b7d0]
push dword [0x1000b7cc]
push dword [0x1000b7c8]
push esi
push 0xff
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x24
mov eax, 0x1000923c
cmp byte [0x1000923c], bl
jge 0x10003691
mov ecx, eax
neg byte [ecx]
inc ecx
cmp byte [ecx], bl
jne 0x1000368a
push ebx
lea ecx, [ebp - 0x244]
push ecx
push eax
lea eax, [ebp - 0x45c]
push eax
call fcn.100021a9
push 0x1000b7c4
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x448], ebx
call fcn.10002c30
add esp, 0x14
cmp dword [ebp - 0x448], ebx
je 0x10003707
mov eax, 0x10009264
cmp byte [0x10009264], bl
jge 0x100036dd
mov ecx, eax
neg byte [ecx]
inc ecx
cmp byte [ecx], bl
jne 0x100036d6
push 1
push dword [ebp - 0x448]
push eax
lea eax, [ebp - 0x45c]
push eax
call fcn.100021a9
push ebx
call fcn.10001d3c
push dword [ebp - 0x448]
call dword [sym.imp.msvcrt.dll_free]
add esp, 0x18
mov eax, 0xff8b
lea ecx, [eax + 7]
mov word [ebp - 0x30], ax
mov eax, ecx
mov word [ebp - 0x2e], ax
add eax, 3
mov word [ebp - 0x2c], ax
mov eax, ecx
mov word [ebp - 0x2a], ax
dec eax
mov edx, eax
mov word [ebp - 0x28], dx
lea edx, [ecx - 9]
mov esi, edx
mov word [ebp - 0x26], si
mov esi, ecx
mov word [ebp - 0x24], si
xor esi, esi
mov word [ebp - 0x22], si
lea edi, [ecx + 0xd]
mov esi, edi
mov word [ebp - 0x10], si
add esi, 0xfffffff5
mov word [ebp - 0xe], si
mov esi, eax
mov word [ebp - 0xc], si
mov word [ebp - 0x44], dx
mov esi, ecx
mov word [ebp - 0xa], si
add esi, 9
mov edx, eax
mov word [ebp - 8], si
mov word [ebp - 0x42], dx
xor esi, esi
mov word [ebp - 6], si
lea edx, [ecx - 4]
mov esi, edx
mov edx, eax
xor eax, eax
mov word [ebp - 0x38], dx
mov word [ebp - 0x14], ax
lea edx, [ecx - 7]
lea eax, [ebp - 0x464]
push eax
mov word [ebp - 0x36], dx
add edx, 5
mov word [ebp - 0x40], si
lea eax, [ebp - 0x44c]
add esi, 7
mov word [ebp - 0x34], dx
push eax
xor edx, edx
mov word [ebp - 0x3e], si
push ebx
mov dword [ebp - 0x44c], ebx
mov dword [ebp - 0x464], ebx
mov dword [ebp - 0x3c], 0xff8eff99
mov word [ebp - 0x32], dx
mov dword [ebp - 0x20], 0xff91ff9c
mov dword [ebp - 0x1c], 0xff9fff93
mov dword [ebp - 0x18], 0xff92ff97
lea esi, [ebp - 0x30]
call dword [0x1000c9d8]
test eax, eax
jne 0x10003805
mov eax, dword [ebp - 0x464]
dec eax
je 0x10003802
dec eax
je 0x100037fd
dec eax
jne 0x10003805
lea esi, [ebp - 0x20]
jmp 0x10003805
lea esi, [ebp - 0x44]
jmp 0x10003805
lea esi, [ebp - 0x10]
xor eax, eax
push 0x1fe
mov word [ebp - 0x444], ax
lea eax, [ebp - 0x442]
push ebx
push eax
call sub.msvcrt.dll_memset
mov cx, word [0x100091d4]
add esp, 0xc
mov edx, 0x100091d4
cmp cx, bx
jge 0x10003841
mov eax, edx
neg word [eax]
add eax, 2
cmp word [eax], bx
jne 0x10003836
mov edi, 0xff
push edi
lea eax, [ebp - 0x444]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor eax, eax
mov word [ebp - 0x244], ax
cmp dword [ebp - 0x44c], ebx
je 0x100038c4
cmp word [esi], bx
jge 0x10003878
mov eax, esi
neg word [eax]
add eax, 2
cmp word [eax], bx
jne 0x1000386d
mov dx, word [0x10009280]
mov ecx, 0x10009280
cmp dx, bx
jge 0x10003896
mov eax, ecx
neg word [eax]
add eax, 2
cmp word [eax], bx
jne 0x1000388b
push esi
lea eax, [ebp - 0x444]
push eax
push dword [ebp - 0x44c]
lea eax, [ebp - 0x244]
push ecx
push edi
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x18
push dword [ebp - 0x44c]
call dword [0x1000c9dc]
jmp 0x100038da
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov eax, 0x1000927c
cmp byte [0x1000927c], bl
jge 0x100038f0
mov ecx, eax
neg byte [ecx]
inc ecx
cmp byte [ecx], bl
jne 0x100038e9
push 1
lea ecx, [ebp - 0x244]
push ecx
push eax
lea eax, [ebp - 0x45c]
push eax
call fcn.100021a9
xor eax, eax
mov word [ebp - 0x244], ax
mov ax, word [0x100091f0]
add esp, 0x10
mov edx, 0x100091f0
cmp ax, bx
jge 0x1000392f
mov ecx, edx
neg word [ecx]
add ecx, 2
cmp word [ecx], bx
jne 0x10003924
push edi
lea eax, [ebp - 0x244]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, 0x10009298
cmp byte [0x10009298], bl
jge 0x10003954
mov eax, ecx
neg byte [eax]
inc eax
cmp byte [eax], bl
jne 0x1000394d
push 1
lea eax, [ebp - 0x244]
push eax
push ecx
lea eax, [ebp - 0x45c]
push eax
call fcn.100021a9
lea eax, [ebp - 0x45c]
push eax
call fcn.1000338f
add esp, 0x14
cmp dword [ebp - 0x454], ebx
je 0x10003a27
cmp dword [ebp - 0x458], ebx
je 0x10003a27
lea eax, [ebp - 0x45c]
push eax
mov dword [ebp - 0x448], ebx
call fcn.10002175
test byte [ebp + 8], 2
pop ecx
je 0x100039b6
push dword [ebp - 0x454]
call fcn.10002890
pop ecx
lea eax, [ebp - 0x448]
push eax
mov eax, dword [ebp - 0x458]
dec eax
push eax
push dword [ebp - 0x454]
call fcn.10002277
add esp, 0xc
test eax, eax
je 0x100039e9
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x448], ebx
cmp dword [ebp - 0x448], ebx
je 0x10003a05
push ebx
call fcn.10001d3c
push dword [ebp - 0x448]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop ecx
mov dword [ebp - 0x448], ebx
cmp dword [ebp - 0x454], ebx
je 0x10003a27
push ebx
call fcn.10001d3c
push dword [ebp - 0x454]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x460]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10007260
leave
ret