Function at 0x40ef10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4399cc
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x44cc80]
xor eax, esp
mov dword [esp + 0x4b8], eax
push ebx
push esi
push edi
mov eax, dword [0x44cc80]
xor eax, esp
push eax
lea eax, [esp + 0x4d0]
mov dword fs:[0], eax
xor esi, esi
push esi
lea eax, [esp + 0x50]
mov ebx, ecx
push str.CDlgSetDestination::OnInitDialog
push eax
mov dword [esp + 0x34], ebx
call fcn.00405b00
add esp, 0xc
mov dword [esp + 0x4d8], esi
mov ecx, ebx
call fcn.0040a8c0
lea ecx, [esp + 0x18]
call fcn.00404d50
mov byte [esp + 0x4d8], 1
mov eax, dword [0x451aa0]
test eax, 0x10000
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], esi
jne 0x40efe3
test al, 0x10
jne 0x40efe3
mov esi, dword [0x451ed8]
lea ecx, [esp + 0x14]
push ecx
push esi
mov dword [esp + 0x34], esi
call fcn.00412990
mov byte [esp + 0x4d8], 3
push eax
lea ecx, [esp + 0x1c]
call fcn.00404a50
mov byte [esp + 0x4d8], 1
lea ecx, [esp + 0x14]
call fcn.00405f60
mov ecx, esi
call fcn.00412a80
jmp 0x40f022
mov esi, dword [0x451ed4]
lea edx, [esp + 0x14]
push edx
push esi
mov dword [esp + 0x2c], esi
call fcn.00413d30
mov byte [esp + 0x4d8], 2
push eax
lea ecx, [esp + 0x1c]
call fcn.00404a50
mov byte [esp + 0x4d8], 1
lea ecx, [esp + 0x14]
call fcn.00405f60
mov ecx, esi
call fcn.00413e20
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 4], 1
mov esi, eax
jle 0x40f03f
mov eax, dword [ecx - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404330
mov ecx, dword [esp + 0x18]
mov edi, ebx
call fcn.0040aac0
test eax, eax
je 0x40f0f7
test esi, esi
jle 0x40f0f7
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], 1
jle 0x40f071
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00404330
mov eax, dword [esp + 0x18]
push 0
lea edx, [esi + esi*4]
push eax
add edx, edx
lea edi, [ebx + 0x80]
push edx
mov ecx, edi
call fcn.0041f939
test eax, eax
je 0x40f0f7
mov dword [esp + 0x30], 0xbbb
mov dword [esp + 0x34], 0xbbc
mov dword [esp + 0x38], 0xbc1
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 2
mov dword [esp + 0x44], 0xbbf
mov dword [esp + 0x48], 0xbc6
xor esi, esi
mov eax, dword [esp + esi*4 + 0x30]
push eax
mov ecx, ebx
call fcn.0041f419
test eax, eax
je 0x40f0ef
test edi, edi
jne 0x40f0dd
xor ecx, ecx
jmp 0x40f0e0
mov ecx, dword [edi + 4]
push 1
push ecx
mov ecx, dword [eax + 0x20]
push 0x30
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
add esi, 1
cmp esi, 7
jb 0x40f0c5
lea edx, [esp + 0x14]
push edx
call fcn.004066b0
mov byte [esp + 0x4d8], 4
mov eax, dword [eax]
mov ecx, dword [ebx + 0xe0]
lea edi, [ebx + 0xe0]
push eax
push ecx
call fcn.00423e87
add esp, 8
mov esi, eax
mov byte [esp + 0x4d8], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f14b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40f185
lea ecx, [esp + 0x14]
push ecx
call fcn.004066b0
mov byte [esp + 0x4d8], 6
push eax
mov ecx, edi
call fcn.00404a50
mov byte [esp + 0x4d8], 1
lea ecx, [esp + 0x14]
call fcn.00405f60
lea ecx, [ebx + 0xe4]
call fcn.00404b70
push 0x43fa9c
lea ecx, [esp + 0x20]
call fcn.00404c50
mov byte [esp + 0x4d8], 7
push 0x43fa9c
lea ecx, [esp + 0x24]
call fcn.00404c50
mov byte [esp + 0x4d8], 8
lea edx, [esp + 0x54]
push edx
call fcn.004111b0
mov byte [esp + 0x4d8], 9
push 0x206
lea eax, [esp + 0x2c2]
push 0
push eax
mov word [esp + 0x2c8], 0
call fcn.004250c0
mov eax, dword [0x451aa0]
add esp, 0xc
test eax, 0x10000
jne 0x40f26c
test al, 0x10
jne 0x40f26c
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40f2d6
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.00401000
mov edi, eax
mov byte [esp + 0x4d8], 0xc
mov eax, dword [edi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x40f22b
mov edx, dword [eax + 4]
push edx
mov ecx, edi
call fcn.00404330
mov edx, dword [edi]
mov esi, 0x104
lea eax, [esp + 0x2bc]
lea esp, [esp]
movzx ecx, word [edx]
test cx, cx
je 0x40f25e
mov word [eax], cx
add eax, 2
add edx, 2
sub esi, 1
jne 0x40f240
sub eax, 2
mov word [eax], si
jmp 0x40f2c5
test esi, esi
jne 0x40f265
sub eax, 2
mov word [eax], 0
jmp 0x40f2c5
mov esi, dword [esp + 0x24]
test esi, esi
je 0x40f2d6
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push edi
call fcn.00405fc0
mov byte [esp + 0x4dc], 0xa
lea eax, [esp + 0x18]
push eax
push esi
mov byte [esp + 0x4e4], 9
call fcn.00413ad0
mov byte [esp + 0x4d8], 0xb
mov ecx, dword [eax]
push ecx
push 0x451ab0
push 0x43fe0c
mov eax, 0x104
lea edi, [esp + 0x2c8]
call fcn.004049d0
add esp, 0xc
mov byte [esp + 0x4d8], 9
lea ecx, [esp + 0x14]
call fcn.00405f60
lea edx, [esp + 0x2bc]
lea ecx, [esp + 0x54]
call fcn.00411500
cmp eax, 0x800000
jne 0x40f451
lea edx, [esp + 0x54]
mov ecx, 0x4519f8
call fcn.004033c0
cmp dword [0x451ee8], 0
je 0x40f3ce
mov edi, dword [0x451ee0]
test edi, edi
je 0x40f3ce
lea ebx, [ebx]
mov esi, dword [edi + 8]
lea edx, [esp + 0x14]
push edx
push esi
call fcn.0040eb70
mov byte [esp + 0x4d8], 0xd
mov eax, dword [eax]
lea ecx, [ebx + 0xe0]
mov ecx, dword [ecx]
push eax
push ecx
call fcn.00423e87
add esp, 8
test eax, eax
sete bl
mov byte [esp + 0x4d8], 9
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f377
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40f3c0
lea ecx, [esp + 0x24]
push ecx
push esi
call fcn.00414690
mov byte [esp + 0x4d8], 0xf
push eax
lea ecx, [esp + 0x20]
call fcn.00404a50
mov byte [esp + 0x4d8], 9
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f3c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [edi]
test edi, edi
mov ebx, dword [esp + 0x28]
jne 0x40f320
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
jne 0x40f455
push 0x206
lea ecx, [esp + 0xba]
push 0
push ecx
mov word [esp + 0xc0], 0
call fcn.004250c0
add esp, 0xc
lea edi, [esp + 0x54]
call fcn.00411e90
test eax, eax
push 0
je 0x40f414
push 0x26
lea edx, [esp + 0xbc]
push edx
jmp 0x40f41e
push 5
lea eax, [esp + 0xbc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0xb4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f430
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xb8]
push ecx
lea ecx, [esp + 0x28]
call fcn.00404ad0
mov eax, dword [esp + 0x1c]
mov edx, dword [ebx + 0xe4]
cmp dword [edx - 0xc], 0
lea esi, [ebx + 0xe4]
jne 0x40f4a3
cmp dword [eax - 0xc], 0
je 0x40f486
cmp dword [eax - 4], 1
jle 0x40f4bb
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x20]
call fcn.00404330
mov eax, dword [esp + 0x1c]
jmp 0x40f4bb
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], 1
jle 0x40f4bb
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x24]
call fcn.00404330
mov eax, dword [esp + 0x20]
jmp 0x40f4bb
mov eax, edx
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x40f4b9
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00404330
mov eax, dword [esi]
lea esi, [ebx + 0x8c]
push eax
mov ecx, esi
call fcn.0041f516
mov eax, dword [esp + 0x1c]
mov eax, dword [eax - 0xc]
xor ecx, ecx
test eax, eax
sete cl
push ecx
push 0xbc1
mov ecx, ebx
call fcn.0041f419
mov ecx, eax
call fcn.0041f5ae
mov ecx, esi
call fcn.0041f692
push eax
push 1
mov ecx, ebx
call fcn.0041f419
mov ecx, eax
call fcn.0041f5ae
mov byte [esp + 0x4d8], 8
lea ecx, [esp + 0x54]
call fcn.004113c0
mov byte [esp + 0x4d8], 7
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f53c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4d8], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f564
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4d8], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f58c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x4d8], 0xffffffff
lea ecx, [esp + 0x4c]
call fcn.00405a70
mov eax, 1
mov ecx, dword [esp + 0x4d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b8]
xor ecx, esp
call fcn.004237ad
mov esp, ebp
pop ebp
ret