Function at 0x100c3610
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x468
mov esi, esp
mov dword [esi + 0x450], ebp
mov dword [esi + 0x454], esp
mov dword [esi + 0x460], 0xffffffff
mov dword [esi + 0x45c], 0x100d2800
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea ecx, [esi + 0x458]
mov edi, dword fs:[0]
mov dword [esi + 0x458], edi
lea edi, [esi + 0x50]
mov dword fs:[0], ecx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], eax
mov ecx, edi
push eax
call fcn.100d1c60
add esp, 4
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x58]
cmp dword [esi + 0x50], 1
je 0x100c3860
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x4c], eax
push 0x400
push 0
push edi
call fcn.100f20e0
add esp, 0xc
mov edi, 0x200
mov dword [esi + 0x10], 2
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 8], 0
mov dword [esi + 0x20], 2
cmp edi, 0x201
jae 0x100c36f2
jmp 0x100c3720
cmp ebx, edi
mov edi, ebx
jb 0x100c3771
cmp edi, 0x201
jb 0x100c3720
mov dword [esi + 0x38], edi
sub edi, dword [esi + 8]
lea ecx, [esi + 0x10]
mov dword [esi + 0x460], 0
mov edx, edi
call fcn.100c1b20
mov edi, dword [esi + 0x38]
mov dword [esi + 0x18], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov ebx, dword [esi + 0x10]
mov dword [esi + 0x20], ebx
jmp 0x100c372a
mov dword [esi + 0xc], 0x200
lea ebx, [esi + 0x50]
mov dword [esi + 4], ebx
push 0
call sub.KERNEL32.dll_SetLastError
push edi
push dword [esi + 4]
push dword [esi + 0x24]
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov ebx, eax
test eax, eax
jne 0x100c3753
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x100c383c
cmp ebx, edi
jne 0x100c36e0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x100c36e0
add edi, edi
cmp edi, 0x201
jae 0x100c36f2
jmp 0x100c3720
mov eax, dword [esi + 0xc]
mov dword [esi + 0x460], 0
cmp eax, ebx
jb 0x100c38cb
lea eax, [esi + 0x28]
push ebx
push dword [esi + 4]
push eax
call fcn.100cf560
add esp, 0xc
mov eax, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
xor edi, edi
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x100c37c3
add eax, eax
je 0x100c37c3
push 2
push eax
push dword [esi + 0x20]
call fcn.10017710
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x100c3830
mov ebx, dword [esi + 4]
mov edi, dword [esi + 8]
test bl, bl
sete al
cmp edi, 0xcb
sete cl
xor edx, edx
and cl, al
mov eax, dword [esi + 0x1c]
cmovne ebx, edx
xor cl, 1
mov dword [esi + 4], ebx
movzx ebx, cl
test eax, eax
je 0x100c3806
add eax, eax
je 0x100c3806
push 2
push eax
push dword [esi + 0x24]
call fcn.10017710
add esp, 0xc
test ebx, ebx
jne 0x100c3866
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x458]
mov dword [eax], ecx
mov dword [eax + 4], edi
mov edi, dword [esi + 0xc]
mov dword [eax + 8], edi
mov dword fs:[0], edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esi + 0x1c]
mov edi, dword [esi + 8]
test eax, eax
jne 0x100c37f4
jmp 0x100c3806
mov dword [esi + 4], 0
mov edi, 1
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 8], eax
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x100c37b1
jmp 0x100c37c3
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov eax, dword [esi + 4]
mov dword [esi + 0x50], 0x101843a8
mov dword [esi + 0x54], 2
mov dword [esi + 0x58], 0
mov dword [esi + 0x460], 1
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x14], eax
lea eax, [esi + 0x3c]
mov dword [esi + 0x28], eax
lea eax, [esi + 0x10]
mov dword [esi + 0x2c], 0x100ca4b0
mov dword [esi + 0x30], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x34], fcn.100c5600
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], 2
lea eax, [esi + 0x50]
push 0x101843b8
push eax
call fcn.100cdbe0
add esp, 8
jmp 0x100c38d5
push eax
push ebx
call fcn.100e2170
add esp, 8
ud2