Function at 0x40b7ad
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
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 0x40b7e9
push str._RCP____SET_EMAILBOOK___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x53a1e0]
mov dword [ebp - 0xc], ecx
mov edx, dword [0x53a1d4]
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 0x40b833
mov edx, dword [ebp - 0x18]
push edx
push 0xff
mov eax, dword [ebp - 4]
push eax
call fcn.004cf390
add esp, 0xc
jmp 0x40b852
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x40b84b
push str._RCP__Mfp_SetPhonebook_____Memory_Allocation_error___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x40bd04
mov dword [ebp - 8], 0
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
mov byte [edx], 0x1b
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], 0xa4
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x18]
sub eax, 6
and eax, 0xffff
sar eax, 0x18
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 - 0x18]
sub eax, 6
and eax, 0xffff
sar eax, 0x10
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 - 0x18]
sub eax, 6
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 - 0x18]
sub eax, 6
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 - 4]
add eax, dword [ebp - 8]
mov byte [eax], 0x50
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], 0xe0
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], 0x82
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], 0xc2
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], 0x46
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0xffff
sar ecx, 8
and ecx, 0xff
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
mov byte [edx], cl
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
and ecx, 0xff
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
mov byte [edx], cl
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x40b9b4
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0xc]
jge 0x40bb1e
mov eax, dword [ebp - 0x14]
add eax, 1
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 - 0x14]
add eax, 1
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 eax, dword [ebp - 0x14]
imul eax, eax, 0x288
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov edx, dword [0x53a6f4]
mov al, byte [edx + eax]
mov byte [ecx], al
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 [0x53a6f4]
mov dl, byte [ecx + edx + 1]
mov byte [eax], dl
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [0x53a1f4]
push ecx
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x288
mov eax, dword [0x53a6f4]
lea ecx, [eax + edx + 2]
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 [0x53a1f4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x288
mov edx, dword [0x53a6f4]
xor eax, eax
mov al, byte [edx + ecx]
test eax, eax
je 0x40bac7
mov ecx, dword [0x53a1f8]
push ecx
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x288
mov eax, dword [0x53a6f4]
lea ecx, [eax + edx + 0x82]
push ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
push edx
call fcn.004cfe40
add esp, 0xc
jmp 0x40bb0d
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x288
mov ecx, dword [0x53a6f4]
lea edx, [ecx + eax + 0x82]
push edx
call fcn.004cf430
add esp, 4
push eax
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x288
mov ecx, dword [0x53a6f4]
lea edx, [ecx + eax + 0x82]
push edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
push eax
call fcn.004cfc80
add esp, 0xc
mov ecx, dword [ebp - 8]
add ecx, dword [0x53a1f8]
mov dword [ebp - 8], ecx
jmp 0x40b9ab
call fcn.0040883f
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40bb4b
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 0x40bd04
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004089d2
mov dword [ebp - 0x10], eax
xor eax, eax
mov ax, word [0x539af6]
test eax, eax
je 0x40bb9d
mov ecx, dword [ebp - 0x10]
push ecx
push 0x519cf4
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0044ce83
add esp, 8
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
jae 0x40bc31
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 0x40bbfc
mov ecx, dword [ebp - 0x10]
push ecx
push 0x519d0c
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 0x40bc28
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 0x40bcca
mov ecx, dword [0x53a1dc]
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 0x40bcca
mov edx, dword [ebp - 0x18]
push edx
push 0x519d2c
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 0x519d48
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 - 0x228], ecx
mov edx, dword [ebp - 0x228]
push edx
call fcn.004e8e12
add esp, 4
call fcn.00408962
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40bcf4
xor eax, eax
jmp 0x40bd04
mov eax, dword [ebp - 0x10]
xor ecx, ecx
cmp eax, dword [0x53a1dc]
sete cl
mov eax, ecx
mov esp, ebp
pop ebp
ret