Function at 0x410165
Capabilities:
Check for sandbox and av modules
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c4
mov eax, dword [0x45a100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x668], ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
sub eax, 0x110
je 0x4104e3
dec eax
jne 0x4104df
mov eax, dword [ebp + 0x14]
mov esi, 0x440
push 0
pop ebx
dec eax
je 0x410341
dec eax
je 0x410334
sub eax, esi
je 0x410254
dec eax
je 0x41020e
dec eax
dec eax
jne 0x410478
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x446
push edi
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea eax, [ebp - 0x20c]
push eax
push 0x52a408
push edi
call fcn.004120fc
add esp, 0xc
test al, al
je 0x410478
lea eax, [ebp - 0x20c]
push eax
push 0x446
jmp 0x410328
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x441
push edi
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea eax, [ebp - 0x20c]
push eax
push 0x44c604
push edi
call fcn.004120fc
add esp, 0xc
test al, al
je 0x410478
lea eax, [ebp - 0x20c]
push eax
push 0x441
jmp 0x410328
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
push 0x58
lea eax, [ebp - 0x6c4]
push ebx
push eax
call fcn.0042a420
add esp, 0xc
mov dword [ebp - 0x6c4], 0x4c
mov dword [ebp - 0x6c0], edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x6bc], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x6a8], eax
xor eax, eax
mov dword [ebp - 0x68c], eax
lea eax, [ebp - 0x6c4]
push eax
mov dword [ebp - 0x6b4], ebx
mov dword [ebp - 0x6b0], ebx
mov dword [ebp - 0x6ac], 1
mov dword [ebp - 0x6a4], 0x100
mov dword [ebp - 0x6a0], ebx
mov dword [ebp - 0x69c], ebx
mov dword [ebp - 0x698], ebx
mov dword [ebp - 0x680], ebx
mov dword [ebp - 0x690], 0x200000
mov dword [ebp - 0x694], 0x44c590
mov dword [ebp - 0x688], 0x44c5c0
mov dword [ebp - 0x6b8], 0x44c5cc
call dword [sym.imp.sysint32.dll_GetOpenFileNameW]
test eax, eax
je 0x410478
lea eax, [ebp - 0x20c]
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
jmp 0x410478
push ebx
push edi
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x410478
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0x441
push edi
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00411387
pop ecx
test al, al
jne 0x41039d
push ebx
push 0x412366
push edi
push 0x44c678
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
jmp 0x410478
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004121eb
pop ecx
pop ecx
test al, al
jne 0x4103ce
push 0x10
push 0x44c6a0
push 0x44c6b8
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x410478
mov esi, dword [ebp - 0x668]
push 0x104
lea eax, [esi + 0x20c]
push eax
push 0x446
push edi
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea eax, [ebp - 0x414]
add esi, 0x414
push eax
push 0x104
push esi
call fcn.0042a521
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x668]
add eax, 4
push 0x104
push eax
call fcn.0042a521
add esp, 0x18
push esi
push 0x44c0e8
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea eax, [ebp - 0x66c]
push esi
push eax
call fcn.0040889f
mov esi, dword [ebp - 0x668]
pop ecx
pop ecx
push eax
lea ecx, [esi + 0x61c]
call fcn.0040399c
mov ecx, dword [ebp - 0x66c]
test ecx, ecx
je 0x410464
call fcn.00403368
mov dword [ebp - 0x66c], ebx
mov ecx, esi
call fcn.00411e55
push ebx
push edi
call dword [sym.imp.USER32.dll_EndDialog]
mov esi, 0x440
mov eax, dword [ebp + 0x14]
mov ecx, 0x300
shr eax, 0x10
cmp ax, cx
jne 0x4104df
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4104c3
test byte [ebp - 0x664], 0x10
jne 0x4104c3
xor ebx, ebx
inc ebx
push ebx
push 1
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
test esi, esi
je 0x4104df
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41053f
mov esi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
lea eax, [ecx + 4]
push eax
mov ebx, 0x440
push ebx
push edi
call esi
mov eax, dword [ebp - 0x668]
add eax, 0x414
push eax
push 0x441
push edi
call esi
mov eax, dword [ebp - 0x668]
add eax, 0x20c
push eax
push 0x446
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push ebx
push edi
call esi
push eax
call dword [sym.imp.SHLWAPI.dll_SHAutoComplete]
push ebx
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a402
mov esp, ebp
pop ebp
ret 0x14