Function at 0x41f4c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x449af4
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x28c4
call fcn.00435050
mov eax, dword [0x4650f0]
xor eax, esp
mov dword [esp + 0x28c0], eax
push ebx
push esi
push edi
mov eax, dword [0x4650f0]
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 0x458581
lea ecx, [esp + 0x28]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
call fcn.004020f0
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 0x458581
lea ecx, [esp + 0x38]
mov byte [esp + 0x28e4], 1
call fcn.004020f0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.004114f0
push 0x64
lea eax, [esp + 0x68]
push ebx
push eax
mov byte [esp + 0x28ec], 3
call fcn.00433810
push 0x400
lea ecx, [esp + 0xdc]
push ebx
push ecx
call fcn.00433810
add esp, 0x18
push 0x458581
lea ecx, [esp + 0x18]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x9c], 0x880026
mov dword [esp + 0xac], 0x41a360
mov dword [esp + 0x68], 0x58
mov dword [esp + 0x88], 0x400
call fcn.00412010
test eax, eax
je 0x41f6a8
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.00414e80
mov eax, dword [esp + 0x58]
cmp dword [eax - 0xc], ebx
mov byte [esp + 0x28e0], 4
je 0x41f61a
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x50]
call fcn.00414a90
mov edx, dword [eax + 4]
cmp dword [edx - 0xc], 0
mov ebx, 1
mov byte [esp + 0x13], bl
jg 0x41f61f
mov byte [esp + 0x13], 0
test bl, 1
je 0x41f62d
lea ecx, [esp + 0x1c]
call fcn.00411520
cmp byte [esp + 0x13], 0
mov eax, dword [esp + 0x18]
je 0x41f671
cmp dword [eax - 4], 1
jle 0x41f64f
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401df0
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xcc]
sub edx, eax
jmp 0x41f660
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41f660
jmp 0x41f68f
cmp dword [eax - 4], 1
jle 0x41f688
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401df0
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.00411520
test esi, esi
lea edx, [esp + 0xcc]
mov dword [esp + 0x80], edx
je 0x41f78e
lea eax, [esp + 0x8cc]
push eax
mov ecx, esi
call fcn.0041e380
mov eax, dword [esi + 0x3c]
lea ecx, [esp + 0x8cc]
mov dword [esp + 0x70], ecx
push eax
mov ecx, esi
call fcn.0041de80
push 1
lea edx, [eax + 1]
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
mov dword [esp + 0x88], edx
call fcn.0041e1b0
add eax, 4
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e4], 5
call fcn.00401d00
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28e0], 3
call fcn.00411520
push 1
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x34]
call fcn.004083b0
push 0x44d9d8
mov ecx, eax
mov byte [esp + 0x28e4], 6
call fcn.00412230
lea ecx, [esp + 0x1c]
mov edi, eax
mov byte [esp + 0x28e0], 3
call fcn.00411520
test edi, edi
je 0x41f768
push 1
lea ecx, [esp + 0x30]
call fcn.00411ac0
mov eax, dword [esp + 0x30]
cmp dword [eax - 4], 1
jle 0x41f783
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x34]
call fcn.00401df0
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 0x41fa4d
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.00401d00
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28e0], 3
call fcn.00411520
test esi, esi
je 0x41f919
cmp word [esp + 0x9e], 0
jne 0x41f907
mov eax, dword [esp + 0x7c]
test eax, eax
jbe 0x41f8b6
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x30]
add ecx, edx
cmp eax, ecx
ja 0x41f8b6
push 1
add eax, 0xffffffff
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.0041e1b0
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.00411520
push 0x458581
lea ecx, [esp + 0x28]
call fcn.00411f80
test eax, eax
je 0x41f886
push 1
push 0
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0041e1b0
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.00411520
lea ecx, [esp + 0x24]
call fcn.00411b10
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.0041de30
push eax
mov ecx, esi
call fcn.0041d7c0
jmp 0x41f907
push 1
push 0
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0041e1b0
add eax, 4
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e4], 0xa
call fcn.00401d00
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28e0], 3
call fcn.00411520
lea ecx, [esp + 0x24]
call fcn.00411b10
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00402020
mov edx, dword [esp + 0x7c]
add edx, 0xffffffff
push edx
mov ecx, esi
call fcn.0041f3d0
mov dword [edi + 0x10], eax
push 0
push 0x24
push 0x466fd0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41f9e3
push 0x466fd0
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.004083b0
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x20]
push eax
push edx
call fcn.00433091
add esp, 8
test eax, eax
lea ecx, [esp + 0x44]
sete bl
call fcn.00411520
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28e0], 3
call fcn.00411520
test bl, bl
je 0x41f9e3
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.00411520
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.00411520
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.00411520
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.00411520
mov eax, 0x1f5
jmp 0x41fc48
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.00411520
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.00411520
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.00411520
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.00411520
xor eax, eax
jmp 0x41fc48
call dword [sym.imp.comdlg32.dll_CommDlgExtendedError]
cmp eax, 0xb
ja case.0x41fa63.1
movzx ecx, byte [eax + 0x41fc88]
jmp dword [ecx*4 + 0x41fc70]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.00411520
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.00411520
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.00411520
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.00411520
mov eax, 1
jmp 0x41fc48
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.00411520
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.00411520
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.00411520
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.00411520
mov eax, 0x1fa
jmp 0x41fc48
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.00411520
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.00411520
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.00411520
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.00411520
mov eax, 0x69
jmp 0x41fc48
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.00411520
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.00411520
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.00411520
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.00411520
mov eax, 0x66
jmp 0x41fc48
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.00411520
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.00411520
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.00411520
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.00411520
mov eax, 0x6a
jmp 0x41fc48
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.00411520
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.00411520
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.00411520
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.00411520
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.00433122
mov esp, ebp
pop ebp
ret 8