Function at 0x41d9c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x448294
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x28c4
call fcn.004344e0
mov eax, dword [0x4630d8]
xor eax, esp
mov dword [esp + 0x28c0], eax
push ebx
push esi
push edi
mov eax, dword [0x4630d8]
xor eax, esp
push eax
lea eax, [esp + 0x28d8]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push 0x456411
lea ecx, [esp + 0x28]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
call fcn.00401f20
mov eax, dword [edi]
mov edx, dword [eax + 0x50]
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
mov dword [esp + 0x28e4], ebx
call edx
push 0x456411
lea ecx, [esp + 0x38]
mov byte [esp + 0x28e4], 1
call fcn.00401f20
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040ed50
push 0x64
lea eax, [esp + 0x68]
push ebx
push eax
mov byte [esp + 0x28ec], 3
call fcn.00432e50
push 0x400
lea ecx, [esp + 0xdc]
push ebx
push ecx
call fcn.00432e50
add esp, 0x18
push 0x456411
lea ecx, [esp + 0x18]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x9c], 0x880026
mov dword [esp + 0xac], 0x418c00
mov dword [esp + 0x68], 0x58
mov dword [esp + 0x88], 0x400
call fcn.004142f0
test eax, eax
je 0x41dba8
sub esp, 8
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.00401050
lea ecx, [esp + 0x54]
call fcn.00416fe0
mov eax, dword [esp + 0x58]
cmp dword [eax - 0xc], ebx
mov byte [esp + 0x28e0], 4
je 0x41db1a
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x50]
call fcn.00416ca0
mov edx, dword [eax + 4]
cmp dword [edx - 0xc], 0
mov ebx, 1
mov byte [esp + 0x13], bl
jg 0x41db1f
mov byte [esp + 0x13], 0
test bl, 1
je 0x41db2d
lea ecx, [esp + 0x1c]
call fcn.0040ed80
cmp byte [esp + 0x13], 0
mov eax, dword [esp + 0x18]
je 0x41db71
cmp dword [eax - 4], 1
jle 0x41db4f
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401c20
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xcc]
sub edx, eax
jmp 0x41db60
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41db60
jmp 0x41db8f
cmp dword [eax - 4], 1
jle 0x41db88
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401c20
mov eax, dword [esp + 0x18]
mov dword [esp + 0x90], eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x28e0], 3
mov dword [esp + 0x4c], vtable.CPBasePath.0
call fcn.0040ed80
test esi, esi
lea edx, [esp + 0xcc]
mov dword [esp + 0x80], edx
je 0x41dc8e
lea eax, [esp + 0x8cc]
push eax
mov ecx, esi
call fcn.0041c500
mov eax, dword [esi + 0x3c]
lea ecx, [esp + 0x8cc]
mov dword [esp + 0x70], ecx
push eax
mov ecx, esi
call fcn.0041bff0
push 1
lea edx, [eax + 1]
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
mov dword [esp + 0x88], edx
call fcn.0041c320
add eax, 4
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e4], 5
call fcn.00401b30
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28e0], 3
call fcn.0040ed80
push 1
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x34]
call fcn.004081b0
push 0x44b508
mov ecx, eax
mov byte [esp + 0x28e4], 6
call fcn.00414510
lea ecx, [esp + 0x1c]
mov edi, eax
mov byte [esp + 0x28e0], 3
call fcn.0040ed80
test edi, edi
je 0x41dc68
push 1
lea ecx, [esp + 0x30]
call fcn.0040f320
mov eax, dword [esp + 0x30]
cmp dword [eax - 4], 1
jle 0x41dc83
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x34]
call fcn.00401c20
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x40]
mov dword [esp + 0xa0], eax
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
test eax, eax
je 0x41df4d
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0x20]
call fcn.004010e0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28e4], 7
call fcn.00401b30
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28e0], 3
call fcn.0040ed80
test esi, esi
je 0x41de19
cmp word [esp + 0x9e], 0
jne 0x41de07
mov eax, dword [esp + 0x7c]
test eax, eax
jbe 0x41ddb6
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x30]
add ecx, edx
cmp eax, ecx
ja 0x41ddb6
push 1
add eax, 0xffffffff
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.0041c320
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x28e4], 8
call fcn.004011b0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28e0], 3
call fcn.0040ed80
push 0x456411
lea ecx, [esp + 0x28]
call fcn.00414260
test eax, eax
je 0x41dd86
push 1
push 0
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0041c320
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x28e4], 9
call fcn.004011b0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28e0], 3
call fcn.0040ed80
lea ecx, [esp + 0x24]
call fcn.0040f370
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x18]
call fcn.004011d0
mov eax, dword [esp + 0x7c]
add eax, 0xffffffff
push eax
mov ecx, esi
call fcn.0041bfa0
push eax
mov ecx, esi
call fcn.0041b940
jmp 0x41de07
push 1
push 0
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0041c320
add eax, 4
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e4], 0xa
call fcn.00401b30
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28e0], 3
call fcn.0040ed80
lea ecx, [esp + 0x24]
call fcn.0040f370
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00401e50
mov edx, dword [esp + 0x7c]
add edx, 0xffffffff
push edx
mov ecx, esi
call fcn.0041d550
mov dword [edi + 0x10], eax
push 0
push 0x24
push 0x464fc8
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41dee3
push 0x464fc8
lea ecx, [esp + 0x20]
call fcn.004010e0
mov eax, dword [esp + 0x20]
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28e8], 0xb
call fcn.004081b0
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x20]
push eax
push edx
call fcn.00431eb3
add esp, 8
test eax, eax
lea ecx, [esp + 0x44]
sete bl
call fcn.0040ed80
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28e0], 3
call fcn.0040ed80
test bl, bl
je 0x41dee3
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040ed80
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040ed80
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040ed80
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040ed80
mov eax, 0x1f5
jmp 0x41e148
sub esp, 8
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call fcn.00401050
mov edx, dword [edi]
mov eax, dword [edx + 0x20]
mov ecx, edi
call eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040ed80
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040ed80
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040ed80
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040ed80
xor eax, eax
jmp 0x41e148
call dword [sym.imp.comdlg32.dll_CommDlgExtendedError]
cmp eax, 0xb
ja case.0x41df63.1
movzx ecx, byte [eax + 0x41e188]
jmp dword [ecx*4 + 0x41e170]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040ed80
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040ed80
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040ed80
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040ed80
mov eax, 1
jmp 0x41e148
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040ed80
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040ed80
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040ed80
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040ed80
mov eax, 0x1fa
jmp 0x41e148
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040ed80
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040ed80
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040ed80
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040ed80
mov eax, 0x69
jmp 0x41e148
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040ed80
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040ed80
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040ed80
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040ed80
mov eax, 0x66
jmp 0x41e148
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040ed80
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040ed80
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040ed80
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040ed80
mov eax, 0x6a
jmp 0x41e148
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040ed80
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040ed80
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040ed80
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040ed80
mov eax, 0x64
mov ecx, dword [esp + 0x28d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28c0]
xor ecx, esp
call fcn.00431f44
mov esp, ebp
pop ebp
ret 8