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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41c3eb
mov eax, dword fs:[0]
push eax
sub esp, 0xa78
mov eax, dword [0x426008]
xor eax, esp
mov dword [esp + 0xa70], eax
push ebx
push esi
push edi
mov eax, dword [0x426008]
xor eax, esp
push eax
lea eax, [esp + 0xa88]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
call fcn.0040a240
test edi, edi
jne 0x409df5
xor al, al
jmp 0x40a07e
mov eax, dword [esi]
cmp byte [eax + 0x1033], 0
je 0x409dee
push str.COMCTL32.DLL
mov dword [esp + 0x58], 8
mov dword [esp + 0x5c], 0xff
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
push str.InitCommonControlsEx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x409e34
lea ecx, [esp + 0x54]
push ecx
call eax
push str.User32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.MessageBoxW
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x14], eax
test eax, eax
je 0x409edd
mov eax, dword [esi]
cmp dword [eax + 0x1068], 0
je 0x409edd
cmp dword [eax + 0x1050], 0
je 0x409edd
add eax, 0x1058
lea ecx, [esp + 0x5c]
push eax
call fcn.00405040
mov dword [esp + 0xa90], 0
lea ecx, [esp + 0x5c]
push 0x4228b0
call fcn.004050b0
push edi
lea ecx, [esp + 0x60]
call fcn.004050b0
mov ecx, dword [esi]
add ecx, 0x1040
cmp dword [ecx + 0x14], 8
jb 0x409eb1
mov ecx, dword [ecx]
cmp dword [esp + 0x70], 8
lea eax, [esp + 0x5c]
push 0
cmovae eax, dword [esp + 0x60]
push ecx
push eax
push 0
call dword [esp + 0x24]
mov dword [esp + 0xa90], 0xffffffff
lea ecx, [esp + 0x5c]
call fcn.00402b30
xor eax, eax
push 0x206
push eax
mov word [esp + 0x7c], ax
lea eax, [esp + 0x7e]
push eax
call fcn.00416110
mov eax, dword [esi]
add esp, 0xc
add eax, 0x1070
cmp dword [eax + 0x14], 8
jb 0x409f06
mov eax, dword [eax]
push eax
lea eax, [esp + 0x78]
push 0x103
push eax
call fcn.00415a49
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
add esp, 0xc
cmp word [esp + 0x74], 0
je 0x40a06a
mov eax, dword [esi]
cmp byte [eax + 0x1088], 0
je 0x409f4b
lea ecx, [esp + 0x74]
call fcn.0040c2a0
xor eax, eax
mov word [esp + 0x74], ax
jmp 0x40a06a
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x284], ax
lea eax, [esp + 0x286]
push eax
call fcn.00416110
add esp, 0xc
lea eax, [esp + 0x27c]
push 0x3fe
push eax
push str._programfiles_Internet_Exploreriexplore.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
dec eax
cmp eax, 0x3fd
ja 0x409fa4
lea eax, [esp + 0x27c]
push eax
call esi
cmp eax, 0xffffffff
je 0x409fa4
test al, 0x10
je 0x409fe3
push 0x3fe
lea eax, [esp + 0x280]
push eax
push str._programfiles_x86__Internet_Exploreriexplore.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x3fd
ja 0x40a06a
lea eax, [esp + 0x27c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40a06a
test al, 0x10
jne 0x40a06a
push 0x38
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00416110
add esp, 0xc
mov dword [esp + 0x18], 0x3c
lea eax, [esp + 0x27c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x74]
mov dword [esp + 0x20], 0
push 0x422e78
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 1
mov dword [esp + 0x54], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40a06a
push str.ShellExecuteExW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a067
lea ecx, [esp + 0x18]
push ecx
call eax
push esi
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40a075
push eax
call edi
test ebx, ebx
je 0x40a07c
push ebx
call edi
mov al, 1
mov ecx, dword [esp + 0xa88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa70]
xor ecx, esp
call fcn.0040e73a
mov esp, ebp
pop ebp
ret 4