Function at 0x1000c5f0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x560
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], bl
mov byte [esp + 0x174], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x175]
mov byte [esp + 0x278], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x279]
push 0x104
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x578]
mov dword [esp + 0x1c], 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x30]
mov byte [esp + 0x17], bl
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edx, [esp + 0x174]
push 0x104
lea eax, [esp + 0x30]
push edx
push eax
call fcn.10012c60
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
lea ecx, [esp + 0x174]
lea edx, [esp + 0x2c]
push ecx
push edx
call ebp
lea eax, [esp + 0x2c]
push eax
call fcn.1000c4a0
add esp, 4
test al, al
jne 0x1000c6ce
lea ecx, [esp + 0x2c]
push 0x20
push ecx
call sub.MSVCRT.dll_strrchr
add esp, 8
cmp eax, ebx
je 0x1000c6ce
lea edx, [esp + 0x2c]
mov byte [eax], bl
push edx
call fcn.1000c4a0
add esp, 4
test al, al
je 0x1000c6a8
lea eax, [esp + 0x2c]
push eax
call fcn.1000c4a0
add esp, 4
test al, al
jne 0x1000c6ec
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x560
ret 8
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x278]
push ecx
push edx
call ebp
lea eax, [esp + 0x2c]
push 0x2e
push eax
lea esi, [esp + 0x34]
call sub.MSVCRT.dll_strrchr
add esp, 8
cmp eax, ebx
je 0x1000c814
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebx
push eax
push 0x80000000
call dword [0x1002392c]
test eax, eax
jne 0x1000c814
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
lea eax, [esp + 0x2c]
push edx
push eax
push ebx
push ecx
call dword [0x10023a98]
mov edx, dword [esp + 0x14]
push edx
call dword [0x10023a78]
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x37c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x37c]
push eax
push 0x100223c8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x14]
lea eax, [esp + 0x37c]
push edx
push 0xf003f
push ebx
push eax
push 0x80000000
call dword [0x1002392c]
test eax, eax
je 0x1000c7b2
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x560
ret 8
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
push ebx
push eax
mov dword [esp + 0x28], 0x104
call dword [0x10023a98]
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x10023a78]
lea edx, [esp + 0x2c]
push 0x100223c4
push edx
call sub.MSVCRT.dll_strstr
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x1000c814
lea eax, [esp + 0x2c]
push 0x10020c8c
push eax
call sub.MSVCRT.dll_strstr
add esp, 8
mov esi, eax
mov ecx, dword [esp + 0x574]
push 0x100223b4
push ecx
call sub.MSVCRT.dll_strstr
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 8
test eax, eax
je 0x1000c851
lea edx, [esp + 0x174]
push 0x10022310
push edx
call edi
lea eax, [esp + 0x174]
push 0x1002447c
push eax
call edi
cmp esi, ebx
jne 0x1000c872
lea ecx, [esp + 0x2c]
push 0x10022310
push ecx
call edi
lea edx, [esp + 0x174]
lea eax, [esp + 0x2c]
push edx
push eax
call edi
jmp 0x1000c87d
lea ecx, [esp + 0x174]
push ecx
push esi
call ebp
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x134]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x578]
mov dword [esp + 0x130], 0x44
cmp eax, ebx
je 0x1000c8b0
mov dword [esp + 0x138], 0x10020c48
jmp 0x1000c8bb
mov dword [esp + 0x15c], 1
lea edx, [esp + 0x1c]
lea eax, [esp + 0x130]
push edx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x48]
push ebx
push ecx
push ebx
call dword [0x10023bcc]
test eax, eax
je 0x1000c8f7
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
mov byte [esp + 0x13], 1
mov ecx, dword [esp + 0x574]
push str.DT_C1
push ecx
call sub.MSVCRT.dll_strstr
add esp, 8
test eax, eax
je 0x1000c921
push 4
lea edx, [esp + 0x27c]
push ebx
push edx
call dword [0x10023ac0]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x560
ret 8