Function at 0x4109a0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4459dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x288
push ebx
push ebp
push esi
push edi
push str.AddressBook::BeginGetCache_n
call fcn.0041e6c0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x199]
mov byte [esp + 0x198], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
lea eax, [esp + 0x19c]
push 0x104
push eax
call fcn.00413840
lea ecx, [esp + 0x24]
push ecx
call fcn.00406880
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
add esp, 0x14
lea edx, [esp + 0x194]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
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 + 0x14]
mov edx, dword [0x456054]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x410a64
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410a64
mov edx, dword [esp + 0x14]
lea eax, [edx - 0xc]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edi, 0x4572d0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x194]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x45730c
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x198]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.cache.dat
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x198]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
je 0x410f0c
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll__filelength]
mov ebp, eax
add ebp, 4
lea esi, [ebp - 4]
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
lea ecx, [ebp - 4]
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
mov dword [esp + 0x1c], ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
push eax
push esi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x45]
mov byte [esp + 0x44], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, ebx
add esp, 0x18
mov al, byte [edi]
test al, al
je 0x410b68
mov esi, dword [sym.imp.MSVCRT.dll_strncat]
cmp al, 0xa
je 0x410b68
push 1
lea ecx, [esp + 0x30]
push ebx
push ecx
call esi
mov al, byte [ebx + 1]
add esp, 0xc
inc ebx
test al, al
jne 0x410b4f
cmp byte [ebx], 0
je 0x410f02
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
inc ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x410ba6
mov edi, 0x456dd4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
test ecx, ecx
jne 0x410bb6
xor esi, esi
mov dword [esp + 0x10], esi
jmp 0x410bc7
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x10], eax
mov esi, eax
mov edi, dword [0x460b20]
cmp dword [edi - 0xc], 1
jg 0x410bd8
cmp esi, dword [edi - 4]
jle 0x410bf7
mov ecx, 0x460b20
call fcn.00404520
push esi
mov ecx, 0x460b20
call fcn.004044c0
test eax, eax
je 0x410c22
mov edi, dword [0x460b20]
mov ecx, esi
lea esi, [esp + 0x2c]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x460b20]
mov dword [ecx - 8], eax
mov edx, dword [0x460b20]
mov byte [eax + edx], 0
lea eax, [esp + 0x20]
push eax
call fcn.004136d0
mov esi, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x2a4], 0
push ecx
call fcn.00406880
add esp, 8
push esi
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x2ac], 1
call fcn.00408e30
mov eax, dword [esp + 0x10]
mov edx, dword [0x456054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x410c89
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410c89
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [0x456054]
mov byte [esp + 0x2a0], 3
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x410cc0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410cc0
mov edx, dword [esp + 0x20]
lea eax, [edx - 0xc]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.0041e5c0
lea eax, [ebp - 4]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x2a4], 5
call fcn.0041e690
push ebp
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, ebp
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push esi
push ebx
lea ecx, [esp + 0x2c]
call fcn.0041e620
test eax, eax
je 0x410eb0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x410eb0
push eax
mov ebp, esi
call fcn.00411af0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea ebx, [edi + esi]
cmp esi, ebx
jae 0x410e3e
push 0
push edi
lea edx, [esp + 0x5c]
push esi
push edx
push ebp
call fcn.00411a00
add esp, 0x14
test eax, eax
je 0x410e3e
push 0
push edi
lea ecx, [esp + 0x84]
push esi
push ecx
push eax
call fcn.00411a00
add esp, 0x14
test eax, eax
je 0x410e3e
push 0
push edi
lea edx, [esp + 0xac]
push esi
push edx
push eax
call fcn.00411a00
add esp, 0x14
test eax, eax
je 0x410e3e
push 0
push edi
lea ecx, [esp + 0xd4]
push esi
push ecx
push eax
call fcn.00411a00
add esp, 0x14
test eax, eax
je 0x410e3e
push 0
push edi
lea edx, [esp + 0xfc]
push esi
push edx
push eax
call fcn.00411a00
add esp, 0x14
test eax, eax
je 0x410e3e
push 1
push edi
lea ecx, [esp + 0x124]
push esi
push ecx
push eax
call fcn.00411a00
add esp, 0x14
test eax, eax
je 0x410e3e
push 0
push edi
lea edx, [esp + 0x14c]
push esi
push edx
push eax
call fcn.00411a00
add esp, 0x14
test eax, eax
je 0x410e3e
push 0
push edi
lea ecx, [esp + 0x174]
push esi
push ecx
push eax
call fcn.00411a00
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x410e3e
lea edx, [esp + 0x54]
push edx
call fcn.00411bc0
add esp, 4
inc ebp
cmp ebp, ebx
jb 0x410d55
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_free]
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
add esp, 0xc
push str.AddressBook::GetCacheSucc_n
call fcn.0041e6c0
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2a0], 3
call fcn.0040ad60
mov eax, dword [esp + 0x18]
mov ecx, dword [0x456054]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x410ea9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410ea9
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
jmp 0x410f0e
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.MSVCRT.dll_free]
push ecx
call edi
push esi
call edi
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2a0], 3
call fcn.0040ad60
mov eax, dword [esp + 0x18]
mov ecx, dword [0x456054]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x410f0c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410f0c
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
jmp 0x410f09
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x298]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x294
ret