Function at 0x458fb0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463b74
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x4891c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x239], 1
lea ecx, [ebp - 0x238]
call fcn.00401d20
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.0043c260
add esp, 0xc
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0x47ac78
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [ebp + 0xc]
push eax
push str.SoftwareClasses_sDefaultIcon
lea ecx, [ebp - 0x290]
push ecx
call fcn.00458010
add esp, 0xc
mov dword [ebp - 0x454], eax
mov edx, dword [ebp - 0x454]
mov dword [ebp - 0x458], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x458]
push eax
lea ecx, [ebp - 0x238]
call fcn.00401540
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x290]
call fcn.004026a0
lea ecx, [ebp - 0x21c]
push ecx
push 0x47acd4
lea edx, [ebp - 0x258]
push edx
call fcn.00458010
add esp, 0xc
mov byte [ebp - 4], 2
push 0x47ad20
lea ecx, [ebp - 0x2b0]
call fcn.004024b0
mov byte [ebp - 4], 3
push 1
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x2b0]
push ecx
lea edx, [ebp - 0x238]
push edx
push closesocket
call fcn.00458bc0
add esp, 0x14
movzx eax, al
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x291], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2b0]
call fcn.004026a0
movzx ecx, byte [ebp - 0x291]
test ecx, ecx
je 0x459101
mov byte [ebp - 0x239], 0
mov edx, dword [ebp + 0xc]
push edx
push str.SoftwareClasses_sShell
lea eax, [ebp - 0x2cc]
push eax
call fcn.00458010
add esp, 0xc
mov dword [ebp - 0x45c], eax
mov ecx, dword [ebp - 0x45c]
mov dword [ebp - 0x460], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x460]
push edx
lea ecx, [ebp - 0x238]
call fcn.00401540
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2cc]
call fcn.004026a0
push 0x47ad58
lea ecx, [ebp - 0x2ec]
call fcn.004024b0
mov byte [ebp - 4], 5
push 0x47ad64
lea ecx, [ebp - 0x308]
call fcn.004024b0
mov byte [ebp - 4], 6
push 1
lea eax, [ebp - 0x2ec]
push eax
lea ecx, [ebp - 0x308]
push ecx
lea edx, [ebp - 0x238]
push edx
push closesocket
call fcn.00458bc0
add esp, 0x14
movzx eax, al
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x2cd], al
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x308]
call fcn.004026a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2ec]
call fcn.004026a0
movzx ecx, byte [ebp - 0x2cd]
test ecx, ecx
je 0x4591dc
mov byte [ebp - 0x239], 0
mov edx, dword [ebp + 0xc]
push edx
push str.SoftwareClasses_sShellopencommand
lea eax, [ebp - 0x324]
push eax
call fcn.00458010
add esp, 0xc
mov dword [ebp - 0x464], eax
mov ecx, dword [ebp - 0x464]
mov dword [ebp - 0x468], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x468]
push edx
lea ecx, [ebp - 0x238]
call fcn.00401540
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x324]
call fcn.004026a0
mov eax, dword [ebp + 8]
push eax
push 0x47adb8
lea ecx, [ebp - 0x274]
push ecx
call fcn.00458010
add esp, 0xc
mov byte [ebp - 4], 8
push 0x47add0
lea ecx, [ebp - 0x344]
call fcn.004024b0
mov byte [ebp - 4], 9
push 1
lea edx, [ebp - 0x274]
push edx
lea eax, [ebp - 0x344]
push eax
lea ecx, [ebp - 0x238]
push ecx
push closesocket
call fcn.00458bc0
add esp, 0x14
movzx edx, al
neg edx
sbb edx, edx
add edx, 1
mov byte [ebp - 0x325], dl
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x344]
call fcn.004026a0
movzx eax, byte [ebp - 0x325]
test eax, eax
je 0x4592b0
mov byte [ebp - 0x239], 0
mov ecx, dword [ebp + 0xc]
push ecx
push str._sDefaultIcon
lea edx, [ebp - 0x360]
push edx
call fcn.00458010
add esp, 0xc
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0x46c]
mov dword [ebp - 0x470], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x470]
push ecx
lea ecx, [ebp - 0x238]
call fcn.00401540
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x360]
call fcn.004026a0
lea edx, [ebp - 0x21c]
push edx
push str._s_1
lea eax, [ebp - 0x37c]
push eax
call fcn.00458010
add esp, 0xc
mov dword [ebp - 0x474], eax
mov ecx, dword [ebp - 0x474]
mov dword [ebp - 0x478], ecx
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x478]
push edx
lea ecx, [ebp - 0x258]
call fcn.00401540
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x37c]
call fcn.004026a0
push 0x47ae00
lea ecx, [ebp - 0x39c]
call fcn.004024b0
mov byte [ebp - 4], 0xc
push 1
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x39c]
push ecx
lea edx, [ebp - 0x238]
push edx
push closesocket
call fcn.00458bc0
add esp, 0x14
movzx eax, al
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x37d], al
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x39c]
call fcn.004026a0
movzx ecx, byte [ebp - 0x37d]
test ecx, ecx
je 0x4593ba
mov byte [ebp - 0x239], 0
mov edx, dword [ebp + 0xc]
push edx
push str._sShell
lea eax, [ebp - 0x3b8]
push eax
call fcn.00458010
add esp, 0xc
mov dword [ebp - 0x47c], eax
mov ecx, dword [ebp - 0x47c]
mov dword [ebp - 0x480], ecx
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x480]
push edx
lea ecx, [ebp - 0x238]
call fcn.00401540
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3b8]
call fcn.004026a0
push str.open
lea ecx, [ebp - 0x3d8]
call fcn.004024b0
mov byte [ebp - 4], 0xe
push 0x47ae24
lea ecx, [ebp - 0x3f4]
call fcn.004024b0
mov byte [ebp - 4], 0xf
push 1
lea eax, [ebp - 0x3d8]
push eax
lea ecx, [ebp - 0x3f4]
push ecx
lea edx, [ebp - 0x238]
push edx
push closesocket
call fcn.00458bc0
add esp, 0x14
movzx eax, al
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x3b9], al
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x3f4]
call fcn.004026a0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3d8]
call fcn.004026a0
movzx ecx, byte [ebp - 0x3b9]
test ecx, ecx
je 0x459495
mov byte [ebp - 0x239], 0
mov edx, dword [ebp + 0xc]
push edx
push str._sShellopencommand
lea eax, [ebp - 0x410]
push eax
call fcn.00458010
add esp, 0xc
mov dword [ebp - 0x484], eax
mov ecx, dword [ebp - 0x484]
mov dword [ebp - 0x488], ecx
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x488]
push edx
lea ecx, [ebp - 0x238]
call fcn.00401540
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x410]
call fcn.004026a0
mov eax, dword [ebp + 8]
push eax
push str.__s_____1_
lea ecx, [ebp - 0x42c]
push ecx
call fcn.00458010
add esp, 0xc
mov dword [ebp - 0x48c], eax
mov edx, dword [ebp - 0x48c]
mov dword [ebp - 0x490], edx
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x490]
push eax
lea ecx, [ebp - 0x274]
call fcn.00401540
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x42c]
call fcn.004026a0
push 0x47ae6c
lea ecx, [ebp - 0x44c]
call fcn.004024b0
mov byte [ebp - 4], 0x12
push 1
lea ecx, [ebp - 0x274]
push ecx
lea edx, [ebp - 0x44c]
push edx
lea eax, [ebp - 0x238]
push eax
push closesocket
call fcn.00458bc0
add esp, 0x14
movzx ecx, al
neg ecx
sbb ecx, ecx
add ecx, 1
mov byte [ebp - 0x42d], cl
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x44c]
call fcn.004026a0
movzx edx, byte [ebp - 0x42d]
test edx, edx
je 0x45959c
mov byte [ebp - 0x239], 0
mov byte [ebp - 0x44d], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x274]
call fcn.004026a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x258]
call fcn.004026a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.004026a0
mov al, byte [ebp - 0x44d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043bc88
mov esp, ebp
pop ebp
ret