Function at 0x428558
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x668d67
call fcn.006313fc
sub esp, 0x6c8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x6f0]
xor ebx, ebx
mov dword [esp + 0x10], ebx
test esi, esi
je 0x42857e
mov dword [esi], ebx
mov ebp, 0x104
lea eax, [esp + 0x2c4]
push ebp
push eax
push ebx
push dword [esp + 0x6f4]
push SysReAllocString
call fcn.00481e0a
test al, al
je 0x428ab0
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
lea eax, [esp + 0xc0]
push ebp
push eax
lea eax, [esp + 0x2d0]
push eax
call edi
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0x64]
push str._s_shell
push eax
call fcn.0047224d
add esp, 0xc
cmp dword [esp + 0x74], 8
mov eax, dword [esp + 0x60]
mov dword [esp + 0x6e0], ebx
jae 0x4285f0
lea eax, [esp + 0x60]
push ebp
lea ecx, [esp + 0x4d4]
push ecx
push ebx
push eax
push SysReAllocString
call fcn.00481e0a
test al, al
jne 0x4286a6
lea eax, [esp + 0x2c8]
push eax
lea eax, [esp + 0x4c]
push str._s_shell
push eax
call fcn.0047224d
add esp, 0xc
lea ecx, [esp + 0x60]
push eax
call fcn.0044dbe6
push ebx
xor ebx, ebx
lea ecx, [esp + 0x4c]
inc ebx
push ebx
call fcn.0042341c
cmp dword [esp + 0x74], 8
mov eax, dword [esp + 0x60]
jae 0x42864e
lea eax, [esp + 0x60]
push ebp
lea ecx, [esp + 0x4d4]
push ecx
xor ecx, ecx
push ecx
push eax
push SysReAllocString
call fcn.00481e0a
test al, al
jne 0x42867c
push ebp
push 0x689f9c
lea eax, [esp + 0x4d8]
push eax
call fcn.004243e1
lea eax, [esp + 0x4d0]
push eax
lea eax, [esp + 0x2cc]
push eax
lea eax, [esp + 0xb0]
push str._s_shell_scommand
push eax
call fcn.0047224d
add esp, 0x10
push 2
pop ecx
jmp 0x4286cd
lea eax, [esp + 0x4d0]
push eax
lea eax, [esp + 0xc4]
push eax
lea eax, [esp + 0x38]
push str._s_shell_scommand
push eax
call fcn.0047224d
add esp, 0x10
xor ebx, ebx
inc ebx
mov ecx, ebx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x90]
push eax
call fcn.00422ed9
mov eax, dword [esp + 0x14]
mov dword [esp + 0x6e0], 2
test al, 2
je 0x42870c
and eax, 0xfffffffd
lea ecx, [esp + 0xa8]
mov dword [esp + 0x14], eax
xor eax, eax
push eax
push ebx
call fcn.0042341c
mov eax, dword [esp + 0x14]
mov byte [esp + 0x6e0], 3
test al, 1
je 0x428725
xor eax, eax
lea ecx, [esp + 0x30]
push eax
push ebx
call fcn.0042341c
mov ebp, 0x208
xor eax, eax
push ebp
push eax
lea eax, [esp + 0xc8]
push eax
call fcn.00635a30
xor eax, eax
push ebp
push eax
lea eax, [esp + 0x2dc]
push eax
call fcn.00635a30
mov eax, dword [esp + 0xa8]
add esp, 0x18
cmp dword [esp + 0xa4], 8
jae 0x428767
lea eax, [esp + 0x90]
mov ebp, 0x104
lea ecx, [esp + 0x2c8]
push ebp
push ecx
xor ecx, ecx
push ecx
push eax
push SysReAllocString
call fcn.00481e0a
test al, al
je 0x428a58
push ebp
lea eax, [esp + 0xc4]
push eax
lea eax, [esp + 0x2d0]
push eax
call edi
test esi, esi
je 0x4287e8
lea ecx, [esp + 0xc0]
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4287ae
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
call fcn.0045d923
mov edx, eax
lea ecx, [esp + 0xc0]
mov eax, ecx
mov dword [esi], edx
sub edx, eax
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4287d9
cmp byte [esp + 0x6f8], 0
je 0x428a8a
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x1c]
call fcn.004249e7
xor ecx, ecx
mov dword [esp + 0x5c], 7
xor eax, eax
mov dword [esp + 0x58], ecx
mov word [esp + 0x48], ax
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
mov eax, edi
mov byte [esp + 0x6e0], 5
cmp ebp, 8
jae 0x428837
lea eax, [esp + 0x18]
push 0x22
pop edx
cmp word [eax], dx
jne 0x428892
push dword [esp + 0x28]
lea eax, [esp + 0x34]
push ebx
push eax
lea ecx, [esp + 0x24]
call fcn.0043d03a
push eax
lea ecx, [esp + 0x1c]
call fcn.0044dbe6
xor eax, eax
lea ecx, [esp + 0x30]
push eax
push ebx
call fcn.0042341c
push 0x22
pop eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
push ebx
xor eax, eax
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00435701
mov ebp, dword [esp + 0x2c]
mov ecx, eax
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
jmp 0x4288b0
push ebx
push ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x20
push eax
lea ecx, [esp + 0x24]
call fcn.00435701
mov ecx, eax
mov dword [esp + 0x14], eax
cmp ecx, 0xffffffff
je 0x428922
cmp ebp, 8
jae 0x4288be
lea edi, [esp + 0x18]
push 0x22
pop edx
push dword [esp + 0x28]
xor eax, eax
cmp word [edi + ecx*2], dx
sete al
add eax, ecx
lea ecx, [esp + 0x1c]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0043d03a
push eax
lea ecx, [esp + 0x4c]
call fcn.0044dbe6
xor eax, eax
lea ecx, [esp + 0x30]
push eax
push ebx
call fcn.0042341c
push dword [esp + 0x14]
xor eax, eax
lea ecx, [esp + 0x1c]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0043d03a
push eax
lea ecx, [esp + 0x1c]
call fcn.0044dbe6
xor eax, eax
lea ecx, [esp + 0x30]
push eax
push ebx
call fcn.0042341c
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x7c]
call fcn.00422efb
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x78]
push eax
add eax, 0xfffffffc
mov byte [esp + 0x6e4], 6
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0043d03a
mov edi, 0x68962c
mov byte [esp + 0x6e0], 7
push edi
mov ecx, eax
call fcn.00434c1f
test eax, eax
mov byte [esp + 0x6e0], 6
lea ecx, [esp + 0x30]
setne bl
xor eax, eax
push eax
push 1
call fcn.0042341c
test bl, bl
je 0x42899b
push edi
call fcn.004236bc
pop ecx
push eax
push edi
lea ecx, [esp + 0x80]
call fcn.004234f9
lea eax, [esp + 0x18]
push eax
call fcn.0045e925
test al, al
jne 0x4289cc
lea eax, [esp + 0x78]
push eax
call fcn.0045e925
test al, al
jne 0x4289cc
xor ebx, ebx
inc ebx
test esi, esi
je 0x428a2e
push ebx
push dword [esi]
call fcn.0045d916
xor edi, edi
mov dword [esi], edi
jmp 0x428a30
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0xac]
push eax
call fcn.0043d0b6
mov esi, eax
lea eax, [esp + 0x18]
mov byte [esp + 0x6e0], 8
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0043d0b6
push esi
push eax
mov byte [esp + 0x6e8], 9
call fcn.0042711b
mov bl, al
lea ecx, [esp + 0x30]
xor eax, eax
push eax
push 1
call fcn.0042341c
xor eax, eax
lea ecx, [esp + 0xa8]
push eax
push 1
call fcn.0042341c
test bl, bl
je 0x428a60
xor ebx, ebx
inc ebx
xor edi, edi
push edi
push ebx
lea ecx, [esp + 0x80]
call fcn.0042341c
xor eax, eax
lea ecx, [esp + 0x48]
push eax
push ebx
call fcn.0042341c
xor eax, eax
lea ecx, [esp + 0x18]
push eax
push ebx
call fcn.0042341c
xor eax, eax
mov byte [esp + 0x13], al
jmp 0x428a90
xor eax, eax
lea ecx, [esp + 0x78]
xor ebx, ebx
push eax
inc ebx
push ebx
call fcn.0042341c
xor eax, eax
lea ecx, [esp + 0x48]
push eax
push ebx
call fcn.0042341c
xor eax, eax
lea ecx, [esp + 0x18]
push eax
push ebx
call fcn.0042341c
mov byte [esp + 0x13], bl
xor eax, eax
push eax
push ebx
lea ecx, [esp + 0x98]
call fcn.0042341c
xor eax, eax
lea ecx, [esp + 0x60]
push eax
push ebx
call fcn.0042341c
mov al, byte [esp + 0x13]
pop edi
mov ecx, dword [esp + 0x6d4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10