Function at 0x41d930
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x448264
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x28c4
call fcn.00433b20
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 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.0040fd30
push 0x64
lea eax, [esp + 0x68]
push ebx
push eax
mov byte [esp + 0x28ec], 3
call fcn.004328a0
push 0x400
lea ecx, [esp + 0xdc]
push ebx
push ecx
call fcn.004328a0
add esp, 0x18
push 0x456411
lea ecx, [esp + 0x18]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x9c], 0x880026
mov dword [esp + 0xac], 0x418cb0
mov dword [esp + 0x68], 0x58
mov dword [esp + 0x88], 0x400
call fcn.004147f0
test eax, eax
je 0x41db18
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.00413050
mov eax, dword [esp + 0x58]
cmp dword [eax - 0xc], ebx
mov byte [esp + 0x28e0], 4
je 0x41da8a
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x50]
call fcn.00412c20
mov edx, dword [eax + 4]
cmp dword [edx - 0xc], 0
mov ebx, 1
mov byte [esp + 0x13], bl
jg 0x41da8f
mov byte [esp + 0x13], 0
test bl, 1
je 0x41da9d
lea ecx, [esp + 0x1c]
call fcn.0040fd60
cmp byte [esp + 0x13], 0
mov eax, dword [esp + 0x18]
je 0x41dae1
cmp dword [eax - 4], 1
jle 0x41dabf
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 0x41dad0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41dad0
jmp 0x41daff
cmp dword [eax - 4], 1
jle 0x41daf8
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.0040fd60
test esi, esi
lea edx, [esp + 0xcc]
mov dword [esp + 0x80], edx
je 0x41dbfe
lea eax, [esp + 0x8cc]
push eax
mov ecx, esi
call fcn.0041c470
mov eax, dword [esi + 0x3c]
lea ecx, [esp + 0x8cc]
mov dword [esp + 0x70], ecx
push eax
mov ecx, esi
call fcn.0041bf60
push 1
lea edx, [eax + 1]
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
mov dword [esp + 0x88], edx
call fcn.0041c290
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.0040fd60
push 1
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x34]
call fcn.004081e0
push 0x44b934
mov ecx, eax
mov byte [esp + 0x28e4], 6
call fcn.004149a0
lea ecx, [esp + 0x1c]
mov edi, eax
mov byte [esp + 0x28e0], 3
call fcn.0040fd60
test edi, edi
je 0x41dbd8
push 1
lea ecx, [esp + 0x30]
call fcn.00410300
mov eax, dword [esp + 0x30]
cmp dword [eax - 4], 1
jle 0x41dbf3
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 0x41debd
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.0040fd60
test esi, esi
je 0x41dd89
cmp word [esp + 0x9e], 0
jne 0x41dd77
mov eax, dword [esp + 0x7c]
test eax, eax
jbe 0x41dd26
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x30]
add ecx, edx
cmp eax, ecx
ja 0x41dd26
push 1
add eax, 0xffffffff
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.0041c290
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.0040fd60
push 0x456411
lea ecx, [esp + 0x28]
call fcn.00414760
test eax, eax
je 0x41dcf6
push 1
push 0
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0041c290
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.0040fd60
lea ecx, [esp + 0x24]
call fcn.00410350
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.0041bf10
push eax
mov ecx, esi
call fcn.0041b8f0
jmp 0x41dd77
push 1
push 0
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0041c290
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.0040fd60
lea ecx, [esp + 0x24]
call fcn.00410350
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.0041d4c0
mov dword [edi + 0x10], eax
push 0
push 0x24
push 0x464fc8
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41de53
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.004081e0
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x20]
push eax
push edx
call fcn.00431ea7
add esp, 8
test eax, eax
lea ecx, [esp + 0x44]
sete bl
call fcn.0040fd60
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28e0], 3
call fcn.0040fd60
test bl, bl
je 0x41de53
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040fd60
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040fd60
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040fd60
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040fd60
mov eax, 0x1f5
jmp 0x41e0b8
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.0040fd60
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040fd60
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040fd60
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040fd60
xor eax, eax
jmp 0x41e0b8
call dword [sym.imp.comdlg32.dll_CommDlgExtendedError]
cmp eax, 0xb
ja case.0x41ded3.1
movzx ecx, byte [eax + 0x41e0f8]
jmp dword [ecx*4 + 0x41e0e0]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040fd60
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040fd60
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040fd60
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040fd60
mov eax, 1
jmp 0x41e0b8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040fd60
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040fd60
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040fd60
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040fd60
mov eax, 0x1fa
jmp 0x41e0b8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040fd60
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040fd60
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040fd60
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040fd60
mov eax, 0x69
jmp 0x41e0b8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040fd60
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040fd60
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040fd60
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040fd60
mov eax, 0x66
jmp 0x41e0b8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040fd60
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040fd60
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040fd60
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040fd60
mov eax, 0x6a
jmp 0x41e0b8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28e0], 2
call fcn.0040fd60
lea ecx, [esp + 0x34]
mov byte [esp + 0x28e0], 1
call fcn.0040fd60
lea ecx, [esp + 0x14]
mov byte [esp + 0x28e0], 0
call fcn.0040fd60
lea ecx, [esp + 0x24]
mov dword [esp + 0x28e0], 0xffffffff
call fcn.0040fd60
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.00431d07
mov esp, ebp
pop ebp
ret 8