Function at 0x421920
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fdef7
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x6a3000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
lea edi, [ebx + 0x124]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x421985
cmp dword [ebp - 0x21c], 0
je 0x421985
mov al, 1
jmp 0x421987
xor al, al
test al, al
mov esi, 0x66d374
mov ecx, 0x66d384
cmove esi, ecx
mov dword [ebp - 4], 0
call fcn.00483151
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x421c1c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x21c]
test esi, 0xffff0000
jne 0x4219e1
movzx eax, si
push eax
call fcn.004100f0
jmp 0x4219e7
push esi
call fcn.00422c80
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 2
push eax
push ecx
lea eax, [ebp - 0x224]
mov ecx, edi
push eax
call fcn.00423b30
mov dword [ebp - 4], 0xffffffff
or esi, 0xffffffff
mov edx, dword [ebp - 0x21c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x421a2b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
mov edx, 0x645dc8
lea ecx, [ebp - 0x21c]
call fcn.00476b10
add esp, 4
push eax
push ecx
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 3
push eax
mov ecx, edi
call fcn.00423dc0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x421a7b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
mov edx, 0x645db8
lea ecx, [ebp - 0x21c]
call fcn.00476b10
add esp, 4
push eax
push ecx
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 4
push eax
mov ecx, edi
call fcn.00424050
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x421acb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
mov edx, 0x645da8
lea ecx, [ebp - 0x21c]
call fcn.00476b10
add esp, 4
push eax
push ecx
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 5
push eax
mov ecx, edi
call fcn.004242e0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x421b1b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
mov edx, 0x645d78
lea ecx, [ebp - 0x21c]
call fcn.00476b10
add esp, 4
push eax
push ecx
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 6
push eax
mov ecx, edi
call fcn.00424570
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x421b69
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x421bf9
cmp dword [ebp - 0x21c], 0
je 0x421bf9
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005d0030
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push str.ProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x103
ja 0x421bf9
lea eax, [ebp - 0x218]
push eax
push ecx
lea eax, [ebp - 0x224]
mov ecx, edi
push eax
call fcn.00424800
lea eax, [ebp - 0x218]
push eax
push ecx
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebx + 0x144]
call fcn.00424800
mov byte [ebx + 0x164], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ca888
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040c5c0
int3