Function at 0x40bd08
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f28d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x364
call fcn.0040883f
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40bd3b
xor eax, eax
jmp 0x40c3d6
mov dword [ebp - 0x18], 0x519d60
mov eax, dword [0x53a128]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.004089d2
mov dword [ebp - 0x24], eax
xor eax, eax
mov ax, word [0x539af6]
test eax, eax
je 0x40bd97
push str._RCP____GET_USERADDRBOOK___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x24]
push ecx
push 0x519d94
lea edx, [ebp - 0xb0]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x7d0
call fcn.0044cfec
add esp, 4
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x2c]
jne 0x40c3c1
mov edx, dword [0x53a140]
mov dword [ebp - 0x20], edx
mov eax, dword [0x53a12c]
push eax
call fcn.004e8de9
add esp, 4
mov dword [ebp - 0x35c], eax
mov ecx, dword [ebp - 0x35c]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
je 0x40bdfa
mov edx, dword [0x53a12c]
push edx
push 0
mov eax, dword [ebp - 0x18]
push eax
call fcn.004cf390
add esp, 0xc
jmp 0x40be1e
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x40be12
push str._RCP__Mfp_GetUseraddrbook_____Memory_Allocation_error___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.00408962
xor eax, eax
jmp 0x40c3d6
mov edx, dword [0x53a130]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00408a86
mov dword [ebp - 0x24], eax
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x40be74
mov edx, dword [ebp - 0x24]
push edx
push 0x519de8
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0044ce83
add esp, 8
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [0x53a130]
je 0x40beae
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x360], edx
mov eax, dword [ebp - 0x360]
push eax
call fcn.004e8e12
add esp, 4
push 0x519e00
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.00408962
xor eax, eax
jmp 0x40c3d6
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x53a12c]
sub ecx, dword [0x53a130]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
add eax, dword [0x53a130]
push eax
call fcn.00408a86
mov dword [ebp - 0x24], eax
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x40bf47
mov edx, dword [ebp - 0x14]
push edx
push 0x519e1c
lea eax, [ebp - 0x1b0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x1b0]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x24]
push edx
push 0x519e38
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0044ce83
add esp, 8
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x14]
jne 0x40bf58
mov dword [ebp - 0x10], 1
jmp 0x40bf5f
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
je 0x40c3a9
mov edx, dword [0x53a140]
mov dword [ebp - 0x20], edx
xor eax, eax
mov ax, word [0x539af6]
test eax, eax
je 0x40bfa4
mov ecx, dword [ebp - 0x20]
push ecx
push str._RCP__Number_of_entries___d__n
lea edx, [ebp - 0x2b0]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x2b0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x53a130]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], 0
jmp 0x40bfbf
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x20]
jge 0x40c3a9
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x1c]
xor edx, edx
mov dl, byte [ecx]
shl edx, 8
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x1c]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp - 0x30]
lea ecx, [eax + edx - 1]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x30], 0
jl 0x40c00f
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x20]
jle 0x40c014
jmp 0x40c3a9
mov ecx, dword [0x53a144]
add ecx, 1
cmp dword [ebp - 0x30], ecx
jl 0x40c040
mov edx, dword [ebp - 0x30]
sub edx, dword [0x53a144]
mov eax, dword [ebp - 0x30]
imul eax, eax, 0x490
mov ecx, dword [0x53a6ec]
mov dword [ecx + eax + 4], edx
jmp 0x40c08d
mov edx, dword [0x53a148]
mov eax, dword [0x53a144]
lea ecx, [eax + edx + 1]
cmp dword [ebp - 0x30], ecx
jl 0x40c078
mov edx, dword [ebp - 0x30]
sub edx, dword [0x53a144]
sub edx, dword [0x53a148]
mov eax, dword [ebp - 0x30]
imul eax, eax, 0x490
mov ecx, dword [0x53a6ec]
mov dword [ecx + eax + 4], edx
jmp 0x40c08d
mov edx, dword [ebp - 0x30]
imul edx, edx, 0x490
mov eax, dword [0x53a6ec]
mov ecx, dword [ebp - 0x30]
mov dword [eax + edx + 4], ecx
mov edx, dword [ebp - 0x30]
imul edx, edx, 0x490
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
mov ecx, dword [0x53a6ec]
mov al, byte [eax]
mov byte [ecx + edx], al
mov ecx, dword [ebp - 0x30]
imul ecx, ecx, 0x490
mov edx, dword [0x53a6ec]
mov dword [edx + ecx + 0x48c], 0
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x30]
imul ecx, ecx, 0x490
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x1c]
mov eax, dword [0x53a6ec]
mov dl, byte [edx]
mov byte [eax + ecx + 1], dl
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
push 0x519e70
push 0x53a0f8
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40c119
push 0x519e7c
push 0x53a0f8
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40c2fc
push 0x80
push 0
lea ecx, [ebp - 0x344]
push ecx
call fcn.004cf390
add esp, 0xc
mov edx, dword [0x53a15c]
push edx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x344]
push ecx
call fcn.004cfe40
add esp, 0xc
push 0
push 0
push 0xffffffffffffffff
lea edx, [ebp - 0x344]
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x354], eax
lea eax, [ebp - 0x344]
push eax
lea ecx, [ebp - 0x2bc]
call fcn.004e819a
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x354]
push ecx
lea ecx, [ebp - 0x2bc]
call fcn.004e855c
mov dword [ebp - 0x2c4], eax
mov dword [ebp - 0x2c0], 0
mov edx, dword [ebp - 0x2c4]
mov dword [ebp - 0x350], edx
cmp dword [ebp - 0x350], 0
jne 0x40c1c8
mov dword [ebp - 0x368], 0
jmp 0x40c216
mov eax, dword [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x358], eax
mov eax, dword [ebp - 0x358]
shl eax, 1
add eax, 3
and al, 0xfc
call fcn.004d0180
mov dword [ebp - 0x36c], esp
mov ecx, dword [ebp - 0x358]
push ecx
mov edx, dword [ebp - 0x350]
push edx
mov eax, dword [ebp - 0x36c]
push eax
call fcn.00422b00
mov dword [ebp - 0x368], eax
mov ecx, dword [ebp - 0x368]
mov dword [ebp - 0x2b4], ecx
mov edx, dword [ebp - 0x354]
push edx
mov eax, dword [ebp - 0x2b4]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x344]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x348], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x2bc]
call fcn.004e85ab
mov edx, dword [ebp - 0x2b4]
push edx
lea ecx, [ebp - 0x34c]
call fcn.004e81ec
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34c]
call fcn.00408660
cmp eax, 0x80
jae 0x40c294
lea ecx, [ebp - 0x34c]
call fcn.00408660
mov dword [ebp - 0x370], eax
jmp 0x40c29e
mov dword [ebp - 0x370], 0x7f
mov eax, dword [ebp - 0x370]
push eax
lea ecx, [ebp - 0x34c]
call fcn.00401920
push eax
mov ecx, dword [ebp - 0x30]
imul ecx, ecx, 0x490
mov edx, dword [0x53a6ec]
lea eax, [edx + ecx + 8]
push eax
call fcn.004cfc80
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
add ecx, dword [0x53a15c]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34c]
call fcn.004e812c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2bc]
call fcn.004e812c
jmp 0x40c332
mov edx, dword [0x53a15c]
push edx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x30]
imul ecx, ecx, 0x490
mov edx, dword [0x53a6ec]
lea eax, [edx + ecx + 8]
push eax
call fcn.004cfe40
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
add ecx, dword [0x53a15c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [0x53a160]
push edx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x30]
imul ecx, ecx, 0x490
mov edx, dword [0x53a6ec]
lea eax, [edx + ecx + 0x88]
push eax
call fcn.004cfe40
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
add ecx, dword [0x53a160]
mov dword [ebp - 0x1c], ecx
mov edx, dword [0x53a164]
push edx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x30]
imul ecx, ecx, 0x490
mov edx, dword [0x53a6ec]
lea eax, [edx + ecx + 0x288]
push eax
call fcn.004cfe40
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
add ecx, dword [0x53a164]
mov dword [ebp - 0x1c], ecx
jmp 0x40bfb6
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x364], edx
mov eax, dword [ebp - 0x364]
push eax
call fcn.004e8e12
add esp, 4
call fcn.00408962
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40c3d3
xor eax, eax
jmp 0x40c3d6
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 0x370]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret