Function at 0x4335f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
push 0x7805
push 0
mov dword [ebp - 0x10], ebx
lea eax, [esi + 3]
push eax
call fcn.00461440
add esp, 0xc
xor eax, eax
mov word [esi], ax
mov byte [esi + 2], al
push 0x1f
push ebx
push 0x4abeb4
push str.SELECT__id__FROM___s__WHERE__dest_id__d_AND__status____3_ORDER_BY__id__LIMIT__d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x4336ac
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x433662
push 0x27
push str.D:_ragnarokbr_rathena_srccharint_mail.cpp
push str.at__s:_lu___self_is_NULL_n
call fcn.004427f0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x43368f
mov byte [edx], 0
push dword [ecx]
push 0x27
push str.D:_ragnarokbr_rathena_srccharint_mail.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x27
push str.D:_ragnarokbr_rathena_srccharint_mail.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4ad1b4]
test eax, eax
je 0x4336d3
mov eax, dword [eax + 0x3e0]
test eax, eax
je 0x4336d3
push eax
call dword [sym.imp.libmysql.dll_mysql_num_rows]
test edx, edx
jne 0x4336cf
cmp eax, 0x1e
jbe 0x4336d3
mov al, 1
jmp 0x4336d5
xor al, al
mov byte [esi + 2], al
lea ebx, [esi + 8]
xor eax, eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], eax
nop dword [eax]
nop word [eax + eax]
mov edi, dword [0x4ad1b4]
test edi, edi
je 0x4337ae
mov ecx, dword [edi + 0x3e0]
test ecx, ecx
je 0x4337ae
push ecx
call dword [sym.imp.libmysql.dll_mysql_fetch_row]
mov dword [edi + 0x3e4], eax
test eax, eax
je 0x433797
push dword [edi + 0x3e0]
call dword [sym.imp.libmysql.dll_mysql_fetch_lengths]
mov dword [edi + 0x3e8], eax
mov edi, dword [0x4ad1b4]
test edi, edi
je 0x43376b
cmp dword [edi + 0x3e4], 0
je 0x43376b
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x433764
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
test eax, eax
je 0x433764
mov eax, dword [edi + 0x3e4]
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x43376e
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x43376e
mov eax, dword [ebp - 4]
push eax
call fcn.0046d2ec
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword [ecx], eax
add ecx, 0x400
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
cmp eax, 0x1e
jl 0x4336f0
jmp 0x4337ae
lea eax, [edi + 0x10]
mov dword [edi + 0x3e8], 0
push eax
call dword [sym.imp.libmysql.dll_mysql_errno]
mov eax, dword [ebp - 8]
mov edi, dword [0x4ad1b4]
mov word [esi], ax
test edi, edi
je 0x4337ea
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x4337ea
push eax
call dword [sym.imp.libmysql.dll_mysql_free_result]
mov dword [edi + 0x3e0], 0
mov dword [edi + 0x3e4], 0
mov dword [edi + 0x3e8], 0
movzx eax, word [esi]
xor edx, edx
xor edi, edi
mov ecx, eax
cmp dx, ax
jge 0x433822
nop dword [eax + eax]
mov ecx, dword [ebx]
mov edx, ebx
call fcn.004340d0
test al, al
je 0x433659
movzx eax, word [esi]
inc edi
mov ecx, eax
add ebx, 0x400
cwde
cmp edi, eax
jl 0x433800
movzx eax, cx
xor edx, edx
xor ecx, ecx
xor ebx, ebx
mov dword [esi + 4], ecx
mov ecx, eax
cmp dx, ax
jge 0x4338f5
lea edi, [esi + 0x270]
nop
mov eax, dword [edi]
test eax, eax
jne 0x4338d7
push dword [edi - 0x268]
push 1
push 0x4abeb4
push str.UPDATE___s__SET__status____d_WHERE__id____d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x4338cb
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x433887
push 0x44
push str.D:_ragnarokbr_rathena_srccharint_mail.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x4338c3
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x4338b7
mov byte [edx], 0
push dword [ecx]
push 0x44
push str.D:_ragnarokbr_rathena_srccharint_mail.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
mov dword [edi], 1
inc word [esi + 4]
jmp 0x4338e0
push 0x44
push str.D:_ragnarokbr_rathena_srccharint_mail.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
mov dword [edi], 1
inc word [esi + 4]
jmp 0x4338e0
cmp eax, 1
jne 0x4338e0
inc word [esi + 6]
movzx ecx, word [esi]
inc ebx
movsx eax, cx
add edi, 0x400
cmp ebx, eax
jl 0x433840
movsx eax, cx
push eax
push dword [ebp - 0x10]
push str.mail_load_complete_from_DB___id:__d__total:__d__n
call fcn.00442790
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret