Function at 0x41de30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x448364
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x28c4
call fcn.004339f0
mov eax, dword [0x4630c8]
xor eax, esp
mov dword [esp + 0x28c0], eax
push ebx
push esi
push edi
mov eax, dword [0x4630c8]
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.0040ec40
push 0x64
lea eax, [esp + 0x68]
push ebx
push eax
mov byte [esp + 0x28ec], 3
call fcn.00432e00
push 0x400
lea ecx, [esp + 0xdc]
push ebx
push ecx
call fcn.00432e00
add esp, 0x18
push 0x456411
lea ecx, [esp + 0x18]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x9c], 0x880026
mov dword [esp + 0xac], 0x418b30
mov dword [esp + 0x68], 0x58
mov dword [esp + 0x88], 0x400
call fcn.00410950
test eax, eax
je 0x41e018
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.004137c0
mov eax, dword [esp + 0x58]
cmp dword [eax - 0xc], ebx
mov byte [esp + 0x28e0], 4
je 0x41df8a
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x50]
call fcn.004133d0
mov edx, dword [eax + 4]
cmp dword [edx - 0xc], 0
mov ebx, 1
mov byte [esp + 0x13], bl
jg 0x41df8f
mov byte [esp + 0x13], 0
test bl, 1
je 0x41df9d
lea ecx, [esp + 0x1c]
call fcn.0040ec70
cmp byte [esp + 0x13], 0
mov eax, dword [esp + 0x18]
je 0x41dfe1
cmp dword [eax - 4], 1
jle 0x41dfbf
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401bf0
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xcc]
sub edx, eax
jmp 0x41dfd0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41dfd0
jmp 0x41dfff
cmp dword [eax - 4], 1
jle 0x41dff8
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401bf0
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.0040ec70
test esi, esi
lea edx, [esp + 0xcc]
mov dword [esp + 0x80], edx
je 0x41e0fe
lea eax, [esp + 0x8cc]
push eax
mov ecx, esi
call fcn.0041cce0
mov eax, dword [esi + 0x3c]
lea ecx, [esp + 0x8cc]
mov dword [esp + 0x70], ecx
push eax
mov ecx, esi
call fcn.0041c7e0
push 1
lea edx, [eax + 1]
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
mov dword [esp + 0x88], edx
call fcn.0041cb10
add eax, 4
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e4], 5
call fcn.00401b00
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28e0], 3
call fcn.0040ec70
push 1
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x34]
call fcn.004081c0
push 0x44b4cc
mov ecx, eax
mov byte [esp + 0x28e4], 6
call fcn.00410b70
lea ecx, [esp + 0x1c]
mov edi, eax
mov byte [esp + 0x28e0], 3
call fcn.0040ec70
test edi, edi
je 0x41e0d8
push 1
lea ecx, [esp + 0x30]
call fcn.0040f210
mov eax, dword [esp + 0x30]
cmp dword [eax - 4], 1
jle 0x41e0f3
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x34]
call fcn.00401bf0
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 0x41e3bd
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.00401b00
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28e0], 3
call fcn.0040ec70
test esi, esi
je 0x41e289
cmp word [esp + 0x9e], 0
jne 0x41e277
mov eax, dword [esp + 0x7c]
test eax, eax
jbe 0x41e226
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x30]
add ecx, edx
cmp eax, ecx
ja 0x41e226
push 1
add eax, 0xffffffff
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.0041cb10
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.0040ec70
push 0x456411
lea ecx, [esp + 0x28]
call fcn.004108c0
test eax, eax
je 0x41e1f6
push 1
push 0
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0041cb10
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.0040ec70
lea ecx, [esp + 0x24]
call fcn.0040f260
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.0041c790
push eax
mov ecx, esi
call fcn.0041c170
jmp 0x41e277
push 1
push 0
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0041cb10
add eax, 4
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e4], 0xa
call fcn.00401b00
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28e0], 3
call fcn.0040ec70
lea ecx, [esp + 0x24]
call fcn.0040f260
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.0041dd30
mov dword [edi + 0x10], eax
push 0
push 0x24
push 0x464fb0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41e353
push 0x464fb0
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.004081c0
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x20]
push eax
push edx
call fcn.00431c7a
add esp, 8
test eax, eax
lea ecx, [esp + 0x44]
sete bl
call fcn.0040ec70
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28e0], 3
call fcn.0040ec70
test bl, bl
je 0x41e353
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040ec70
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040ec70
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040ec70
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040ec70
mov eax, 0x1f5
jmp 0x41e5b8
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.0040ec70
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040ec70
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040ec70
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040ec70
xor eax, eax
jmp 0x41e5b8
call dword [sym.imp.comdlg32.dll_CommDlgExtendedError]
cmp eax, 0xb
ja case.0x41e3d3.1
movzx ecx, byte [eax + 0x41e5f8]
jmp dword [ecx*4 + 0x41e5e0]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040ec70
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040ec70
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040ec70
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040ec70
mov eax, 1
jmp 0x41e5b8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040ec70
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040ec70
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040ec70
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040ec70
mov eax, 0x1fa
jmp 0x41e5b8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040ec70
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040ec70
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040ec70
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040ec70
mov eax, 0x69
jmp 0x41e5b8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040ec70
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040ec70
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040ec70
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040ec70
mov eax, 0x66
jmp 0x41e5b8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040ec70
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040ec70
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040ec70
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040ec70
mov eax, 0x6a
jmp 0x41e5b8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040ec70
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040ec70
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040ec70
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040ec70
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.00431d0b
mov esp, ebp
pop ebp
ret 8