Function at 0x41d870
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x448104
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x28c4
call fcn.00434390
mov eax, dword [0x4630d0]
xor eax, esp
mov dword [esp + 0x28c0], eax
push ebx
push esi
push edi
mov eax, dword [0x4630d0]
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 0x4563c1
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 0x4563c1
lea ecx, [esp + 0x38]
mov byte [esp + 0x28e4], 1
call fcn.00401f20
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040ed60
push 0x64
lea eax, [esp + 0x68]
push ebx
push eax
mov byte [esp + 0x28ec], 3
call fcn.00432d00
push 0x400
lea ecx, [esp + 0xdc]
push ebx
push ecx
call fcn.00432d00
add esp, 0x18
push 0x4563c1
lea ecx, [esp + 0x18]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x9c], 0x880026
mov dword [esp + 0xac], 0x418b60
mov dword [esp + 0x68], 0x58
mov dword [esp + 0x88], 0x400
call fcn.00414290
test eax, eax
je 0x41da58
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.00416f80
mov eax, dword [esp + 0x58]
cmp dword [eax - 0xc], ebx
mov byte [esp + 0x28e0], 4
je 0x41d9ca
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x50]
call fcn.00416c40
mov edx, dword [eax + 4]
cmp dword [edx - 0xc], 0
mov ebx, 1
mov byte [esp + 0x13], bl
jg 0x41d9cf
mov byte [esp + 0x13], 0
test bl, 1
je 0x41d9dd
lea ecx, [esp + 0x1c]
call fcn.0040ed90
cmp byte [esp + 0x13], 0
mov eax, dword [esp + 0x18]
je 0x41da21
cmp dword [eax - 4], 1
jle 0x41d9ff
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 0x41da10
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41da10
jmp 0x41da3f
cmp dword [eax - 4], 1
jle 0x41da38
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.0040ed90
test esi, esi
lea edx, [esp + 0xcc]
mov dword [esp + 0x80], edx
je 0x41db3e
lea eax, [esp + 0x8cc]
push eax
mov ecx, esi
call fcn.0041c3b0
mov eax, dword [esi + 0x3c]
lea ecx, [esp + 0x8cc]
mov dword [esp + 0x70], ecx
push eax
mov ecx, esi
call fcn.0041beb0
push 1
lea edx, [eax + 1]
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
mov dword [esp + 0x88], edx
call fcn.0041c1e0
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.0040ed90
push 1
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x34]
call fcn.004081f0
push 0x44b508
mov ecx, eax
mov byte [esp + 0x28e4], 6
call fcn.004144b0
lea ecx, [esp + 0x1c]
mov edi, eax
mov byte [esp + 0x28e0], 3
call fcn.0040ed90
test edi, edi
je 0x41db18
push 1
lea ecx, [esp + 0x30]
call fcn.0040f330
mov eax, dword [esp + 0x30]
cmp dword [eax - 4], 1
jle 0x41db33
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 0x41ddfd
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.0040ed90
test esi, esi
je 0x41dcc9
cmp word [esp + 0x9e], 0
jne 0x41dcb7
mov eax, dword [esp + 0x7c]
test eax, eax
jbe 0x41dc66
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x30]
add ecx, edx
cmp eax, ecx
ja 0x41dc66
push 1
add eax, 0xffffffff
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.0041c1e0
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.0040ed90
push 0x4563c1
lea ecx, [esp + 0x28]
call fcn.00414200
test eax, eax
je 0x41dc36
push 1
push 0
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0041c1e0
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.0040ed90
lea ecx, [esp + 0x24]
call fcn.0040f380
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.0041be60
push eax
mov ecx, esi
call fcn.0041b850
jmp 0x41dcb7
push 1
push 0
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0041c1e0
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.0040ed90
lea ecx, [esp + 0x24]
call fcn.0040f380
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.0041d400
mov dword [edi + 0x10], eax
push 0
push 0x24
push 0x464fc8
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41dd93
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.004081f0
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x20]
push eax
push edx
call fcn.00431d66
add esp, 8
test eax, eax
lea ecx, [esp + 0x44]
sete bl
call fcn.0040ed90
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28e0], 3
call fcn.0040ed90
test bl, bl
je 0x41dd93
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040ed90
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040ed90
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040ed90
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040ed90
mov eax, 0x1f5
jmp 0x41dff8
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.0040ed90
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040ed90
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040ed90
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040ed90
xor eax, eax
jmp 0x41dff8
call dword [sym.imp.comdlg32.dll_CommDlgExtendedError]
cmp eax, 0xb
ja case.0x41de13.1
movzx ecx, byte [eax + 0x41e038]
jmp dword [ecx*4 + 0x41e020]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040ed90
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040ed90
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040ed90
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040ed90
mov eax, 1
jmp 0x41dff8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040ed90
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040ed90
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040ed90
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040ed90
mov eax, 0x1fa
jmp 0x41dff8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040ed90
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040ed90
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040ed90
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040ed90
mov eax, 0x69
jmp 0x41dff8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040ed90
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040ed90
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040ed90
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040ed90
mov eax, 0x66
jmp 0x41dff8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040ed90
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040ed90
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040ed90
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040ed90
mov eax, 0x6a
jmp 0x41dff8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040ed90
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040ed90
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040ed90
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040ed90
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.00431df7
mov esp, ebp
pop ebp
ret 8