Function at 0x406c9d
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x724
mov eax, dword [0x41f0e4]
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 [0x41f510], 4
mov edi, eax
jne 0x406d2a
add edi, 3
test edi, edi
jne 0x406d3b
push 0x4f
lea eax, [ebp - 0xa8]
push eax
push 0x1d
jmp 0x406d4b
cmp edi, 1
jne 0x406d53
push 0x4f
lea eax, [ebp - 0xa8]
push eax
push 0x30
pop edx
call fcn.0041377e
jmp 0x406d77
cmp edi, 3
jne 0x406f37
movzx eax, word [0x41f010]
mov edx, 0xbd4
push eax
push 0x4f
lea eax, [ebp - 0xa8]
push eax
call fcn.00414ffa
push 0x103
lea eax, [ebp - 0x2b0]
push eax
push 0x1c
pop edx
call fcn.0041377e
test eax, eax
jle 0x406dd9
movzx edx, word [ebp + eax*2 - 0x2b2]
mov ecx, esi
cmp word [ebp - 0x2b0], cx
je 0x406de2
cmp ecx, eax
jge 0x406de2
cmp word [ebp + ecx*2 - 0x2b0], dx
jne 0x406dcc
cmp ecx, 0x104
jae 0x406f48
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 0x406da2
jmp 0x406de2
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 [0x41f510], 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], 0x402a38
je 0x406e95
cmp edi, dword [ebx + 0x3c]
jge 0x406f37
lea eax, [ebp - 0x720]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x406f37
test edi, edi
jne 0x406ec2
mov eax, dword [ebx + 0x38]
lea ecx, [ebp - 0x4b8]
push ecx
mov ecx, dword [eax + 4]
call fcn.0040b0f5
jmp 0x406ef7
cmp edi, 1
jne 0x406ee0
cmp dword [ebx + 0x3c], edi
jle 0x406efd
mov eax, dword [ebx + 0x38]
lea ecx, [ebp - 0x4b8]
push ecx
mov ecx, dword [eax + 0x14]
call fcn.0040c860
jmp 0x406ef7
cmp edi, 3
jne 0x406efd
mov eax, dword [ebx + 0x38]
lea ecx, [ebp - 0x4b8]
push ecx
mov ecx, dword [eax + 4]
call fcn.0040b0f5
mov esi, eax
test esi, esi
jne 0x406f33
xor eax, eax
push 0x103
mov word [ebp - 0x4b8], ax
lea eax, [ebp - 0x4b8]
push eax
push 0x1e
pop edx
call fcn.0041377e
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 0x406f39
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d020
leave
ret
call fcn.0041d33e
int3