Function at 0x51bdd0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push ebx
push esi
push edi
lea edi, [ebp - 0x1c]
mov ecx, 7
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x7fe0d4
call fcn.00507580
nop
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xb5
push ecx
push str.SELECT__account_id___userid___user_pass___sex___email___group_id___state___unban_time___expiration_time___logincount___lastlogin___last_ip___birthdate___character_slots___pincode____pincode_change__FROM___s__WHERE__account_id____d
mov edx, dword [ebp - 8]
push edx
call fcn.005073f0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x51be44
mov eax, dword [0x774028]
add eax, 0xd
push eax
push str.C:Games_rathena_master_srclogin_account.cpp
mov ecx, dword [ebp - 8]
push ecx
call fcn.005051a9
add esp, 0xc
xor al, al
jmp 0x51c196
mov eax, dword [ebp - 8]
push eax
call fcn.0050759e
add esp, 4
test eax, eax
je 0x51be67
mov eax, dword [ebp - 8]
push eax
call fcn.00504493
add esp, 4
xor al, al
jmp 0x51c196
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00503ade
add esp, 0x10
mov eax, dword [ebp - 0x14]
push eax
call fcn.00502a21
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push 0
lea eax, [ebp - 0x14]
push eax
push 1
mov ecx, dword [ebp - 8]
push ecx
call fcn.00503ade
add esp, 0x10
push 0x18
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 4
push ecx
call fcn.00500e1a
add esp, 0xc
push 0
lea eax, [ebp - 0x14]
push eax
push 2
mov ecx, dword [ebp - 8]
push ecx
call fcn.00503ade
add esp, 0x10
push 0x21
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x1c
push ecx
call fcn.00500e1a
add esp, 0xc
push 0
lea eax, [ebp - 0x14]
push eax
push 3
mov ecx, dword [ebp - 8]
push ecx
call fcn.00503ade
add esp, 0x10
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov cl, byte [eax + ecx]
mov byte [edx + 0x3d], cl
push 0
lea eax, [ebp - 0x14]
push eax
push 4
mov ecx, dword [ebp - 8]
push ecx
call fcn.00503ade
add esp, 0x10
push 0x28
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x3e
push ecx
call fcn.00500e1a
add esp, 0xc
push 0
lea eax, [ebp - 0x14]
push eax
push 5
mov ecx, dword [ebp - 8]
push ecx
call fcn.00503ade
add esp, 0x10
mov eax, dword [ebp - 0x14]
push eax
call fcn.00502a21
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x68], eax
push 0
lea eax, [ebp - 0x14]
push eax
push 6
mov ecx, dword [ebp - 8]
push ecx
call fcn.00503ade
add esp, 0x10
push 0xa
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.00504cea
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x70], eax
push 0
lea eax, [ebp - 0x14]
push eax
push 7
mov ecx, dword [ebp - 8]
push ecx
call fcn.00503ade
add esp, 0x10
mov eax, dword [ebp - 0x14]
push eax
call fcn.00508778
add esp, 4
cdq
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x78], eax
mov dword [ecx + 0x7c], edx
push 0
lea eax, [ebp - 0x14]
push eax
push 8
mov ecx, dword [ebp - 8]
push ecx
call fcn.00503ade
add esp, 0x10
mov eax, dword [ebp - 0x14]
push eax
call fcn.00508778
add esp, 4
cdq
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x80], eax
mov dword [ecx + 0x84], edx
push 0
lea eax, [ebp - 0x14]
push eax
push 9
mov ecx, dword [ebp - 8]
push ecx
call fcn.00503ade
add esp, 0x10
push 0xa
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.00504cea
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x88], eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0xa
mov ecx, dword [ebp - 8]
push ecx
call fcn.00503ade
add esp, 0x10
cmp dword [ebp - 0x14], 0
jne 0x51c02c
mov dword [ebp - 0xdc], 0x71d566
jmp 0x51c035
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x8c
push 0x18
mov edx, dword [ebp - 0xdc]
push edx
push ecx
call fcn.00500e1a
add esp, 0xc
push 0
lea eax, [ebp - 0x14]
push eax
push 0xb
mov ecx, dword [ebp - 8]
push ecx
call fcn.00503ade
add esp, 0x10
push 0x10
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0xa4
push ecx
call fcn.00500e1a
add esp, 0xc
push 0
lea eax, [ebp - 0x14]
push eax
push 0xc
mov ecx, dword [ebp - 8]
push ecx
call fcn.00503ade
add esp, 0x10
cmp dword [ebp - 0x14], 0
jne 0x51c0a2
mov dword [ebp - 0xdc], 0x71d566
jmp 0x51c0ab
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp + 0xc]
add ecx, 0xb4
push 0xb
mov edx, dword [ebp - 0xdc]
push edx
push ecx
call fcn.00500e1a
add esp, 0xc
push 0
lea eax, [ebp - 0x14]
push eax
push 0xd
mov ecx, dword [ebp - 8]
push ecx
call fcn.00503ade
add esp, 0x10
mov eax, dword [ebp - 0x14]
push eax
call fcn.00502a21
add esp, 4
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x6c], al
push 0
lea eax, [ebp - 0x14]
push eax
push 0xe
mov ecx, dword [ebp - 8]
push ecx
call fcn.00503ade
add esp, 0x10
push 5
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0xbf
push ecx
call fcn.00500e1a
add esp, 0xc
push 0
lea eax, [ebp - 0x14]
push eax
push 0xf
mov ecx, dword [ebp - 8]
push ecx
call fcn.00503ade
add esp, 0x10
mov eax, dword [ebp - 0x14]
push eax
call fcn.00508778
add esp, 4
cdq
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0xc8], eax
mov dword [ecx + 0xcc], edx
mov eax, dword [ebp - 8]
push eax
call fcn.00504493
add esp, 4
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx + 0xd0], 0
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x6c]
cmp ecx, 0xf
jle 0x51c194
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 4
push edx
push str.Account__s__AID_u__exceeds_MAX_CHARS._Capping..._n
call fcn.00505d75
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x6c], 0xf
mov al, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x51c1bc]
call fcn.005045c4
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0xdc
cmp ebp, esp
call fcn.00505258
mov esp, ebp
pop ebp
ret