Function at 0x40c3ea
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f28eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2d0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
xor eax, eax
mov ax, word [0x539af6]
test eax, eax
je 0x40c43b
push str._RCP____SET_USERADDRBOOK___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x53a140]
mov dword [ebp - 0x18], ecx
mov edx, dword [0x53a134]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.004e8de9
add esp, 4
mov dword [ebp - 0x2c4], eax
mov ecx, dword [ebp - 0x2c4]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x40c482
mov edx, dword [ebp - 0x24]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.004cf390
add esp, 0xc
jmp 0x40c4b9
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x40c49a
push str._RCP__Mfp_SetUseraddrbook_____Memory_Allocation_error___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x2c8], edx
mov eax, dword [ebp - 0x2c8]
push eax
call fcn.004e8e12
add esp, 4
xor eax, eax
jmp 0x40cc6a
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x14]
mov byte [ecx], 0x1b
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
mov byte [eax], 0xa4
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
sub edx, 6
shr edx, 0x18
and edx, 0xff
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
mov byte [eax], dl
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
sub edx, 6
shr edx, 0x10
and edx, 0xff
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
mov byte [eax], dl
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
sub edx, 6
shr edx, 8
and edx, 0xff
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
mov byte [eax], dl
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
sub edx, 6
and edx, 0xff
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
mov byte [eax], dl
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x14]
mov byte [edx], 0x50
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x14]
mov byte [ecx], 0xe0
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
mov byte [eax], 0x82
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x14]
mov byte [edx], 0xc2
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x14]
mov byte [ecx], 0x47
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
and eax, 0xffff
sar eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x14]
mov byte [ecx], al
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
and eax, 0xff
and eax, 0xff
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x14]
mov byte [ecx], al
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], 0
jmp 0x40c60c
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x18]
jge 0x40c904
mov edx, dword [ebp - 0x20]
add edx, 1
and edx, 0xffff
sar edx, 8
and edx, 0xff
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
mov byte [eax], dl
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x20]
add edx, 1
and edx, 0xff
and edx, 0xff
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
mov byte [eax], dl
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x20]
imul edx, edx, 0x490
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
mov ecx, dword [0x53a6ec]
mov dl, byte [ecx + edx]
mov byte [eax], dl
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x20]
imul ecx, ecx, 0x490
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x14]
mov eax, dword [0x53a6ec]
mov cl, byte [eax + ecx + 1]
mov byte [edx], cl
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
push 0x519ee4
push 0x53a0f8
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40c6d3
push 0x519ef0
push 0x53a0f8
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40c7cc
lea ecx, [ebp - 0x34]
call fcn.00401900
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x490
mov ecx, dword [0x53a6ec]
lea edx, [ecx + eax + 8]
push edx
lea ecx, [ebp - 0x34]
call fcn.004e82b5
mov dword [ebp - 0x38], 0
push 0x40
lea ecx, [ebp - 0x34]
call fcn.004e855c
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x40c724
mov dword [ebp - 0x2d4], 0
jmp 0x40c763
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
shl eax, 1
add eax, 3
and al, 0xfc
call fcn.004d0180
mov dword [ebp - 0x2d8], esp
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x2d8]
push eax
call fcn.00422b00
mov dword [ebp - 0x2d4], eax
mov ecx, dword [ebp - 0x2d4]
mov dword [ebp - 0x2c], ecx
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov edx, dword [ebp - 0x2c]
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x40], eax
push 0
push 0
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x14]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x2c]
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
add eax, dword [0x53a15c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004e812c
jmp 0x40c801
mov ecx, dword [0x53a15c]
push ecx
mov edx, dword [ebp - 0x20]
imul edx, edx, 0x490
mov eax, dword [0x53a6ec]
lea ecx, [eax + edx + 8]
push ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x14]
push edx
call fcn.004cfe40
add esp, 0xc
mov eax, dword [ebp - 0x14]
add eax, dword [0x53a15c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x20]
imul ecx, ecx, 0x490
mov edx, dword [0x53a6ec]
cmp dword [edx + ecx + 0x48c], 0
je 0x40c848
mov eax, dword [0x53a160]
push eax
mov ecx, dword [ebp - 0x20]
imul ecx, ecx, 0x490
mov edx, dword [0x53a6ec]
lea eax, [edx + ecx + 0x88]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.004cfe40
add esp, 0xc
jmp 0x40c875
mov edx, dword [0x53a160]
push edx
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x490
mov ecx, dword [0x53a6ec]
lea edx, [ecx + eax + 0x88]
push edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
push eax
call fcn.004cfe40
add esp, 0xc
mov ecx, dword [ebp - 0x14]
add ecx, dword [0x53a160]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x20]
imul edx, edx, 0x490
mov eax, dword [0x53a6ec]
cmp dword [eax + edx + 0x48c], 0
je 0x40c8c7
mov ecx, dword [0x53a164]
push ecx
mov edx, dword [ebp - 0x20]
imul edx, edx, 0x490
mov eax, dword [0x53a6ec]
lea ecx, [eax + edx + 0x288]
push ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x14]
push edx
call fcn.004cfe40
add esp, 0xc
jmp 0x40c8f3
mov eax, dword [0x53a164]
push eax
mov ecx, dword [ebp - 0x20]
imul ecx, ecx, 0x490
mov edx, dword [0x53a6ec]
lea eax, [edx + ecx + 0x288]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.004cfe40
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, dword [0x53a164]
mov dword [ebp - 0x14], edx
jmp 0x40c603
call fcn.0040883f
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40c931
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2cc], eax
mov ecx, dword [ebp - 0x2cc]
push ecx
call fcn.004e8e12
add esp, 4
xor eax, eax
jmp 0x40cc6a
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.004089d2
mov dword [ebp - 0x1c], eax
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x40c974
mov edx, dword [ebp - 0x1c]
push edx
push 0x519ef8
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0xc8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x14]
jae 0x40ca09
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x1c]
push ecx
call fcn.004089d2
mov dword [ebp - 0x28], eax
xor edx, edx
mov dx, word [0x539af6]
test edx, edx
je 0x40c9d4
mov eax, dword [ebp - 0x1c]
push eax
push str._RCP__WriteData_retry____d__n
lea ecx, [ebp - 0x148]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x148]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x28], 1
jae 0x40ca00
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x1c]
push ecx
call fcn.004089d2
mov edx, dword [ebp - 0x28]
add edx, eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x14]
jne 0x40cc32
mov edx, dword [0x53a13c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00408a86
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1b4], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1bc], 0
jmp 0x40ca66
mov ecx, dword [ebp - 0x1bc]
add ecx, 0xc
mov dword [ebp - 0x1bc], ecx
mov edx, dword [ebp - 0x1bc]
cmp edx, dword [ebp - 0x1b0]
jge 0x40cbca
push 0x64
push 0
lea eax, [ebp - 0x1ac]
push eax
call fcn.004cf390
add esp, 0xc
mov dword [ebp - 0x1b8], 0
mov ecx, dword [ebp - 0x1bc]
push ecx
push 0x519f30
mov edx, dword [ebp - 0x1b8]
lea eax, [ebp + edx - 0x1ac]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x1b8], eax
mov dword [ebp - 0x1c0], 0
jmp 0x40cad9
mov ecx, dword [ebp - 0x1c0]
add ecx, 1
mov dword [ebp - 0x1c0], ecx
cmp dword [ebp - 0x1c0], 0xc
jge 0x40cb55
mov edx, dword [ebp - 0x1bc]
add edx, dword [ebp - 0x1c0]
cmp edx, dword [ebp - 0x1b0]
jge 0x40cb15
mov eax, dword [ebp - 0x1bc]
add eax, dword [ebp - 0x1c0]
mov ecx, dword [ebp - 0x1b4]
xor edx, edx
mov dl, byte [ecx + eax]
mov dword [ebp - 0x2dc], edx
jmp 0x40cb1f
mov dword [ebp - 0x2dc], 0
mov eax, dword [ebp - 0x2dc]
push eax
push 0x519f38
mov ecx, dword [ebp - 0x1b8]
lea edx, [ebp + ecx - 0x1ac]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, dword [ebp - 0x1b8]
add ecx, eax
mov dword [ebp - 0x1b8], ecx
jmp 0x40caca
push 0x519f40
mov edx, dword [ebp - 0x1b8]
lea eax, [ebp + edx - 0x1ac]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
mov ecx, dword [ebp - 0x1b8]
add ecx, eax
mov dword [ebp - 0x1b8], ecx
movsx edx, byte [ebp - 0x183]
cmp edx, 0x46
jne 0x40cba3
movsx eax, byte [ebp - 0x182]
cmp eax, 0x46
jne 0x40cba3
mov dword [0x53a9d8], 1
jmp 0x40cbc5
movsx ecx, byte [ebp - 0x183]
cmp ecx, 0x30
jne 0x40cbc5
movsx edx, byte [ebp - 0x182]
cmp edx, 0x30
jne 0x40cbc5
mov dword [0x53a9d8], 0
jmp 0x40ca57
xor eax, eax
mov ax, word [0x539af6]
test eax, eax
je 0x40cc32
mov ecx, dword [ebp - 0x24]
push ecx
push 0x519f44
lea edx, [ebp - 0x240]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x519f60
lea edx, [ebp - 0x2c0]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x2c0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0044ce83
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2d0], eax
mov ecx, dword [ebp - 0x2d0]
push ecx
call fcn.004e8e12
add esp, 4
call fcn.00408962
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40cc5c
xor eax, eax
jmp 0x40cc6a
mov edx, dword [ebp - 0x1c]
xor eax, eax
cmp edx, dword [0x53a13c]
sete al
lea esp, [ebp - 0x2dc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret