Function at 0x1002c4a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x1012070]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea ecx, [ebx + 0x9c]
push ecx
lea ecx, [ebp - 0x214]
push ecx
mov dword [ebp - 4], eax
push 0x1001544
lea eax, [ebx + 0xbc]
push eax
push dword [ebx + 8]
xor edi, edi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], edi
call fcn.010027f0
mov esi, eax
cmp esi, edi
jne 0x100325f
lea eax, [ebx + 0x4ec]
push eax
push edi
push 0x100151c
lea eax, [ebx + 0xbc]
push eax
push dword [ebx + 8]
call fcn.010027f0
mov esi, eax
cmp esi, 0xe8
je 0x1002cd6
cmp esi, 2
je 0x1002cd6
cmp dword [ebx + 0x4ec], edi
jne 0x1002ce3
call fcn.01002445
mov dword [ebx + 0x4ec], eax
xor esi, esi
cmp esi, edi
jne 0x100325f
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x220], eax
lea eax, [ebx + 0x20]
push eax
lea eax, [ebp - 0x22c]
push eax
push 0x1001510
lea eax, [ebx + 0xbc]
push eax
push dword [ebx + 8]
mov word [ebp - 0x22c], 1
mov word [ebp - 0x22a], 1
mov dword [ebp - 0x228], 2
call fcn.01002714
mov esi, eax
cmp esi, edi
jne 0x100325f
lea eax, [ebx + 0x30]
push eax
lea eax, [ebp - 0x22c]
push eax
push 0x1001504
lea eax, [ebx + 0xbc]
push eax
push dword [ebx + 8]
mov word [ebp - 0x22c], 1
mov word [ebp - 0x22a], 2
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x220], edi
call fcn.01002714
mov esi, eax
cmp esi, edi
jne 0x100325f
lea eax, [ebx + 0x40]
push eax
push edi
push 0x10014e4
lea eax, [ebx + 0xbc]
push eax
push dword [ebx + 8]
call fcn.01002714
mov esi, eax
cmp esi, 0xe8
je 0x1002dde
cmp esi, 2
jne 0x1002e17
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], edi
mov word [ebp - 0x22c], 2
mov word [ebp - 0x22a], 6
mov dword [ebp - 0x220], 1
lea esi, [ebp - 0x22c]
lea edi, [ebx + 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
xor edi, edi
cmp esi, edi
jne 0x100325f
cmp dword [ebx + 0x34], edi
je 0x1002ed9
lea eax, [ebp - 0x218]
push eax
push edi
push 0x10014d4
lea eax, [ebx + 0xbc]
push eax
push dword [ebx + 8]
call fcn.010027f0
mov esi, eax
cmp esi, 0xe8
je 0x1002e53
cmp esi, 2
jne 0x1002e5b
mov dword [ebp - 0x218], edi
xor esi, esi
cmp esi, edi
jne 0x100325f
cmp dword [ebx + 0x34], edi
je 0x1002ed9
lea eax, [ebx + 0x50]
push eax
push edi
push 0x10014b4
lea eax, [ebx + 0xbc]
push eax
push dword [ebx + 8]
call fcn.01002714
mov esi, eax
cmp esi, 0xe8
je 0x1002e95
cmp esi, 2
je 0x1002e95
cmp dword [ebx + 0x54], edi
jne 0x1002ed1
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 0x224], edi
push 2
pop eax
mov word [ebp - 0x22c], ax
mov word [ebp - 0x22a], 7
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x220], eax
lea esi, [ebp - 0x22c]
lea edi, [ebx + 0x50]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
xor edi, edi
cmp esi, edi
jne 0x100325f
lea esi, [ebx + 0x8c]
mov eax, dword [esi]
cmp eax, edi
jne 0x1002eed
mov dword [ebp - 0x21c], edi
jmp 0x1002efb
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
push eax
push esi
push edi
push 0x10014a4
push dword [ebx + 8]
call fcn.01009601
or dword [ebp - 0x214], 0xffffffff
lea eax, [ebx + 0xb4]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x1001480
lea eax, [ebx + 0xbc]
push eax
push dword [ebx + 8]
call fcn.010027f0
mov esi, eax
cmp esi, edi
jne 0x100325f
lea eax, [ebx + 0xa0]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x1001464
lea eax, [ebx + 0xbc]
push eax
push dword [ebx + 8]
mov dword [ebp - 0x214], 2
call fcn.010027f0
mov esi, eax
cmp esi, edi
jne 0x100325f
lea esi, [ebx + 0xa0]
movzx eax, word [esi]
mov dword [esi], eax
and eax, 0xffff0000
sub eax, 0x20000
neg eax
sbb eax, eax
inc eax
mov dword [ebx + 0xa4], eax
lea eax, [ebp - 0x218]
push eax
push edi
push 0x1001438
lea eax, [ebx + 0xbc]
push eax
push dword [ebx + 8]
mov dword [ebp - 0x218], edi
call fcn.010027f0
mov edx, dword [ebp - 0x218]
mov dword [ebp - 0x214], eax
mov eax, 0xe8
cmp dword [ebp - 0x214], eax
je 0x100300a
cmp dword [ebp - 0x214], 2
je 0x100300a
test dl, 0xf0
je 0x100300a
test dl, 0x40
jne 0x1003031
test dl, 0x20
je 0x1002ff9
mov dword [ebx + 0xb8], 0x400
jmp 0x100303b
test dl, 0x10
je 0x100303b
mov dword [ebx + 0xb8], 1
jmp 0x100303b
mov ecx, dword [ebx + 0x98]
cmp ecx, edi
jne 0x100302c
xor ecx, ecx
cmp dword [esi], 6
sete cl
dec ecx
and ecx, 0x3ff
inc ecx
mov dword [ebx + 0xb8], ecx
jmp 0x100303b
cmp ecx, 1
jne 0x100303b
mov dword [ebx + 0xb8], 0x100000
cmp dword [ebx + 0xa4], edi
jne 0x1003072
cmp dword [ebp - 0x214], eax
je 0x1003067
cmp dword [ebp - 0x214], 2
je 0x1003067
test edx, 0xf
je 0x1003067
and edx, 2
mov dword [ebx + 0xa4], edx
jmp 0x1003072
cmp dword [esi], 6
je 0x1003072
mov dword [ebx + 0xa4], edi
lea eax, [ebx + 0xac]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x100140c
lea eax, [ebx + 0xbc]
push eax
push dword [ebx + 8]
mov dword [ebp - 0x214], 1
call fcn.010027f0
mov esi, eax
cmp esi, edi
jne 0x100325f
cmp dword [ebx + 0xac], 0xffffffff
jne 0x10030c7
lea eax, [ebx + 0xbc]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x10030ce
mov word [ebp - 0x210], di
lea esi, [ebx + 0x80]
mov eax, dword [esi]
cmp eax, edi
jne 0x10030e2
mov dword [ebp - 0x21c], edi
jmp 0x10030f0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
push eax
push esi
lea eax, [ebp - 0x210]
push eax
push 0x10013e4
push dword [ebx + 8]
call fcn.01009601
push dword [esi]
call fcn.0100945c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x1003131
mov esi, dword [esi]
cmp esi, edi
je 0x1003131
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x1012b48
push 0x10013c4
lea eax, [ebx + 0xbc]
push eax
push dword [ebx + 8]
mov dword [ebp - 0x214], edi
call fcn.010028c3
cmp dword [ebp - 0x214], edi
mov esi, eax
je 0x1003210
push edi
push edi
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, edi
mov dword [ebp - 0x218], eax
jbe 0x10031f4
mov eax, dword [ebx + 0x84]
cmp eax, edi
je 0x10031a3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebx + 0x84], edi
mov eax, dword [ebp - 0x218]
add eax, eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, edi
mov dword [ebx + 0x84], eax
je 0x10031ef
push dword [ebp - 0x218]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x10031fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebx + 0x84]
mov word [eax], di
jmp 0x10031fc
push 0xe
pop esi
jmp 0x10031fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x214]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, edi
jne 0x100325f
lea eax, [ebp - 0x218]
push eax
lea eax, [ebx + 0x88]
push eax
push edi
push 0x10013a0
lea esi, [ebx + 0xbc]
push esi
push dword [ebx + 8]
call fcn.010028c3
lea eax, [ebx + 0xb0]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x1001370
push esi
push dword [ebx + 8]
mov dword [ebp - 0x214], 1
call fcn.010027f0
mov esi, eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.01009963
leave
ret 4