Function at 0x4063d4
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff400
push ebx
push esi
push edi
mov ebx, 0x45db94
push 0x80000000
call fcn.0040b9a8
push 0x6d
mov eax, dword [ebp + 8]
push eax
call sub.USER32.dll_IsDlgButtonChecked
test eax, eax
je 0x4065ce
push 0x400
lea edx, [ebp - 0x400]
push edx
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
lea ecx, [ebp - 0x400]
push ecx
call fcn.0040809c
mov edi, eax
lea esi, [ebx + 0xb49]
mov eax, edi
lea edx, [ebp - 0x400]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push edx
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x406491
lea ecx, [ebx + 0xb82]
push ecx
lea eax, [ebx + 0xb81]
push eax
lea edx, [ebx + 0xb54]
push edx
call fcn.0040b9e8
lea ecx, [ebp - 0x400]
push ecx
lea eax, [ebx + 0xbc5]
push eax
lea edx, [ebx + 0xb89]
push edx
call fcn.0040b9e8
lea ecx, [ebx + 0xc11]
push ecx
lea eax, [ebx + 0xc02]
push eax
lea edx, [ebx + 0xbc6]
push edx
call fcn.0040b9e8
jmp 0x4064ab
lea ecx, [ebp - 0x400]
push ecx
push 0x205
call fcn.00408028
push eax
call fcn.00414028
add esp, 8
lea eax, [ebx + 0xc66]
push eax
lea edx, [ebx + 0xc65]
push edx
lea ecx, [ebx + 0xc1b]
push ecx
call fcn.0040b9e8
lea eax, [ebx + 0xcb4]
push eax
lea edx, [ebx + 0xcb3]
push edx
lea ecx, [ebx + 0xc67]
push ecx
call fcn.0040b9e8
lea eax, [ebx + 0xd04]
push eax
lea edx, [ebx + 0xd03]
push edx
lea ecx, [ebx + 0xcb5]
push ecx
call fcn.0040b9e8
lea eax, [ebx + 0xd56]
push eax
lea edx, [ebx + 0xd55]
push edx
lea ecx, [ebx + 0xd05]
push ecx
call fcn.0040b9e8
lea eax, [ebx + 0xda5]
push eax
lea edx, [ebx + 0xda4]
push edx
lea ecx, [ebx + 0xd57]
push ecx
call fcn.0040b9e8
lea eax, [ebx + 0xdc2]
push eax
lea edx, [ebx + 0xdc1]
push edx
lea ecx, [ebx + 0xda6]
push ecx
call fcn.0040b9e8
lea eax, [ebx + 0xe09]
push eax
lea edx, [ebx + 0xe08]
push edx
lea ecx, [ebx + 0xde9]
push ecx
call fcn.0040b9e8
lea eax, [ebx + 0xe56]
push eax
lea edx, [ebx + 0xe55]
push edx
lea ecx, [ebx + 0xe30]
push ecx
call fcn.0040b9e8
lea eax, [ebx + 0xea8]
push eax
lea edx, [ebx + 0xea7]
push edx
lea ecx, [ebx + 0xe7d]
push ecx
call fcn.0040b9e8
lea eax, [ebx + 0xef7]
push eax
lea edx, [ebx + 0xef6]
push edx
lea ecx, [ebx + 0xecf]
push ecx
call fcn.0040b9e8
lea eax, [ebx + 0xf49]
push eax
lea edx, [ebx + 0xf48]
push edx
lea ecx, [ebx + 0xf1e]
push ecx
call fcn.0040b9e8
jmp 0x40667a
lea eax, [ebx + 0xf70]
push eax
call fcn.0040bd70
lea edx, [ebx + 0xf9d]
push edx
call fcn.0040bd70
lea ecx, [ebx + 0xfe7]
push ecx
call fcn.0040bd70
lea eax, [ebx + 0x1033]
push eax
call fcn.0040bd70
lea edx, [ebx + 0x1081]
push edx
call fcn.0040bd70
lea ecx, [ebx + 0x10d1]
push ecx
call fcn.0040bd70
lea eax, [ebx + 0x111e]
push eax
call fcn.0040bd70
lea edx, [ebx + 0x1139]
push edx
call fcn.0040bd70
lea ecx, [ebx + 0x117d]
push ecx
lea eax, [ebx + 0x1158]
push eax
call fcn.0040bdf4
lea edx, [ebx + 0x11a8]
push edx
lea ecx, [ebx + 0x117e]
push ecx
call fcn.0040bdf4
lea eax, [ebx + 0x11d0]
push eax
lea edx, [ebx + 0x11a9]
push edx
call fcn.0040bdf4
lea ecx, [ebx + 0x11fb]
push ecx
lea eax, [ebx + 0x11d1]
push eax
call fcn.0040bdf4
push 0x80000002
call fcn.0040b9a8
push 0x400
lea edx, [ebp - 0x800]
push edx
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
lea ecx, [ebp - 0x800]
push ecx
lea eax, [ebx + 0x123b]
push eax
lea edx, [ebx + 0x11fc]
push edx
call fcn.0040b9e8
lea ecx, [ebp - 0xc00]
push ecx
push 0x400
call sub.KERNEL32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0xc00]
push eax
lea edx, [ebx + 0x127b]
push edx
lea ecx, [ebx + 0x123c]
push ecx
call fcn.0040b9e8
lea eax, [ebx + 0x12eb]
push eax
lea edx, [ebx + 0x12c4]
push edx
lea ecx, [ebx + 0x1280]
push ecx
call fcn.0040b9e8
push 0x80000001
call fcn.0040b9a8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4