Function at 0x4970eb
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca5c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xac
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x34]
test eax, eax
je 0x4971b1
lea eax, [ebp + 0x24]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x70], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
movzx eax, byte [eax]
test eax, eax
je 0x49718b
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x497170
mov byte [ebp - 0x11], 0
push 0x1942
push 1
push 0x7130
push 1
push 1
lea eax, [ebp - 0x11]
push eax
call fcn.0047a8d9
add esp, 0x18
jmp 0x497189
mov byte [ebp - 0x12], 0
movzx eax, byte [ebp - 0x12]
test eax, eax
je 0x497189
push 0
push 0xf42
call dword [sym.imp.USER32.dll_SetWindowTextA]
jmp 0x4971ac
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x40], eax
push dword [ebp - 0x40]
push 1
push 0
push 1
push 0x1257
push 0x1d74
call fcn.0048ccf1
add esp, 0x18
jmp 0x4973fd
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x54], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
movzx eax, byte [eax]
test eax, eax
je 0x49737c
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax]
test eax, eax
je 0x49732c
mov dword [ebp - 0x28], 0x4598
mov dword [ebp - 0x60], str.dsq_nbhjr_ylqmgnif_oxpdp_ysrtnlmv_jhb_jtqw_wnczg_fwjefzdg_zjnqry_esmamdvhb_oale_zjctyle
cmp dword [ebp - 0x28], 0x4614
jle 0x4972ae
and dword [ebp - 0x20], 0
jmp 0x497245
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2851
jge 0x4972ae
and dword [ebp - 0x24], 0
jmp 0x49725b
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x165c
jge 0x4972ac
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], edx
push dword [ebp - 0x9c]
push dword [ebp - 0xa0]
lea ecx, [ebp - 0xbc]
call fcn.00401993
pop ecx
pop ecx
mov ecx, eax
call fcn.00450c0f
push eax
call fcn.004b40b7
pop ecx
lea ecx, [ebp - 0xbc]
call fcn.00450c05
jmp 0x497254
jmp 0x49723e
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xa4], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0x4242
jge 0x4972cd
push dword [ebp - 0x60]
call fcn.004b40b7
pop ecx
jmp 0x4972e9
or dword [ebp - 4], 0xffffffff
jmp 0x4972f3
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
movzx eax, byte [eax]
test eax, eax
je 0x49732a
push 1
push 0x6598
push 0x656a
push 0x225c
push 0x3068
push 1
push 1
push 1
call fcn.00476b2c
add esp, 0x20
jmp 0x497377
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
jmp 0x49735a
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 2
jge 0x497377
mov eax, dword [ebp - 0x1c]
push dword [eax]
mov ecx, dword [ebp - 0x4c]
call fcn.00450e1d
mov dword [eax], 0x4ccb63e8
jmp 0x49734f
jmp 0x4973fd
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
movzx eax, byte [eax]
test eax, eax
je 0x4973a0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
jmp 0x4973fd
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x4973dd
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 1
jge 0x4973fd
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x94]
call fcn.00450e1d
mov dword [eax], 0xfffffff8
jmp 0x4973d2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret