Function at 0x410550
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44599c
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
push esi
push edi
push str.AddressBook::BeginSetCache_n
call fcn.0041e6c0
mov esi, dword [esp + 0x13c]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x410979
lea ecx, [esp + 0x1c]
call fcn.0041e5c0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x130], 0
repne scasb al, byte es:[edi]
mov eax, dword [0x456050]
not ecx
dec ecx
mov dword [esp + 0x10], eax
mov edi, ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 1
push ecx
call fcn.00406880
lea edx, [esp + 0x1c]
mov byte [esp + 0x134], 2
push edx
call fcn.004136d0
add esp, 8
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x134], 3
mov eax, dword [eax - 8]
push eax
call fcn.004047d0
push edi
lea ecx, [esp + 0x20]
call fcn.0041e670
mov ebp, eax
mov eax, dword [esp + 0x10]
mov ecx, ebp
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
jg 0x410623
cmp ebp, dword [eax - 4]
jle 0x410672
mov edi, dword [eax - 8]
cmp ebp, edi
mov dword [esp + 0x20], edi
jge 0x410630
mov ecx, edi
push ecx
lea ecx, [esp + 0x14]
call fcn.004044c0
test eax, eax
je 0x410672
lea ecx, [edi + 1]
mov edi, dword [esp + 0x10]
mov edx, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov dword [eax - 8], ecx
call fcn.00404560
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x138]
mov edx, dword [esp + 0x14]
push ebp
push edx
push eax
push esi
lea ecx, [esp + 0x2c]
call fcn.0041e5d0
lea ecx, [esp + 0x10]
call fcn.00404590
cmp ebp, 0xffffffff
jne 0x41069e
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
mov ecx, dword [esp + 0x10]
xor eax, eax
lea edi, [esp + 0x25]
push 0
mov dword [ecx - 8], ebp
mov edx, dword [esp + 0x14]
mov ecx, 0x40
push 0x104
mov byte [edx + ebp], 0
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x2c]
push eax
call fcn.00413840
lea ecx, [esp + 0x2c]
push ecx
call fcn.00406880
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
add esp, 0x10
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
or ebp, 0xffffffff
mov esi, edi
mov ebx, ecx
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x20]
mov edx, dword [0x456054]
mov ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x410740
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x410740
mov edx, dword [esp + 0x20]
lea eax, [edx - 0xc]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edi, 0x4572d0
mov ecx, ebp
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x24]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00414040
add esp, 4
test eax, eax
jne 0x41080f
mov eax, dword [esp + 0x18]
mov edx, dword [0x456054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4107ac
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x4107ac
mov edx, dword [esp + 0x18]
lea eax, [edx - 0xc]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x456054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4107d7
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x4107d7
mov edx, dword [esp + 0x14]
lea eax, [edx - 0xc]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x456054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x410969
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x410969
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x410969
mov edi, str.cache.dat
mov ecx, ebp
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4572c0
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x410936
mov eax, dword [0x460b20]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
mov ecx, dword [eax - 8]
push ecx
push 1
push eax
call edi
push esi
push 1
push 1
push 0x4572bc
call edi
mov eax, dword [esp + 0x30]
push esi
mov ecx, dword [eax - 8]
push ecx
push 1
push eax
call edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x34
push str.AddressBook::SetCacheSucc_n
call fcn.0041e6c0
mov eax, dword [esp + 0x1c]
mov edx, dword [0x456054]
add esp, 4
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4108c9
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x4108c9
mov edx, dword [esp + 0x18]
lea eax, [edx - 0xc]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x456054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4108f4
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x4108f4
mov edx, dword [esp + 0x14]
lea eax, [edx - 0xc]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x456054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41091f
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x41091f
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x130], ebp
call fcn.0040ad60
mov eax, 1
jmp 0x41097b
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 2
call fcn.004046d0
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 1
call fcn.004046d0
lea ecx, [esp + 0x10]
mov byte [esp + 0x130], 0
call fcn.004046d0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x130], ebp
call fcn.0040ad60
xor eax, eax
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret