Function at 0x403020
Capabilities:
Query environment variable
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x974c
call fcn.004277d0
push ebx
push ebp
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
push 0x25
push 0x25
lea eax, [esp + 0x260]
mov ebp, 0x9004
push str._cProgramFiles_c
push eax
mov dword [esp + 0x2c], ebp
call ebx
add esp, 0x10
lea ecx, [esp + 0x38]
lea edx, [esp + 0x258]
push pe_nt_image_headers32
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [esp + 0x38]
mov byte [esp + 0x38], 0x63
push eax
call dword [sym.imp.MSVCRT.dll__strlwr]
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x48]
push ecx
lea eax, [esp + 0x4c]
push edx
lea ecx, [esp + 0x50]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x58]
push edx
lea ecx, [esp + 0x5c]
push eax
lea edx, [esp + 0x60]
push ecx
lea eax, [esp + 0x64]
push edx
lea ecx, [esp + 0x68]
push eax
lea edx, [esp + 0x6c]
push ecx
lea eax, [esp + 0x70]
push edx
lea ecx, [esp + 0x74]
push eax
lea edx, [esp + 0x78]
push ecx
lea eax, [esp + 0x7c]
push edx
push eax
lea ecx, [esp + 0x3a4]
push str._sinternet_exploreriexplore.exee_inetinfo.exee_svchost.exee_system.exee_avp.exee__swindows_media_playerwmplayer.exee__s360360safe360safe.exee__s360360se3360se.exee__s_tencent_tt_bin_ttraveler.exee__smozilla_firefox_firefox.exee__smyie2myie.exee__smaxthon2maxthon.exee__s_sogouexplorer_sogouexplorer.exee__s_final_codecsmyplayer.exee__swisecopyrighturlplayer.exee__swisedisplayurlplayer.exee__swisecopyright_flashform.exee__swisedisplay_flashform.exee__swisecopyright_nbplayer.exee__swisedisplay_nbplayer.exee__swisecopyright_fvideoplayer.exee__swisedisplay_fvideoplayer.exee
push ecx
call ebx
add esp, 0x54
xor edi, edi
lea edx, [esp + 0x1c]
mov byte [esp + 0x13], 0
push edi
push 5
push 2
push 1
push edx
mov dword [esp + 0x30], edi
push edi
call dword [0x433afc]
mov esi, eax
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jae 0x403149
push edi
push 5
push 2
lea eax, [esp + 0x28]
push 1
lea ecx, [esp + 0x768]
push eax
push ecx
mov dword [esp + 0x34], ebp
call dword [0x433afc]
lea edx, [esp + 0x758]
mov esi, eax
mov dword [esp + 0x14], edx
jmp 0x40317b
add eax, 0x20
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x40317b
mov ecx, dword [esp + 0x14]
push edi
push 5
push 2
lea eax, [esp + 0x28]
push 1
push eax
push ecx
mov byte [esp + 0x2b], 1
call dword [0x433afc]
mov esi, eax
cmp esi, edi
je 0x4031dc
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
push esi
lea edx, [esp + 0x1c]
push 0x4313e4
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x24]
add esp, 0xc
push 0x40
push 0x4313d8
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov al, byte [esp + 0x13]
test al, al
je 0x4031c3
mov ecx, dword [esp + 0x14]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x974c
ret
mov eax, dword [esp + 0x758]
mov dword [esp + 0x18], edi
cmp eax, edi
jbe 0x40331d
mov ebp, dword [sym.imp.WS2_32.dll_htons]
lea esi, [esp + 0x76c]
mov eax, dword [esi - 4]
lea edx, [esp + 0x24]
push edx
push eax
mov byte [esp + 0x2c], 0
call fcn.00402c40
mov cx, word [esi]
add esp, 8
push ecx
call ebp
and eax, 0xffff
lea edx, [esp + 0x24]
push eax
push edx
lea eax, [esp + 0x140]
push str._s:_d_
push eax
call ebx
mov cx, word [esi - 8]
add esp, 0x10
push ecx
call ebp
mov ecx, dword [esp + 0x9764]
and eax, 0xffff
cmp ecx, eax
jne 0x403302
mov eax, dword [esp + 0x9760]
lea edx, [esp + 0x138]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x403302
mov edx, dword [esi + 4]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x158]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x158]
push ecx
push edx
call fcn.00402c80
lea edi, [esp + 0x160]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], ecx
je 0x403302
lea eax, [esp + 0x158]
push eax
call dword [sym.imp.MSVCRT.dll__strlwr]
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
lea ecx, [esp + 0x15c]
push str..exe
push ecx
call edi
add esp, 0xc
test eax, eax
jne 0x40333f
lea edx, [esp + 0x158]
push str..bat
push edx
call edi
add esp, 8
test eax, eax
jne 0x40333f
lea eax, [esp + 0x158]
push str..cmd
push eax
call edi
add esp, 8
test eax, eax
jne 0x40333f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x758]
inc eax
add esi, 0x18
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x4031fc
mov al, byte [esp + 0x13]
test al, al
je 0x403332
mov eax, dword [esp + 0x14]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x974c
ret
mov eax, dword [esp + 0x20]
mov byte [esp + eax + 0x158], 0x1b
mov byte [esp + eax + 0x159], 0
cmp byte [esp + 0x159], 0x3a
jne 0x403365
mov byte [esp + 0x158], 0x63
mov edx, dword [esp + 0x9768]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jbe 0x4033d3
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea ecx, [esp + 0x158]
push ecx
push edx
call esi
add esp, 8
test eax, eax
jne 0x4033d3
lea edx, [esp + 0x158]
lea eax, [esp + 0x358]
push edx
push eax
call esi
add esp, 8
test eax, eax
jne 0x4033d3
mov al, byte [esp + 0x13]
test al, al
je 0x4033c3
mov ecx, dword [esp + 0x14]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x974c
ret
mov al, byte [esp + 0x13]
test al, al
je 0x403332
mov edx, dword [esp + 0x14]
push edx
jmp 0x40332a