Function at 0x10004980
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.100042f0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
lea ecx, [esp + 0x174]
lea edx, [esp + 0x2c]
push ecx
push edx
call esi
lea eax, [esp + 0x2c]
push eax
call fcn.10004500
add esp, 4
test al, al
jne 0x10004a5e
lea ecx, [esp + 0x2c]
push 0x20
push ecx
call sub.MSVCRT.dll_strrchr
add esp, 8
cmp eax, ebx
je 0x10004a5e
lea edx, [esp + 0x2c]
mov byte [eax], bl
push edx
call fcn.10004500
add esp, 4
test al, al
je 0x10004a38
lea eax, [esp + 0x2c]
push eax
call fcn.10004500
add esp, 4
test al, al
jne 0x10004a7c
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 esi
lea eax, [esp + 0x2c]
push 0x2e
push eax
lea ebp, [esp + 0x34]
call sub.MSVCRT.dll_strrchr
add esp, 8
cmp eax, ebx
je 0x10004ba4
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebx
push eax
push 0x80000000
call dword [0x100224cc]
test eax, eax
jne 0x10004ba4
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
lea eax, [esp + 0x2c]
push edx
push eax
push ebx
push ecx
call dword [0x10022638]
mov edx, dword [esp + 0x14]
push edx
call dword [0x10022618]
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 str._s_shellopencommand
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 [0x100224cc]
test eax, eax
je 0x10004b42
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 [0x10022638]
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x10022618]
lea edx, [esp + 0x2c]
push 0x1001fad0
push edx
call sub.MSVCRT.dll_strstr
mov ebp, eax
add esp, 8
cmp ebp, ebx
jne 0x10004ba4
lea eax, [esp + 0x2c]
push 0x1001facc
push eax
call sub.MSVCRT.dll_strstr
add esp, 8
mov ebp, eax
mov ecx, dword [esp + 0x574]
push str.baijinUPdate
push ecx
call sub.MSVCRT.dll_strstr
add esp, 8
test eax, eax
je 0x10004c23
mov edi, 0x1001fab8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x174]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x174]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10023314
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp ebp, ebx
jne 0x10004c48
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x2c]
push 0x1001fab8
push eax
call esi
lea ecx, [esp + 0x174]
lea edx, [esp + 0x2c]
push ecx
push edx
jmp 0x10004c51
lea eax, [esp + 0x174]
push eax
push ebp
call esi
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 0x10004c86
mov dword [esp + 0x138], str.WinSta0Superman
jmp 0x10004c91
mov dword [esp + 0x15c], 1
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x130]
push ecx
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x48]
push ebx
push eax
push ebx
call dword [0x1002276c]
test eax, eax
je 0x10004ccd
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x574]
push str._TEMP_
push eax
call sub.MSVCRT.dll_strstr
add esp, 8
test eax, eax
je 0x10004cf7
push 4
lea ecx, [esp + 0x27c]
push ebx
push ecx
call dword [0x10022660]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x560
ret 8