Function at 0x413eb0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x49e051
mov eax, dword fs:[0]
push eax
mov eax, 0x3874
mov dword fs:[0], esp
call fcn.0047f090
mov eax, dword [0x4d2084]
xor eax, esp
push ebx
push ebp
mov ebp, dword [esp + 0x3898]
push esi
mov esi, dword [esp + 0x3890]
mov dword [esp + 0x387c], eax
mov eax, dword [esp + 0x3898]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x413f0a
mov al, 1
jmp 0x41413a
push esi
lea ecx, [esp + 0x80]
push str.SELECT_COUNT___FROM_mail_WHERE_ReceiverID_d
push ecx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov byte [esp + 0x88], bl
call fcn.0047f034
add esp, 0xc
push 1
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x84]
push eax
mov ecx, 0x4d8c60
call fcn.00404b50
test al, al
je 0x41413a
mov ecx, dword [esp + 0xc]
push edi
push ecx
call sub.LIBMYSQL.dll_mysql_fetch_row
mov edx, dword [eax]
push edx
call fcn.0047f135
mov edi, eax
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call sub.LIBMYSQL.dll_mysql_free_result
cmp edi, 0x96
mov edi, dword [esp + 0x3898]
jl 0x413fe1
cmp edi, ebx
je 0x413fe1
cmp byte [esp + 0x38a4], bl
je 0x413fda
push str.MSG_MAIL_SERVER_FULL
call fcn.00455f10
add esp, 4
push eax
lea ecx, [esp + 0x20]
call fcn.00401a40
push ebx
push ebp
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
push ebx
push edi
mov dword [esp + 0x38a0], ebx
call fcn.00413eb0
lea ecx, [esp + 0x1c]
mov bl, al
call fcn.0046cd00
mov al, bl
jmp 0x414139
xor al, al
jmp 0x414139
cmp byte [esp + 0x38a4], bl
mov ecx, 2
mov dword [esp + 0x70], ecx
je 0x414002
mov eax, 0x413e70
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
jmp 0x41400a
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov eax, 0xf
mov dword [esp + 0x7c], esi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
mov dword [esp + 0x388c], 1
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x58]
mov byte [esp + 0x3890], cl
push eax
mov ecx, 0x4d8c60
call fcn.00405f00
push ebp
lea ecx, [esp + 0x3c]
push ecx
mov ecx, 0x4d8c60
call fcn.00405f00
cmp edi, ebx
je 0x4140a2
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x3c]
mov ebp, 0x10
cmp eax, ebp
jae 0x41407a
lea ecx, [esp + 0x3c]
cmp dword [esp + 0x6c], ebp
mov eax, dword [esp + 0x58]
jae 0x414088
lea eax, [esp + 0x58]
push edi
push esi
push ecx
push eax
push edi
push esi
lea edx, [esp + 0x98]
push str.INSERT_INTO_mail_SELECT___d__d_NOW____s__s_t1.Name_t2.Name_FROM_user_as_t1__user_as_t2_WHERE_t1.ID_d_AND_t2.ID_d
push edx
call fcn.0047f034
jmp 0x4140ef
mov ecx, dword [esp + 0x50]
mov ebp, dword [esp + 0x3c]
mov eax, 0x10
cmp ecx, eax
jae 0x4140b7
lea ebp, [esp + 0x3c]
cmp dword [esp + 0x6c], eax
mov edi, dword [esp + 0x58]
jae 0x4140c5
lea edi, [esp + 0x58]
push esi
push str.MAIL_ADMIN
call fcn.00455f10
add esp, 4
push eax
push ebp
push edi
push ebx
push esi
lea eax, [esp + 0x98]
push str.INSERT_INTO_mail_SELECT___d__d_NOW____s__s_t1.Name__s_FROM_user_as_t1_WHERE_t1.ID_d
push eax
call fcn.0047f034
mov ebp, 0x10
add esp, 0x20
lea ecx, [esp + 0x70]
push ecx
mov ecx, 0x4d8c8c
call fcn.004054e0
cmp dword [esp + 0x50], ebp
jb 0x414114
mov edx, dword [esp + 0x3c]
push edx
call fcn.0047e60d
add esp, 4
cmp dword [esp + 0x6c], ebp
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
jb 0x414137
mov eax, dword [esp + 0x58]
push eax
call fcn.0047e60d
add esp, 4
mov al, 1
pop edi
mov ecx, dword [esp + 0x3880]
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x3874]
pop ebx
xor ecx, esp
call fcn.0047ece2
add esp, 0x3880
ret 0x14