Function at 0x408310
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
mov eax, dword [0x4a701c]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
mov esi, edx
mov dword [esp + 0x2c], ecx
push edi
mov dword [esp + 0x18], esi
lea eax, [ecx + 0x18]
xor ebx, ebx
nop dword [eax]
cmp dword [eax - 4], esi
je 0x408375
cmp dword [eax], esi
je 0x408374
cmp dword [eax + 4], esi
je 0x40836f
cmp dword [eax + 8], esi
je 0x40836a
cmp dword [eax + 0xc], esi
je 0x408365
add ebx, 5
add eax, 0x14
cmp ebx, 0xf
jl 0x408340
jmp 0x408375
add ebx, 4
jmp 0x408375
add ebx, 3
jmp 0x408375
add ebx, 2
jmp 0x408375
inc ebx
mov eax, dword [ecx + 4]
push esi
push eax
cmp ebx, 0xf
jne 0x408399
lea eax, [esp + 0x90]
push eax
push str.Char_deletion_aborted:__s__Account_ID:__u__Character_ID:__u_n
call fcn.00442790
add esp, 0x10
jmp 0x409820
push 0x4aaab4
push str.SELECT__name___account_id___party_id___guild_id___base_level___homun_id___partner_id___father___mother___elemental_id___delete_date__FROM___s__WHERE__account_id__u_AND__char_id__u
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x408467
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x4083f5
push 0x62d
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu___self_is_NULL_n
call fcn.004427f0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0045f6f1
mov esp, ebp
pop ebp
ret
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x408436
mov byte [edx], 0
push dword [ecx]
push 0x62d
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0045f6f1
mov esp, ebp
pop ebp
ret
push 0x62d
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0045f6f1
mov esp, ebp
pop ebp
ret
mov edi, dword [0x4ad1b4]
test edi, edi
je 0x4097ca
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x4097ca
push eax
call dword [sym.imp.libmysql.dll_mysql_fetch_row]
mov dword [edi + 0x3e4], eax
test eax, eax
je 0x4097b6
push dword [edi + 0x3e0]
call dword [sym.imp.libmysql.dll_mysql_fetch_lengths]
mov dword [edi + 0x3e8], eax
mov edi, dword [0x4ad1b4]
mov dword [esp + 0x14], edi
test edi, edi
je 0x4084f2
cmp dword [edi + 0x3e4], 0
je 0x4084f2
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x4084ec
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
test eax, eax
je 0x4084ec
mov eax, dword [edi + 0x3e4]
mov edi, dword [eax]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x3e8]
mov eax, dword [eax]
jmp 0x4084fa
xor edi, edi
xor eax, eax
jmp 0x4084fa
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x88]
mov esi, ecx
mov byte [esp + 0x9f], 0
mov eax, edi
mov edx, 0x17
sub eax, esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov al, byte [eax + ecx]
dec edx
mov byte [ecx], al
inc ecx
test al, al
je 0x408535
mov eax, dword [esp + 0x14]
test edx, edx
jne 0x408520
jmp 0x408545
test edx, edx
je 0x408545
push edx
push 0
push ecx
call fcn.00461440
add esp, 0xc
mov eax, dword [0x4ad1b4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x408582
cmp dword [eax + 0x3e4], 0
je 0x408582
mov eax, dword [eax + 0x3e0]
test eax, eax
je 0x408580
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 1
jbe 0x408580
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x3e4]
mov edi, dword [eax + 4]
jmp 0x408582
xor edi, edi
push edi
call fcn.0046d2ec
mov dword [esp + 0x18], eax
add esp, 4
mov eax, dword [0x4ad1b4]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4085cc
cmp dword [eax + 0x3e4], 0
je 0x4085cc
mov eax, dword [eax + 0x3e0]
test eax, eax
je 0x4085ca
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 2
jbe 0x4085ca
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x3e4]
mov edi, dword [eax + 8]
jmp 0x4085cc
xor edi, edi
push edi
call fcn.0046d2ec
mov dword [esp + 0x1c], eax
add esp, 4
mov eax, dword [0x4ad1b4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x408616
cmp dword [eax + 0x3e4], 0
je 0x408616
mov eax, dword [eax + 0x3e0]
test eax, eax
je 0x408614
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 3
jbe 0x408614
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x3e4]
mov edi, dword [eax + 0xc]
jmp 0x408616
xor edi, edi
push edi
call fcn.0046d2ec
mov dword [esp + 0x2c], eax
add esp, 4
mov eax, dword [0x4ad1b4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x408660
cmp dword [eax + 0x3e4], 0
je 0x408660
mov eax, dword [eax + 0x3e0]
test eax, eax
je 0x40865e
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 4
jbe 0x40865e
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x3e4]
mov edi, dword [eax + 0x10]
jmp 0x408660
xor edi, edi
push edi
call fcn.0046d2ec
mov dword [esp + 0x30], eax
add esp, 4
mov eax, dword [0x4ad1b4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4086aa
cmp dword [eax + 0x3e4], 0
je 0x4086aa
mov eax, dword [eax + 0x3e0]
test eax, eax
je 0x4086a8
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 5
jbe 0x4086a8
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x3e4]
mov edi, dword [eax + 0x14]
jmp 0x4086aa
xor edi, edi
push edi
call fcn.0046d2ec
mov dword [esp + 0x40], eax
add esp, 4
mov eax, dword [0x4ad1b4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4086f4
cmp dword [eax + 0x3e4], 0
je 0x4086f4
mov eax, dword [eax + 0x3e0]
test eax, eax
je 0x4086f2
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 6
jbe 0x4086f2
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x3e4]
mov edi, dword [eax + 0x18]
jmp 0x4086f4
xor edi, edi
push edi
call fcn.0046d2ec
mov dword [esp + 0x3c], eax
add esp, 4
mov eax, dword [0x4ad1b4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x40873e
cmp dword [eax + 0x3e4], 0
je 0x40873e
mov eax, dword [eax + 0x3e0]
test eax, eax
je 0x40873c
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 7
jbe 0x40873c
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x3e4]
mov edi, dword [eax + 0x1c]
jmp 0x40873e
xor edi, edi
push edi
call fcn.0046d2ec
mov dword [esp + 0x28], eax
add esp, 4
mov eax, dword [0x4ad1b4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x408788
cmp dword [eax + 0x3e4], 0
je 0x408788
mov eax, dword [eax + 0x3e0]
test eax, eax
je 0x408786
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 8
jbe 0x408786
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x3e4]
mov edi, dword [eax + 0x20]
jmp 0x408788
xor edi, edi
push edi
call fcn.0046d2ec
mov dword [esp + 0x14], eax
add esp, 4
mov eax, dword [0x4ad1b4]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4087d2
cmp dword [eax + 0x3e4], 0
je 0x4087d2
mov eax, dword [eax + 0x3e0]
test eax, eax
je 0x4087d0
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 9
jbe 0x4087d0
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x3e4]
mov edi, dword [eax + 0x24]
jmp 0x4087d2
xor edi, edi
push edi
call fcn.0046d2ec
mov dword [esp + 0x38], eax
add esp, 4
mov eax, dword [0x4ad1b4]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x40881c
cmp dword [eax + 0x3e4], 0
je 0x40881c
mov eax, dword [eax + 0x3e0]
test eax, eax
je 0x40881a
push eax
call dword [sym.imp.libmysql.dll_mysql_num_fields]
cmp eax, 0xa
jbe 0x40881a
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x3e4]
mov edi, dword [eax + 0x28]
jmp 0x40881c
xor edi, edi
push 0xa
push 0
push edi
call fcn.0046a591
add esp, 0xc
mov dword [esp + 0x1c], eax
mov eax, dword [0x4ad1b4]
mov ecx, 0x18
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
push ecx
test eax, eax
je 0x408861
lea ecx, [esp + 0x8c]
add eax, 0x10
push ecx
lea ecx, [esp + 0xa8]
push ecx
push eax
call dword [sym.imp.libmysql.dll_mysql_real_escape_string]
jmp 0x408877
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0xa8]
push eax
call dword [sym.imp.libmysql.dll_mysql_escape_string]
mov edi, dword [0x4ad1b4]
test edi, edi
je 0x4088b0
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x4088b0
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
mov eax, dword [0x4a99d4]
mov ecx, dword [esp + 0x2c]
test eax, eax
jle 0x4088c3
cmp ecx, eax
jge 0x4088cb
test eax, eax
jns 0x4088fb
neg eax
cmp ecx, eax
jg 0x4088fb
push ecx
lea eax, [esp + 0x8c]
push eax
push str.Char_deletion_aborted:__s__BaseLevel:__i_n
call fcn.00442790
add esp, 0xc
mov eax, 3
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0045f6f1
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4a9e00]
test al, 2
je 0x40893c
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x40893c
push ecx
lea eax, [esp + 0x8c]
push eax
push str.Char_deletion_aborted:__s__Guild_ID:__i_n
call fcn.00442790
add esp, 0xc
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0045f6f1
mov esp, ebp
pop ebp
ret
test al, 1
je 0x408978
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408978
push eax
lea eax, [esp + 0x8c]
push eax
push str.Char_deletion_aborted:__s__Party_ID:__i_n
call fcn.00442790
add esp, 0xc
mov eax, 5
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0045f6f1
mov esp, ebp
pop ebp
ret
cmp dword [0x4a99d8], 0
jle 0x4089d1
mov edi, dword [esp + 0x1c]
mov eax, edi
or eax, 0
je 0x4089a2
push 0
call fcn.0046d284
xor ecx, ecx
add esp, 4
cmp ecx, edx
jl 0x4089d1
jg 0x4089a2
cmp edi, eax
jbe 0x4089d1
lea eax, [esp + 0x88]
push eax
push str.Char_deletion_aborted:__s__Time_was_not_set_or_has_not_been_reached_ye_n
call fcn.00442790
add esp, 8
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0045f6f1
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4089e2
mov edx, eax
mov ecx, esi
call fcn.004081d0
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x4089f6
test edi, edi
je 0x408b15
push edi
push eax
push 0x4aaab4
push str.UPDATE___s__SET__child_0_WHERE__char_id__d_OR__char_id__d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x408a70
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x408a30
push 0x66a
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x408a68
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x408a59
mov byte [edx], 0
push dword [ecx]
push 0x66a
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x408a70
push 0x66a
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
push edi
push dword [esp + 0x28]
push 0x4ab2b4
push str.DELETE_FROM___s__WHERE__id___410_AND___char_id__d_OR__char_id__d_
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x408aed
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x408aad
push 0x66c
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x408ae5
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x408ad6
mov byte [edx], 0
push dword [ecx]
push 0x66c
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x408aed
push 0x66c
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
mov eax, 0x2b25
mov dword [esp + 0x4e], edi
mov word [esp + 0x48], ax
lea ecx, [esp + 0x48]
mov eax, dword [esp + 0x24]
mov edx, 0xe
mov dword [esp + 0x4a], eax
mov dword [esp + 0x52], esi
call fcn.004190a0
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
test eax, eax
je 0x408b37
push 1
lea ecx, [esp + 0x8c]
mov edx, eax
push ecx
push esi
push edi
call fcn.004390f0
add esp, 0x10
push esi
push 0x4abdb4
push str.DELETE_FROM___s__WHERE__char_id__d_AND__incubate___0
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x408bb0
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x408b70
push 0x67c
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x408ba8
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x408b99
mov byte [edx], 0
push dword [ecx]
push 0x67c
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x408bb0
push 0x67c
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
push esi
push 0x4aaeb4
push 0x4aaeb4
push 0x4abdb4
push 0x4abdb4
push str.DELETE_FROM___s__USING___s__JOIN___s__ON__pet_id____card1__card2___16_WHERE___s_.char_id___d_AND_card0__256
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x408c38
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x408bf8
push 0x680
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x408c30
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x408c21
mov byte [edx], 0
push dword [ecx]
push 0x680
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x408c38
push 0x680
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
push esi
push 0x4aadb4
push 0x4aadb4
push 0x4abdb4
push 0x4abdb4
push str.DELETE_FROM___s__USING___s__JOIN___s__ON__pet_id____card1__card2___16_WHERE___s_.char_id___d_AND_card0__256
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x408cc0
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x408c80
push 0x682
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x408cb8
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x408ca9
mov byte [edx], 0
push dword [ecx]
push 0x682
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x408cc0
push 0x682
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x408ccf
mov ecx, eax
call fcn.00433020
mov eax, dword [esp + 0x34]
test eax, eax
je 0x408cde
mov ecx, eax
call fcn.00429ed0
push esi
push 0x4ac7b4
push str.DELETE_FROM___s__WHERE__char_id____d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x408d4e
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x408d14
push 0x3d
push str.D:_ragnarokbr_rathena_srccharint_mercenary.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x408d46
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x408d3a
mov byte [edx], 0
push dword [ecx]
push 0x3d
push str.D:_ragnarokbr_rathena_srccharint_mercenary.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x408d4e
push 0x3d
push str.D:_ragnarokbr_rathena_srccharint_mercenary.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
push esi
push 0x4ac6b4
push str.DELETE_FROM___s__WHERE__char_id____d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x408dbe
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x408d84
push 0x40
push str.D:_ragnarokbr_rathena_srccharint_mercenary.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x408db6
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x408daa
mov byte [edx], 0
push dword [ecx]
push 0x40
push str.D:_ragnarokbr_rathena_srccharint_mercenary.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x408dbe
push 0x40
push str.D:_ragnarokbr_rathena_srccharint_mercenary.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
push esi
push 0x4ac1b4
push str.DELETE_FROM___s__WHERE__char_id____d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x408e37
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x408df7
push 0x691
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x408e2f
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x408e20
mov byte [edx], 0
push dword [ecx]
push 0x691
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x408e37
push 0x691
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
push esi
push 0x4ac1b4
push str.DELETE_FROM___s__WHERE__friend_id____d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x408eb0
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x408e70
push 0x696
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x408ea8
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x408e99
mov byte [edx], 0
push dword [ecx]
push 0x696
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x408eb0
push 0x696
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
push esi
push 0x4ac2b4
push str.DELETE_FROM___s__WHERE__char_id__d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x408f29
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x408ee9
push 0x69b
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x408f21
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x408f12
mov byte [edx], 0
push dword [ecx]
push 0x69b
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x408f29
push 0x69b
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
push esi
push 0x4aaeb4
push str.DELETE_FROM___s__WHERE__char_id__d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x408fa2
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x408f62
push 0x6a0
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x408f9a
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x408f8b
mov byte [edx], 0
push dword [ecx]
push 0x6a0
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x408fa2
push 0x6a0
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
push esi
push 0x4aadb4
push str.DELETE_FROM___s__WHERE__char_id__d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x40901b
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x408fdb
push 0x6a4
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x409013
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x409004
mov byte [edx], 0
push dword [ecx]
push 0x6a4
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x40901b
push 0x6a4
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
push esi
push 0x4ab3b4
push str.DELETE_FROM___s__WHERE__char_id__d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x409094
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x409054
push 0x6a8
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x40908c
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x40907d
mov byte [edx], 0
push dword [ecx]
push 0x6a8
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x409094
push 0x6a8
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
push esi
push 0x4accb4
push str.DELETE_FROM___s__WHERE__char_id__d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x40910d
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x4090cd
push 0x6ac
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x409105
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x4090f6
mov byte [edx], 0
push dword [ecx]
push 0x6ac
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x40910d
push 0x6ac
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
push esi
push 0x4acdb4
push str.DELETE_FROM___s__WHERE__char_id__d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x409186
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x409146
push 0x6ae
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x40917e
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x40916f
mov byte [edx], 0
push dword [ecx]
push 0x6ae
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x409186
push 0x6ae
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
push esi
push 0x4ab2b4
push str.DELETE_FROM___s__WHERE__char_id__d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4091ff
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x4091bf
push 0x6b2
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x4091f7
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x4091e8
mov byte [edx], 0
push dword [ecx]
push 0x6b2
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x4091ff
push 0x6b2
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
push esi
push 0x4abeb4
push 0x4abfb4
push str.DELETE_FROM___s__WHERE__id__IN___SELECT__id__FROM___s__WHERE__dest_id__d__
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x40927d
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x40923d
push 0x6b6
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x409275
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x409266
mov byte [edx], 0
push dword [ecx]
push 0x6b6
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x40927d
push 0x6b6
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
push esi
push 0x4abeb4
push str.DELETE_FROM___s__WHERE__dest_id__d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4092f6
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x4092b6
push 0x6ba
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x4092ee
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x4092df
mov byte [edx], 0
push dword [ecx]
push 0x6ba
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x4092f6
push 0x6ba
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
push esi
push 0x4abeb4
push str.UPDATE___s__SET__send_id_0_WHERE__send_id__d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x40936f
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x40932f
push 0x6be
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x409367
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x409358
mov byte [edx], 0
push dword [ecx]
push 0x6be
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x40936f
push 0x6be
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
push esi
push edi
push 0x4aabb4
push str.DELETE_FROM___s__WHERE__account_id____d_AND__char_id__d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x4093e9
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x4093a9
push 0x6c3
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x4093e1
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x4093d2
mov byte [edx], 0
push dword [ecx]
push 0x6c3
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x4093e9
push 0x6c3
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
push esi
push 0x4ac9b4
push str.DELETE_FROM___s__WHERE__char_id____d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x409462
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x409422
push 0x6c8
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x40945a
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x40944b
mov byte [edx], 0
push dword [ecx]
push 0x6c8
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x409462
push 0x6c8
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
push esi
push 0x4ac3b4
push str.DELETE_FROM___s__WHERE__char_id____d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4094db
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x40949b
push 0x6cc
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x4094d3
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x4094c4
mov byte [edx], 0
push dword [ecx]
push 0x6cc
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x4094db
push 0x6cc
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
push esi
push 0x4ad0b4
push str.DELETE_FROM___s__WHERE__char_id____d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x409554
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x409514
push 0x6d0
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x40954c
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x40953d
mov byte [edx], 0
push dword [ecx]
push 0x6d0
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x409554
push 0x6d0
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
cmp dword [0x4a9e1c], 0
je 0x4095e5
lea eax, [esp + 0xa0]
push eax
push esi
push 0
push edi
push 0x4aafb4
push str.INSERT_INTO___s___time____account_id___char_num___char_msg___name___VALUES__NOW_____d___d__Deleted_char__CID__d____s_
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x4095e5
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x4095a5
push 0x6d5
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x4095dd
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x4095ce
mov byte [edx], 0
push dword [ecx]
push 0x6d5
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x4095e5
push 0x6d5
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
push esi
push 0x4aaab4
push str.DELETE_FROM___s__WHERE__char_id__d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x40965e
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x40961e
push 0x6da
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu___self_is_NULL_n
jmp 0x409656
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x409647
mov byte [edx], 0
push dword [ecx]
push 0x6da
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x40965e
push 0x6da
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
push esi
push 0x4ab4b4
push str.SELECT__guild_id__FROM___s__WHERE__char_id____d
push dword [0x4ad1b4]
call fcn.0043d8e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x409727
mov ecx, dword [0x4ad1b4]
test ecx, ecx
jne 0x4096c4
push 0x6e3
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu___self_is_NULL_n
call fcn.004427f0
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov dword [eax + ebx*4 + 0x14], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0045f6f1
mov esp, ebp
pop ebp
ret
mov edx, dword [ecx + 4]
mov eax, edx
sub eax, dword [ecx]
test eax, eax
jle 0x4096ed
mov byte [edx], 0
push dword [ecx]
push 0x6e3
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
jmp 0x409790
push 0x6e3
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov dword [eax + ebx*4 + 0x14], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0045f6f1
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4ad1b4]
test eax, eax
je 0x409775
mov eax, dword [eax + 0x3e0]
test eax, eax
je 0x409775
push eax
call dword [sym.imp.libmysql.dll_mysql_num_rows]
test edx, edx
jne 0x409749
test eax, eax
je 0x409775
mov edx, dword [esp + 0x28]
call fcn.0042f100
mov eax, dword [esp + 0x30]
mov dword [eax + ebx*4 + 0x14], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0045f6f1
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x28]
test eax, eax
je 0x409793
push str._Character_Deleted_
push 0
push esi
push edi
mov edx, eax
or ecx, 0xffffffff
call fcn.0042ea40
add esp, 0x10
mov eax, dword [esp + 0x30]
mov dword [eax + ebx*4 + 0x14], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0045f6f1
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x10]
mov dword [edi + 0x3e8], 0
push eax
call dword [sym.imp.libmysql.dll_mysql_errno]
mov eax, dword [esp + 0x30]
push esi
push dword [eax + 4]
lea eax, [esp + 0x90]
push eax
push str.Char_deletion_aborted:__s__Account_ID:__u__Character_ID:__u_n
call fcn.00442790
mov esi, dword [0x4ad1b4]
add esp, 0x10
test esi, esi
je 0x409820
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x409820
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 ecx, dword [esp + 0xd4]
mov eax, 2
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045f6f1
mov esp, ebp
pop ebp
ret