Function at 0x436410
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4a701c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x54], 0
push esi
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x60], ebx
push edi
mov eax, dword [ebx*4 + 0x4b5420]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0
mov ecx, dword [eax + 0x20]
mov esi, dword [eax + 8]
add ecx, 6
add esi, ecx
mov byte [ebp - 5], 0
mov eax, edx
mov ecx, 0x17
sub esi, eax
nop
mov al, byte [esi + edx]
dec ecx
mov byte [edx], al
inc edx
test al, al
je 0x436471
test ecx, ecx
jne 0x436460
jmp 0x436481
test ecx, ecx
je 0x436481
push ecx
push 0
push edx
call fcn.00461440
add esp, 0xc
lea eax, [ebp - 0x1c]
push 0x18
push eax
call fcn.0046d32b
mov ecx, dword [0x4ad1b4]
add esp, 8
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x50]
push eax
test ecx, ecx
je 0x4364ae
lea eax, [ecx + 0x10]
push eax
call dword [sym.imp.libmysql.dll_mysql_real_escape_string]
jmp 0x4364b4
call dword [sym.imp.libmysql.dll_mysql_escape_string]
lea eax, [ebp - 0x50]
push eax
push 0x4aaab4
push str.SELECT__char_id___class___base_level__FROM___s__WHERE__name____s
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x436543
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x4364fb
push 0x2d1
push str.D:_ragnarokbr_rathena_srccharint_mail.cpp
push str.at__s:_lu___self_is_NULL_n
call fcn.004427f0
add esp, 0xc
jmp 0x436668
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x436527
mov byte [edx], 0
push dword [ecx]
push 0x2d1
push str.D:_ragnarokbr_rathena_srccharint_mail.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x436668
push 0x2d1
push str.D:_ragnarokbr_rathena_srccharint_mail.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
jmp 0x436668
mov esi, dword [0x4ad1b4]
test esi, esi
je 0x436668
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x436668
push eax
call dword [sym.imp.libmysql.dll_mysql_fetch_row]
mov dword [esi + 0x3e4], eax
test eax, eax
je 0x436654
push dword [esi + 0x3e0]
call dword [sym.imp.libmysql.dll_mysql_fetch_lengths]
mov ebx, dword [sym.imp.libmysql.dll_mysql_num_fields]
mov dword [esi + 0x3e8], eax
mov esi, dword [0x4ad1b4]
test esi, esi
je 0x4365be
cmp dword [esi + 0x3e4], 0
je 0x4365be
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x4365ba
push eax
call ebx
test eax, eax
je 0x4365ba
mov eax, dword [esi + 0x3e4]
mov esi, dword [eax]
jmp 0x4365c1
xor esi, esi
jmp 0x4365c1
mov esi, dword [ebp - 0x64]
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
mov dword [ebp - 0x54], eax
test edi, edi
je 0x4365ff
cmp dword [edi + 0x3e4], 0
je 0x4365ff
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x4365fd
push eax
call ebx
cmp eax, 1
jbe 0x4365fd
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 4]
jmp 0x4365ff
xor esi, esi
push esi
call fcn.0046d2ec
mov edi, dword [0x4ad1b4]
add esp, 4
movzx eax, ax
mov dword [ebp - 0x58], eax
test edi, edi
je 0x436640
cmp dword [edi + 0x3e4], 0
je 0x436640
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x43663e
push eax
call ebx
cmp eax, 2
jbe 0x43663e
mov eax, dword [edi + 0x3e4]
mov esi, dword [eax + 8]
jmp 0x436640
xor esi, esi
push esi
call fcn.0046d2ec
mov ebx, dword [ebp - 0x60]
add esp, 4
movzx eax, ax
mov dword [ebp - 0x5c], eax
jmp 0x436668
lea eax, [esi + 0x10]
mov dword [esi + 0x3e8], 0
push eax
call dword [sym.imp.libmysql.dll_mysql_errno]
mov esi, dword [0x4ad1b4]
test esi, esi
je 0x4366a1
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x4366a1
push eax
call dword [sym.imp.libmysql.dll_mysql_free_result]
mov dword [esi + 0x3e0], 0
mov dword [esi + 0x3e4], 0
mov dword [esi + 0x3e8], 0
mov edx, dword [ebx*4 + 0x4b5420]
mov ecx, dword [edx + 0x20]
mov eax, dword [edx + 8]
mov esi, dword [ecx + eax + 2]
test ebx, ebx
je 0x4366df
mov eax, dword [edx + 0x1c]
add eax, 0x26
cmp eax, dword [edx + 0x14]
jbe 0x4366df
push str.mapif_Mail_receiver_send
push 0x2bc
push str.D:_ragnarokbr_rathena_srccharint_mail.cpp
mov edx, 0x26
mov ecx, ebx
call fcn.00440270
add esp, 0xc
mov edi, dword [ebx*4 + 0x4b5420]
mov edx, 0x384e
push 0x18
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0xc]
mov word [ecx + eax], dx
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 0x1c]
mov edx, dword [ebp - 0x54]
mov dword [ecx + eax + 2], esi
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 0x1c]
mov dword [ecx + eax + 6], edx
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 0x1c]
mov edx, dword [ebp - 0x58]
mov word [ecx + eax + 0xa], dx
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0xc]
mov edx, dword [ebp - 0x5c]
mov word [ecx + eax + 0xc], dx
lea eax, [ebp - 0x1c]
mov esi, dword [edi + 0xc]
push eax
mov eax, dword [edi + 0x1c]
add esi, 0xe
add eax, esi
push eax
call fcn.004723b0
add esp, 0xc
mov edx, 0x26
mov ecx, ebx
call fcn.004403f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045f6f1
mov esp, ebp
pop ebp
ret