Function at 0x407ec0
Capabilities:
Delete file
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42b5e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x330
push ebx
push ebp
mov ebp, dword [esp + 0x348]
push esi
mov ebx, ecx
push edi
mov ecx, 0x43
xor eax, eax
mov edi, ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
rep stosd dword es:[edi], eax
lea eax, [ebx + 4]
mov dword [esp + 0x28], eax
push eax
lea eax, [esp + 0x23c]
push 0x105
push eax
push 0x43a360
push str.BookFileName
push str.PhoneBook
call esi
lea edi, [ebx + 0x108]
add ebp, 2
push edi
push 0x105
push ebp
push 0x43a360
push str.BookFileName
push str.PhoneBook
mov dword [esp + 0x34], edi
call esi
cmp byte [ebp], 0
je 0x408027
lea ecx, [esp + 0x20]
call fcn.00409760
push ecx
mov dword [esp + 0x34c], 0
mov ecx, esp
mov dword [esp + 0x1c], esp
push ebp
call fcn.0041f897
lea ecx, [esp + 0x24]
call fcn.004097a0
test eax, eax
jne 0x408009
push ebp
lea ecx, [esp + 0x14]
call fcn.0041f897
push 0x5c
push 0x2f
lea ecx, [esp + 0x18]
mov byte [esp + 0x350], 1
call fcn.0041dd92
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0041dec3
test eax, eax
jl 0x407ff8
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0041de4b
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x134]
push edx
push 0
push 0x43a360
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x407feb
lea ecx, [esp + 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x407fef
mov byte [ebp], 0
lea ecx, [esp + 0x14]
call fcn.0041f829
lea ecx, [esp + 0x10]
mov byte [esp + 0x348], 0
call fcn.0041f829
lea ecx, [esp + 0x20]
mov dword [esp + 0x348], 0xffffffff
call fcn.00409790
cmp byte [ebp], 0
jne 0x40823e
mov al, byte [esp + 0x238]
test al, al
jne 0x4080f5
lea edx, [esp + 0x2c]
push 0x105
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4080ab
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
dec ecx
js 0x4080ab
mov al, byte [esp + ecx + 0x2c]
cmp al, 0x5c
je 0x408078
cmp al, 0x2f
je 0x408078
dec ecx
jns 0x408067
jmp 0x4080ab
mov byte [esp + ecx + 0x2c], 0
mov edi, 0x4382bc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2c]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Address.ba2
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x408114
lea edi, [esp + 0x238]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call fcn.00409760
push ecx
mov dword [esp + 0x34c], 2
mov ecx, esp
mov dword [esp + 0x1c], esp
push ebp
call fcn.0041f897
lea ecx, [esp + 0x28]
call fcn.004097a0
test eax, eax
jne 0x408210
push ebp
lea ecx, [esp + 0x14]
call fcn.0041f897
push 0x5c
push 0x2f
lea ecx, [esp + 0x18]
mov byte [esp + 0x350], 3
call fcn.0041dd92
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0041dec3
test eax, eax
jl 0x4081ff
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call fcn.0041de4b
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x134]
push ecx
push 0
push 0x43a360
push edx
mov byte [esp + 0x358], 4
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4081c2
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4081ee
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.00408e10
mov edx, dword [eax]
push str.Address.ba2
push edx
push str._s_s
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x18]
call fcn.0041f829
lea ecx, [esp + 0x14]
mov byte [esp + 0x348], 3
call fcn.0041f829
lea ecx, [esp + 0x10]
mov byte [esp + 0x348], 2
call fcn.0041f829
mov eax, dword [esp + 0x1c]
push eax
push ebp
push str.BookFileName
push str.PhoneBook
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x24]
mov dword [esp + 0x348], 0xffffffff
call fcn.00409790
mov edi, dword [esp + 0x1c]
mov al, byte [esp + 0x238]
test al, al
jne 0x40825f
mov ecx, dword [esp + 0x28]
push ecx
push ebp
push str.BookFileName
push str.PhoneBook
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edi
push 0
push str.UseAddressExe
push str.PhoneBook
call esi
mov ebx, dword [esp + 0x350]
push edi
push 1
push str.DialConv
push str.PhoneBook
mov word [ebx], ax
call esi
mov ecx, dword [esp + 0x340]
pop edi
pop esi
mov dword [ebx + 0x108], eax
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x33c
ret 4