Function at 0x40ae59
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
xor eax, eax
mov ax, word [0x539af6]
test eax, eax
je 0x40ae95
push str._RCP____SET_PHONEBOOK___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x53a248]
mov dword [ebp - 0xc], ecx
mov edx, dword [0x53a23c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004e8de9
add esp, 4
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x40aedf
mov edx, dword [ebp - 0x18]
push edx
push 0xff
mov eax, dword [ebp - 4]
push eax
call fcn.004cf390
add esp, 0xc
jmp 0x40af16
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x40aef7
push 0x519af0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 4]
mov dword [ebp - 0x224], edx
mov eax, dword [ebp - 0x224]
push eax
call fcn.004e8e12
add esp, 4
xor eax, eax
jmp 0x40b3bd
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov byte [ecx], 0x1b
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov byte [eax], 0xa4
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x18]
sub edx, 6
and edx, 0xffff
sar edx, 0x18
and edx, 0xff
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x18]
sub edx, 6
and edx, 0xffff
sar edx, 0x10
and edx, 0xff
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x18]
sub edx, 6
and edx, 0xffff
sar edx, 8
and edx, 0xff
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x18]
sub edx, 6
and edx, 0xff
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
mov byte [edx], 0x50
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov byte [ecx], 0xe0
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov byte [eax], 0x82
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
mov byte [edx], 0xc2
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov byte [ecx], 0x42
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
and eax, 0xffff
sar eax, 8
and eax, 0xff
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov byte [ecx], al
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
and eax, 0xff
and eax, 0xff
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov byte [ecx], al
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], 0
jmp 0x40b07b
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0xc]
jge 0x40b1e6
mov edx, dword [ebp - 0x14]
add edx, 1
and edx, 0xffff
sar edx, 8
and edx, 0xff
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
add edx, 1
and edx, 0xff
and edx, 0xff
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x288
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov ecx, dword [0x53a6fc]
mov dl, byte [ecx + edx]
mov byte [eax], dl
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x288
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
mov eax, dword [0x53a6fc]
mov cl, byte [eax + ecx + 1]
mov byte [edx], cl
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [0x53a25c]
push eax
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x288
mov edx, dword [0x53a6fc]
lea eax, [edx + ecx + 2]
push eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
push ecx
call fcn.004cfc80
add esp, 0xc
mov edx, dword [ebp - 8]
add edx, dword [0x53a25c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x288
mov ecx, dword [0x53a6fc]
xor edx, edx
mov dl, byte [ecx + eax]
test edx, edx
je 0x40b191
mov eax, dword [0x53a260]
push eax
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x288
mov edx, dword [0x53a6fc]
lea eax, [edx + ecx + 0x82]
push eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
push ecx
call fcn.004cfe40
add esp, 0xc
jmp 0x40b1d5
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x288
mov eax, dword [0x53a6fc]
lea ecx, [eax + edx + 0x82]
push ecx
call fcn.004cf430
add esp, 4
push eax
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x288
mov eax, dword [0x53a6fc]
lea ecx, [eax + edx + 0x82]
push ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
push edx
call fcn.004cfc80
add esp, 0xc
mov eax, dword [ebp - 8]
add eax, dword [0x53a260]
mov dword [ebp - 8], eax
jmp 0x40b072
call fcn.0040883f
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40b213
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x228], ecx
mov edx, dword [ebp - 0x228]
push edx
call fcn.004e8e12
add esp, 4
xor eax, eax
jmp 0x40b3bd
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004089d2
mov dword [ebp - 0x10], eax
xor edx, edx
mov dx, word [0x539af6]
test edx, edx
je 0x40b256
mov eax, dword [ebp - 0x10]
push eax
push 0x519b28
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
jae 0x40b2ea
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x10]
push edx
call fcn.004089d2
mov dword [ebp - 0x1c], eax
xor eax, eax
mov ax, word [0x539af6]
test eax, eax
je 0x40b2b5
mov ecx, dword [ebp - 0x10]
push ecx
push 0x519b40
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x1c], 1
jae 0x40b2e1
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x10]
push edx
call fcn.004089d2
mov ecx, dword [ebp - 0x1c]
add ecx, eax
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
jne 0x40b383
mov ecx, dword [0x53a244]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00408a86
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x40b383
mov edx, dword [ebp - 0x18]
push edx
push 0x519b60
lea eax, [ebp - 0x19c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x19c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x10]
push edx
push 0x519b7c
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.0044ce83
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x22c], ecx
mov edx, dword [ebp - 0x22c]
push edx
call fcn.004e8e12
add esp, 4
call fcn.00408962
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40b3ad
xor eax, eax
jmp 0x40b3bd
mov eax, dword [ebp - 0x10]
xor ecx, ecx
cmp eax, dword [0x53a244]
sete cl
mov eax, ecx
mov esp, ebp
pop ebp
ret