Function at 0x40678c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x724
mov eax, dword [0x41d0e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x208
lea eax, [ebp - 0x4b8]
push edi
xor esi, esi
mov ebx, ecx
push esi
push eax
mov dword [ebp - 0x6c4], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa8]
push 0xa0
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2b0]
push edi
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x6c0]
push edi
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
push esi
push 0x130b
push dword [ebx + 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x41d4e8], 4
mov edi, eax
jne 0x406819
add edi, 3
test edi, edi
jne 0x40682a
push 0x4f
lea eax, [ebp - 0xa8]
push eax
push 0x1d
jmp 0x40683a
cmp edi, 1
jne 0x406842
push 0x4f
lea eax, [ebp - 0xa8]
push eax
push 0x30
pop edx
call fcn.00412f67
jmp 0x406866
cmp edi, 3
jne 0x406a26
movzx eax, word [0x41d010]
mov edx, 0xbd4
push eax
push 0x4f
lea eax, [ebp - 0xa8]
push eax
call fcn.00414712
push 0x103
lea eax, [ebp - 0x2b0]
push eax
push 0x1c
pop edx
call fcn.00412f67
test eax, eax
jle 0x4068c8
movzx edx, word [ebp + eax*2 - 0x2b2]
mov ecx, esi
cmp word [ebp - 0x2b0], cx
je 0x4068d1
cmp ecx, eax
jge 0x4068d1
cmp word [ebp + ecx*2 - 0x2b0], dx
jne 0x4068bb
cmp ecx, 0x104
jae 0x406a37
xor ebx, ebx
mov word [ebp + ecx*2 - 0x2b0], bx
mov ebx, dword [ebp - 0x6c4]
inc ecx
cmp word [ebp + ecx*2 - 0x2b0], si
jne 0x406891
jmp 0x4068d1
xor eax, eax
mov word [ebp - 0x2b0], ax
lea eax, [ebp - 0x6c0]
push eax
push esi
push esi
push 5
push dword [ebx + 8]
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, eax
mov dword [ebp - 0x720], 0x58
mov eax, dword [ebx + 8]
neg ecx
mov dword [ebp - 0x71c], eax
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x714], eax
sbb ecx, ecx
lea eax, [ebp - 0x4b8]
mov dword [ebp - 0x710], esi
mov dword [ebp - 0x704], eax
not ecx
lea eax, [ebp - 0x6c0]
mov dword [ebp - 0x70c], esi
and ecx, eax
mov dword [ebp - 0x708], 1
cmp dword [0x41d4e8], 4
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x700], 0x104
mov dword [ebp - 0x6fc], esi
mov dword [ebp - 0x6f8], esi
mov dword [ebp - 0x6f4], ecx
mov dword [ebp - 0x6f0], eax
mov dword [ebp - 0x6ec], 0x2806
mov dword [ebp - 0x6e4], 0x4029a0
je 0x406984
cmp edi, dword [ebx + 0x3c]
jge 0x406a26
lea eax, [ebp - 0x720]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x406a26
test edi, edi
jne 0x4069b1
mov ecx, dword [ebx + 0x38]
lea eax, [ebp - 0x4b8]
push eax
mov ecx, dword [ecx + 4]
call fcn.0040ab86
jmp 0x4069e6
cmp edi, 1
jne 0x4069cf
cmp dword [ebx + 0x3c], edi
jle 0x4069ec
mov ecx, dword [ebx + 0x38]
lea eax, [ebp - 0x4b8]
push eax
mov ecx, dword [ecx + 0x14]
call fcn.0040c35a
jmp 0x4069e6
cmp edi, 3
jne 0x4069ec
mov ecx, dword [ebx + 0x38]
lea eax, [ebp - 0x4b8]
push eax
mov ecx, dword [ecx + 4]
call fcn.0040ab86
mov esi, eax
test esi, esi
jne 0x406a22
xor eax, eax
push 0x103
mov word [ebp - 0x4b8], ax
lea eax, [ebp - 0x4b8]
push eax
push 0x1e
pop edx
call fcn.00412f67
push 0x30
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x4b8]
push eax
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, esi
jmp 0x406a28
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b570
leave
ret
call fcn.0041b84a
int3