Function at 0x405720
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2264
call fcn.004874e0
mov eax, dword [0x4a701c]
xor eax, esp
mov dword [esp + 0x2260], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0x18], edx
mov edi, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 0
call fcn.0043df80
mov esi, eax
test esi, esi
jne 0x40578f
push 0x399
push str.D:_ragnarokbr_rathena_srccharchar.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 ecx, dword [esp + 0x2260]
xor ecx, esp
call fcn.0045f6f1
mov esp, ebp
pop ebp
ret
push 0x2248
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00461440
add esp, 0xc
lea eax, [edi + 0x108]
lea ecx, [edi + 0x14]
mov edx, 0xf
mov dword [ecx], 0xffffffff
lea ecx, [ecx + 4]
mov dword [eax], 0
lea eax, [eax + 8]
mov dword [eax - 4], 0
sub edx, 1
jne 0x4057b1
push 0xf
push dword [edi + 4]
push 0x4aaab4
push str.SELECT__char_id___char_num___name___class___base_level___job_level___base_exp___job_exp___zeny___str___agi___vit___int___dex___luk___max_hp___hp___max_sp___sp___status_point___skill_point___option___karma___manner___hair___hair_color___clothes_color___body___weapon___shield___head_top___head_mid___head_bottom___last_map___rename___delete_date___robe___moves___unban_time___font___uniqueitem_counter___sex___hotkey_rowshift___title_id___show_equip___hotkey_rowshift2___max_ap___ap___trait_point___pow___sta___wis___spl___con___crt___inventory_slots___body_direction___disable_call__FROM___s__WHERE__account_id__d_AND__char_num_____d
push esi
call fcn.0043e040
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
mov ecx, esi
call fcn.0043e300
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x28]
xor edx, edx
mov ecx, esi
push 0
push eax
push 0xb
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x10c]
mov edx, 1
mov ecx, esi
push 0
push eax
push 0xe
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0xd1]
mov edx, 2
mov ecx, esi
push 0x18
push eax
push 0x15
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x54]
mov edx, 3
mov ecx, esi
push 0
push eax
push 0xa
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0xec]
mov edx, 4
mov ecx, esi
push 0
push eax
push 0x10
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0xf0]
mov edx, 5
mov ecx, esi
push 0
push eax
push 0x10
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x40]
mov edx, 6
mov ecx, esi
push 0
push eax
push 8
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x48]
mov edx, 7
mov ecx, esi
push 0
push eax
push 8
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x50]
mov edx, 8
mov ecx, esi
push 0
push eax
push 0xb
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0xf4]
mov edx, 9
mov ecx, esi
push 0
push eax
push 0xa
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0xf6]
mov edx, 0xa
mov ecx, esi
push 0
push eax
push 0xa
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0xf8]
mov edx, 0xb
mov ecx, esi
push 0
push eax
push 0xa
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0xfa]
mov edx, 0xc
mov ecx, esi
push 0
push eax
push 0xa
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0xfc]
mov edx, 0xd
mov ecx, esi
push 0
push eax
push 0xa
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0xfe]
mov edx, 0xe
mov ecx, esi
push 0
push eax
push 0xa
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x68]
mov edx, 0xf
mov ecx, esi
push 0
push eax
push 0x10
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x64]
mov edx, 0x10
mov ecx, esi
push 0
push eax
push 0x10
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x70]
mov edx, 0x11
mov ecx, esi
push 0
push eax
push 0x10
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x6c]
mov edx, 0x12
mov ecx, esi
push 0
push eax
push 0x10
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x58]
mov edx, 0x13
mov ecx, esi
push 0
push eax
push 0x10
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x5c]
mov edx, 0x14
mov ecx, esi
push 0
push eax
push 0x10
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x7c]
mov edx, 0x15
mov ecx, esi
push 0
push eax
push 0x10
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x82]
mov edx, 0x16
mov ecx, esi
push 0
push eax
push 0xe
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x80]
mov edx, 0x17
mov ecx, esi
push 0
push eax
push 0xa
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x84]
mov edx, 0x18
mov ecx, esi
push 0
push eax
push 0xa
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x86]
mov edx, 0x19
mov ecx, esi
push 0
push eax
push 0xa
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x88]
mov edx, 0x1a
mov ecx, esi
push 0
push eax
push 0xa
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x8a]
mov edx, 0x1b
mov ecx, esi
push 0
push eax
push 0xa
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0xc4]
mov edx, 0x1c
mov ecx, esi
push 0
push eax
push 0xa
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0xc6]
mov edx, 0x1d
mov ecx, esi
push 0
push eax
push 0xa
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0xc8]
mov edx, 0x1e
mov ecx, esi
push 0
push eax
push 0xa
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0xca]
mov edx, 0x1f
mov ecx, esi
push 0
push eax
push 0xa
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0xcc]
mov edx, 0x20
mov ecx, esi
push 0
push eax
push 0xa
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x116]
mov edx, 0x21
mov ecx, esi
push 0x10
push eax
push 0x15
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x2240]
mov edx, 0x22
mov ecx, esi
push 0
push eax
push 0xa
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x2248]
mov edx, 0x23
mov ecx, esi
push 0
push eax
push 7
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0xce]
mov edx, 0x24
mov ecx, esi
push 0
push eax
push 0xa
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x2258]
mov edx, 0x25
mov ecx, esi
push 0
push eax
push 0x10
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x2250]
mov edx, 0x26
mov ecx, esi
push 0
push eax
push 0xc
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x225c]
mov edx, 0x27
mov ecx, esi
push 0
push eax
push 0xe
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x2260]
mov edx, 0x28
mov ecx, esi
push 0
push eax
push 0x10
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x1c]
mov edx, 0x29
mov ecx, esi
push 2
push eax
push 0x16
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x2264]
mov edx, 0x2a
mov ecx, esi
push 0
push eax
push 0xe
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x2268]
mov edx, 0x2b
mov ecx, esi
push 0
push eax
push 0x11
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x223c]
mov edx, 0x2c
mov ecx, esi
push 0
push eax
push 6
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x2265]
mov edx, 0x2d
mov ecx, esi
push 0
push eax
push 0xe
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x78]
mov edx, 0x2e
mov ecx, esi
push 0
push eax
push 0x10
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x74]
mov edx, 0x2f
mov ecx, esi
push 0
push eax
push 0x10
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x60]
mov edx, 0x30
mov ecx, esi
push 0
push eax
push 0x10
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x100]
mov edx, 0x31
mov ecx, esi
push 0
push eax
push 0xa
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x102]
mov edx, 0x32
mov ecx, esi
push 0
push eax
push 0xa
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x104]
mov edx, 0x33
mov ecx, esi
push 0
push eax
push 0xa
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x106]
mov edx, 0x34
mov ecx, esi
push 0
push eax
push 0xa
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x108]
mov edx, 0x35
mov ecx, esi
push 0
push eax
push 0xa
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x10a]
mov edx, 0x36
mov ecx, esi
push 0
push eax
push 0xa
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x226c]
mov edx, 0x37
mov ecx, esi
push 0
push eax
push 6
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0xd0]
mov edx, 0x38
mov ecx, esi
push 0
push eax
push 5
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
sub esp, 8
lea eax, [esp + 0x223e]
mov edx, 0x39
mov ecx, esi
push 0
push eax
push 6
call fcn.0043e410
add esp, 0x14
cmp eax, 0xffffffff
je 0x40619c
xor ebx, ebx
mov ecx, esi
call fcn.0043e610
test eax, eax
jne 0x406160
movzx ecx, byte [esp + 0x104]
mov eax, dword [esp + 0x20]
mov dword [edi + ecx*4 + 0x14], eax
movzx edx, byte [esp + 0x104]
mov eax, dword [esp + 0x2248]
mov ecx, dword [esp + 0x224c]
mov dword [edi + edx*8 + 0x108], eax
mov dword [edi + edx*8 + 0x10c], ecx
mov ax, word [esp + 0x14]
cmp al, 0x46
je 0x406122
cmp al, 0x4d
je 0x40611b
push dword [esp + 0x24]
lea ecx, [esp + 0xcd]
movsx eax, al
push dword [esp + 0x24]
push ecx
push eax
push str.Found_unknown_gender__c_for_character__s__CID:__d__AID:__d___returning_account_gender..._n
call fcn.004427d0
mov eax, dword [edi + 0x10]
add esp, 0x14
jmp 0x406124
mov eax, 1
jmp 0x406124
xor eax, eax
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
add ecx, dword [esp + 0x10]
mov byte [esp + 0x105], al
call fcn.00409840
movzx ecx, byte [esp + 0x104]
inc ebx
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x2250]
mov dword [edi + ecx*4 + 0xc4], eax
cmp ebx, 0xf
jl 0x4060a5
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40616a
mov byte [eax], bl
xorps xmm0, xmm0
mov ecx, esi
movups xmmword [edi + 0x88], xmm0
movq qword [edi + 0x98], xmm0
call fcn.0043e860
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2260]
xor ecx, esp
call fcn.0045f6f1
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 4]
mov eax, ecx
sub eax, dword [esi]
test eax, eax
jle 0x4061c5
mov byte [ecx], 0
push dword [esi]
push 0x3eb
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu____s_n
call fcn.004427f0
add esp, 0x10
jmp 0x4061dc
push 0x3eb
push str.D:_ragnarokbr_rathena_srccharchar.cpp
push str.at__s:_lu_n
call fcn.004427f0
add esp, 0xc
mov ecx, esi
call fcn.0043e860
mov ecx, dword [esp + 0x226c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045f6f1
mov esp, ebp
pop ebp
ret