Function at 0x420e30
Capabilities:
Query environment variable

Disassembly:
mov ecx, dword [esp + 4]
movzx edx, byte [ecx + 2]
mov eax, dword [esp + 8]
sub esp, 8
push ebx
push ebp
push esi
push edi
cmp eax, edx
jge 0x4210fa
shl eax, 4
add eax, dword [ecx + 0xc]
mov edi, eax
cmp byte [edi], 0
mov dword [esp + 0x14], edi
je 0x4210fa
mov ebp, dword [edi + 4]
cmp byte [ebp], 0
jne 0x420e76
mov eax, dword [edi + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov ebx, dword [edi + 8]
xor esi, esi
test ebx, ebx
je 0x420f77
mov eax, dword [ebx]
test eax, eax
je 0x420f77
lea ecx, [ecx]
cmp ebp, eax
jae 0x420eab
cmp esi, 0xfd
jae 0x420eb3
mov al, byte [ebp]
mov byte [esi + 0x4f4aa8], al
inc ebp
inc esi
cmp ebp, dword [ebx]
jb 0x420e94
cmp esi, 0xfd
jb 0x420ebb
cmp ebp, dword [ebx]
jb 0x420fba
mov edi, dword [ebx + 4]
movzx eax, byte [edi + 0x17]
cmp eax, 3
ja case.default.0x420ec7
jmp dword [eax*4 + 0x421108]
mov eax, edi
call fcn.004015f0
cmp dword [0x4f0d40], 0
jne 0x420f10
cmp dword [edi + 0xc], 0
jne 0x420f10
mov edx, dword [edi + 0x18]
push 0
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x420f06
mov dword [0x4f4968], 0
dec eax
jmp 0x420f44
mov dword [0x4f4968], edi
xor eax, eax
jmp 0x420f44
mov eax, dword [edi + 0xc]
jmp 0x420f44
mov ecx, dword [edi + 0xc]
push 0
call fcn.004a6010
jmp 0x420f44
push 0
mov ecx, 0x4f2348
call fcn.00404730
cmp eax, 0xffffffff
jne 0x420f44
xor eax, eax
jmp 0x420f44
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x10]
push eax
push 0
call ecx
add esp, 8
mov edx, 0xfd
sub edx, esi
cmp eax, edx
ja 0x420fca
mov ecx, dword [ebx + 4]
lea eax, [esi + 0x4f4aa8]
push eax
call fcn.004a6010
movzx ecx, word [ebx + 0xa]
mov edi, dword [esp + 0x14]
add ebx, 0xc
add esi, eax
mov eax, dword [ebx]
add ebp, ecx
test eax, eax
jne 0x420e90
mov al, byte [ebp]
test al, al
je 0x420f97
mov edi, edi
cmp esi, 0xfd
jae 0x420f9f
inc ebp
mov byte [esi + 0x4f4aa8], al
mov al, byte [ebp]
inc esi
test al, al
jne 0x420f80
cmp esi, 0xfd
jb 0x420fa5
cmp byte [ebp], 0
jne 0x420fba
xor eax, eax
cmp esi, eax
jne 0x420fde
mov ecx, dword [edi + 4]
push ecx
push eax
push 0x4db828
jmp 0x4210e8
mov edx, dword [edi + 4]
push edx
push 0
push 0x4db798
jmp 0x4210e8
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
push ecx
push 0
push 0x4db798
jmp 0x4210e8
test byte [0x4f4aa4], 1
mov byte [esi + 0x4f4aa8], al
jne 0x42101c
or dword [0x4f4aa4], 1
mov dword [0x4f4a90], 0x4f1c69
mov dword [0x4f4a94], eax
mov dword [0x4f4aa0], 0x4f4aa8
mov dword [0x4f4a9c], 0x1000400
mov dword [0x4f4a98], eax
cmp byte [esp + 0x24], al
jne 0x421077
push 1
push 0x4f4aa8
call fcn.004a66c0
add esp, 8
test eax, eax
je 0x4210fa
push 0
push 3
push 0
push esi
push 0x4f4aa8
mov ecx, 0x4f1cd8
call fcn.00421180
test eax, eax
jne 0x4210fc
push 0x4f4aa8
call fcn.00421930
add esp, 4
test eax, eax
jne 0x421077
mov eax, 0x4f4a88
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp byte [0x4f4aa8], 0
je 0x4210fa
lea edx, [esp + 0x24]
push edx
push 3
lea eax, [esp + 0x28]
push eax
push esi
push 0x4f4aa8
mov ecx, 0x4f1cd8
call fcn.00421180
test eax, eax
jne 0x4210c5
mov edx, dword [esp + 0x20]
xor ecx, ecx
cmp byte [esp + 0x24], cl
setne cl
inc ecx
push ecx
push edx
push 0x4f1cd8
mov ecx, esi
mov edx, 0x4f4aa8
call fcn.00421420
test eax, eax
je 0x4210fa
cmp byte [edi], 2
jne 0x4210fc
mov cl, byte [eax + 0x17]
test cl, cl
jne 0x4210d7
mov ecx, dword [eax + 0xc]
mov cl, byte [ecx + 0x17]
cmp cl, 2
jbe 0x4210fc
push 0x4f4aa8
push 0
push 0x4db8a0
call fcn.0049be50
mov ecx, dword [esp + 0x28]
add esp, 4
push eax
call fcn.0042d2f0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc