Function at 0x10b139d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x10ed860]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x41c], eax
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
cmp dword [ebp - 0x418], 0
mov edi, 0x80070057
jne 0x10b1431
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10b155e
test byte [eax + 0x1c], 1
je 0x10b155e
push 0x100ac18
push 0x11
jmp 0x10b1456
test ebx, ebx
jne 0x10b1466
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10b155e
test byte [eax + 0x1c], 1
je 0x10b155e
push 0x100ac18
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
jmp 0x10b155e
cmp dword [ebx], 0
mov esi, 0x104
jne 0x10b1515
push dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push 0x100acd8
push esi
push eax
call fcn.010ad159
mov edi, eax
add esp, 0x10
test edi, edi
jge 0x10b14bc
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10b155e
test byte [eax + 0x1c], 1
je 0x10b155e
push edi
push 0x100ac18
push 0x13
jmp 0x10b16a3
push ebx
push 0x100adc0
lea eax, [ebp - 0x414]
push eax
xor eax, eax
cmp dword [ebp + 0xc], eax
setne al
add eax, 0x80000001
push eax
call fcn.010ba5e5
test eax, eax
jne 0x10b14e4
cmp dword [ebx], eax
jne 0x10b1515
mov edi, 0x90070a02
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10b155e
test byte [eax + 0x1c], 4
je 0x10b155e
push dword [ebp - 0x418]
push 0x100ac18
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e3b
jmp 0x10b155e
xor edi, edi
cmp dword [ebp - 0x41c], edi
je 0x10b155e
push esi
lea eax, [ebp - 0x20c]
push eax
cmp dword [ebp + 0xc], edi
je 0x10b1571
push 0x100ada4
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x10b153f
cmp eax, esi
jbe 0x10b1578
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10b1553
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jl 0x10b155e
mov edi, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010a0c4b
leave
ret 0x10
push 0x100ad84
jmp 0x10b1531
push 0x1006b80
lea eax, [ebp - 0x20c]
push eax
call fcn.010b11b8
mov edi, eax
test edi, edi
jge 0x10b15ae
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10b155e
test byte [eax + 0x1c], 1
je 0x10b155e
push edi
push 0x100ac18
push 0x15
jmp 0x10b16a3
push dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push eax
call fcn.010b11b8
mov edi, eax
test edi, edi
jge 0x10b15e5
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10b155e
test byte [eax + 0x1c], 1
je 0x10b155e
push edi
push 0x100ac18
push 0x16
jmp 0x10b16a3
push 0x100ad7c
lea eax, [ebp - 0x20c]
push eax
call fcn.010b11b8
mov edi, eax
test edi, edi
jge 0x10b1623
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10b155e
test byte [eax + 0x1c], 1
je 0x10b155e
push edi
push 0x100ac18
push 0x17
jmp 0x10b16a3
push 0x100ad68
lea eax, [ebp - 0x20c]
push eax
call fcn.010b11b8
mov edi, eax
test edi, edi
jge 0x10b165e
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10b155e
test byte [eax + 0x1c], 1
je 0x10b155e
push edi
push 0x100ac18
push 0x18
jmp 0x10b16a3
push dword [ebx]
lea eax, [ebp - 0x20c]
push eax
push 0x100ad4c
push esi
push dword [ebp - 0x41c]
call fcn.010ad159
mov edi, eax
add esp, 0x14
test edi, edi
jge 0x10b16b3
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10b155e
test byte [eax + 0x1c], 1
je 0x10b155e
push edi
push 0x100ac18
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
jmp 0x10b155e
xor edi, edi
jmp 0x10b155e