Function at 0x404270
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0xa6c]
sub esp, 0xa6c
push 0xffffffffffffffff
push 0x4b98d0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4f2008]
xor eax, ebp
mov dword [ebp + 0xa68], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp + 0xa74]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4042ea
push dword [ebx]
lea ecx, [ebp + 0x5c]
mov dword [ebp + 0x5c], 0
call fcn.004018b5
mov dword [ebp - 4], 0
mov eax, dword [ebx]
cmp byte [eax + 0x48], 0
jne 0x4042f1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x5c]
call fcn.004018d8
xor al, al
jmp 0x404903
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.COMCTL32.DLL
mov dword [ebp + 0x3c], 8
mov dword [ebp + 0x40], 0xff
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitCommonControlsEx
push eax
call esi
test eax, eax
je 0x404324
lea ecx, [ebp + 0x3c]
push ecx
call eax
push 0x4d7e30
call edi
push 0x4d7e3c
push eax
call esi
mov dword [ebp - 0x34], eax
test eax, eax
je 0x404780
mov esi, dword [ebx]
lea edi, [esi + 0x64]
mov ecx, edi
call fcn.00402620
test al, al
jne 0x404780
lea ecx, [esi + 0x4c]
call fcn.00402620
test al, al
jne 0x404780
push edi
lea ecx, [ebp + 0x44]
call fcn.00402693
mov byte [ebp - 4], 1
push 0x4d7e48
call fcn.00401a44
add esp, 4
lea ecx, [ebp + 0x44]
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00401970
mov edi, eax
mov edx, dword [edi + 0x14]
mov ecx, edx
mov ebx, dword [edi + 0x10]
sub ecx, ebx
mov dword [ebp - 0x10], edx
cmp esi, ecx
ja 0x4043de
lea eax, [ebx + esi]
mov esi, edi
mov dword [ebp - 0x1c], eax
mov dword [edi + 0x10], eax
cmp edx, 8
jb 0x4043ae
mov esi, dword [edi]
push dword [ebp - 0x18]
lea eax, [esi + ebx*2]
push 0x4d7e48
push eax
call fcn.00401a12
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
mov eax, dword [ebp - 0x1c]
lea eax, [esi + eax*2]
push eax
call fcn.00401a01
add esp, 0x14
jmp 0x40456f
lea ecx, [ebp + 0x44]
call fcn.00401b82
sub eax, ebx
cmp eax, esi
jb 0x404928
lea eax, [ebx + esi]
lea ecx, [ebp + 0x44]
mov dword [ebp - 0x14], eax
call fcn.00401b82
lea ecx, [ebp + 0x44]
mov esi, eax
call fcn.00401970
mov ecx, dword [ebp - 0x14]
or ecx, 7
mov dword [ebp - 0x24], ecx
cmp ecx, esi
ja 0x40443c
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x40443c
lea eax, [ecx + edx]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004019ef
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x40444e
or ecx, 0xffffffff
jmp 0x404456
cmp ecx, 0x1000
jb 0x404481
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.00495cb6
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40492d
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x404492
test ecx, ecx
je 0x404490
push ecx
call fcn.00495cb6
add esp, 4
jmp 0x404492
xor eax, eax
cmp dword [ebp - 0x10], 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], esi
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], esi
push ebx
jb 0x404520
mov esi, dword [edi]
push esi
push dword [ebp - 0x20]
call fcn.00401a2b
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x18]
push 0x4d7e48
lea eax, [eax + ebx*2]
push eax
call fcn.00401a2b
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], 0
lea eax, [eax + ecx*2]
push eax
call fcn.00401a01
mov eax, dword [ebp - 0x10]
add esp, 0x20
lea ecx, [eax*2 + 2]
cmp ecx, 0x1000
jb 0x40450f
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x40492d
mov esi, edx
push ecx
push esi
call fcn.00495ce6
mov eax, dword [ebp - 0x1c]
add esp, 8
mov dword [edi], eax
jmp 0x40456f
push edi
push esi
call fcn.00401a2b
push dword [ebp - 0x18]
lea eax, [esi + ebx*2]
push 0x4d7e48
push eax
call fcn.00401a2b
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
mov eax, dword [ebp - 0x14]
lea eax, [esi + eax*2]
push eax
call fcn.00401a01
push edi
call fcn.00401a5f
push eax
push 4
call fcn.00401880
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00401a5f
add esp, 0x30
mov ecx, dword [eax]
mov dword [esi], ecx
push dword [ebp - 0x28]
call fcn.00401a44
mov edx, dword [edi + 0x14]
mov esi, eax
mov ebx, dword [edi + 0x10]
mov ecx, edx
sub ecx, ebx
mov dword [ebp - 0x20], esi
add esp, 4
mov dword [ebp - 0x10], edx
cmp esi, ecx
ja 0x4045c9
lea eax, [ebx + esi]
mov dword [edi + 0x10], eax
cmp edx, 8
jb 0x40459d
mov edi, dword [edi]
push esi
push dword [ebp - 0x28]
lea eax, [edi + ebx*2]
push eax
call fcn.00401a12
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
lea eax, [ebx + esi]
lea eax, [edi + eax*2]
push eax
call fcn.00401a01
add esp, 0x14
jmp 0x404756
lea ecx, [ebp + 0x44]
call fcn.00401b82
sub eax, ebx
cmp eax, esi
jb 0x404932
lea eax, [ebx + esi]
lea ecx, [ebp + 0x44]
mov dword [ebp - 0x14], eax
call fcn.00401b82
lea ecx, [ebp + 0x44]
mov esi, eax
call fcn.00401970
mov ecx, dword [ebp - 0x14]
or ecx, 7
mov dword [ebp - 0x2c], ecx
cmp ecx, esi
ja 0x404627
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x404627
lea eax, [ecx + edx]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004019ef
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x404639
or ecx, 0xffffffff
jmp 0x404641
cmp ecx, 0x1000
jb 0x40466c
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.00495cb6
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40492d
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x40467d
test ecx, ecx
je 0x40467b
push ecx
call fcn.00495cb6
add esp, 4
jmp 0x40467d
xor eax, eax
cmp dword [ebp - 0x10], 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], esi
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], esi
push ebx
jb 0x404709
mov esi, dword [edi]
push esi
push dword [ebp - 0x1c]
call fcn.00401a2b
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x28]
lea eax, [eax + ebx*2]
push eax
call fcn.00401a2b
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
lea eax, [eax + ecx*2]
push eax
call fcn.00401a01
mov eax, dword [ebp - 0x10]
add esp, 0x20
lea ecx, [eax*2 + 2]
cmp ecx, 0x1000
jb 0x4046f8
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x40492d
mov esi, edx
push ecx
push esi
call fcn.00495ce6
mov eax, dword [ebp - 0x18]
add esp, 8
mov dword [edi], eax
jmp 0x404756
push edi
push esi
call fcn.00401a2b
push dword [ebp - 0x20]
lea eax, [esi + ebx*2]
push dword [ebp - 0x28]
push eax
call fcn.00401a2b
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
mov eax, dword [ebp - 0x14]
lea eax, [esi + eax*2]
push eax
call fcn.00401a01
push edi
call fcn.00401a5f
push eax
push 4
call fcn.00401880
mov esi, eax
lea eax, [ebp - 0x18]
push eax
call fcn.00401a5f
add esp, 0x30
mov ecx, dword [eax]
mov dword [esi], ecx
mov ebx, dword [ebp - 0x30]
push 0
mov ecx, dword [ebx]
add ecx, 0x4c
call fcn.00401921
push eax
lea ecx, [ebp + 0x44]
call fcn.00401921
push eax
push 0
call dword [ebp - 0x34]
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x44]
call fcn.0040192c
push 0x208
lea eax, [ebp + 0x860]
push 0
push eax
call fcn.00497aa0
mov ebx, dword [ebx]
add esp, 0xc
lea ecx, [ebx + 0x7c]
call fcn.00401921
mov edi, eax
lea edx, [ebp + 0x860]
mov eax, edx
mov esi, 0x103
sub edi, eax
lea ecx, [esi + 0x7ffffefb]
test ecx, ecx
je 0x4047cf
movzx eax, word [edi + edx]
test ax, ax
je 0x4047cf
mov word [edx], ax
add edx, 2
sub esi, 1
jne 0x4047b1
test esi, esi
lea eax, [edx - 2]
cmovne eax, edx
xor ecx, ecx
mov word [eax], cx
cmp word [ebp + 0x860], cx
je 0x4048f2
cmp byte [ebx + 0x94], cl
je 0x40480a
lea ecx, [ebp + 0x860]
call fcn.004073c0
xor eax, eax
mov word [ebp + 0x860], ax
jmp 0x4048f2
push 0x800
lea eax, [ebp + 0x60]
push 0
push eax
call fcn.00497aa0
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp + 0x60]
add esp, 0xc
push 0x3fe
push eax
push str._programfiles_Internet_Exploreriexplore.exe
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
dec eax
cmp eax, 0x3fd
ja 0x404850
lea eax, [ebp + 0x60]
push eax
call esi
cmp eax, 0xffffffff
je 0x404850
test al, 0x10
je 0x40487b
push 0x3fe
lea eax, [ebp + 0x60]
push eax
push str._programfiles_x86__Internet_Exploreriexplore.exe
call edi
dec eax
cmp eax, 0x3fd
ja 0x4048f2
lea eax, [ebp + 0x60]
push eax
call esi
cmp eax, 0xffffffff
je 0x4048f2
test al, 0x10
jne 0x4048f2
lea eax, [ebp + 0x60]
mov dword [ebp], 0x3c
xorps xmm0, xmm0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x860]
movlpd qword [ebp + 0x20], xmm0
push 0x4d7f18
movlpd qword [ebp + 0x28], xmm0
movlpd qword [ebp + 0x30], xmm0
mov dword [ebp + 4], 0
mov dword [ebp + 8], 0
mov dword [ebp + 0xc], 0
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 1
mov dword [ebp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4048f2
push str.ShellExecuteExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4048f2
lea ecx, [ebp]
push ecx
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x5c]
call fcn.004018d8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa68]
xor ecx, ebp
call fcn.00495ca5
lea esp, [ebp + 0xa6c]
pop ebp
ret 4
call fcn.00401b40
call fcn.00499d54
call fcn.00401b40
int3