Function at 0x14016705d
Capabilities:
Reference sql statements

Disassembly:
jmp 0x1401872e0
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x5a8
lea rbp, [rsp + 0xe0]
lea rdi, [rsp + 0xe0]
mov ecx, 0xd2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x5c8]
mov rax, qword [0x1404ee780]
xor rax, rbp
mov qword [rbp + 0x4b0], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.14016a9fb
call fcn.14016b59f
movsx ecx, word [0x1404f4e74]
cdq
idiv ecx
mov eax, edx
mov dword [rbp + 0x2c4], eax
mov r8d, 0x18
mov rdx, qword [rbp + 0x4e8]
lea rcx, [rbp + 8]
call fcn.14016b4b9
lea rdx, [0x14044bd80]
lea rcx, [rbp + 8]
call fcn.14016aa87
mov edx, 0x18
lea rcx, [rbp + 8]
call fcn.1401612cf
mov r9, rax
lea r8, [rbp + 8]
lea rdx, [rbp + 0x38]
mov rcx, qword [0x1404f6de0]
call fcn.140167314
mov r8d, 0x1e
xor edx, edx
lea rcx, [rbp + 0x88]
call fcn.140167e40
mov r8d, 0x180
xor edx, edx
lea rcx, [rbp + 0xd0]
call fcn.140167e40
mov r8d, 0x1e
lea rdx, [0x1404f4e38]
lea rcx, [rbp + 0x88]
call fcn.14016526c
mov r8d, 0x180
lea rdx, [0x1404f4e78]
lea rcx, [rbp + 0xd0]
call fcn.14016526c
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 8]
call fcn.1401618bf
mov dword [rbp + 0x284], eax
cmp dword [rbp + 0x284], 0
jge 0x140187421
mov eax, dword [rbp + 0x284]
jmp 0x140187ab2
cmp dword [rbp + 0x520], 0
jl 0x140187440
mov rax, qword [rbp + 0x4e0]
movzx eax, byte [rax + 0x84]
cmp dword [rbp + 0x520], eax
jl 0x14018744a
mov eax, 0xfffffffc
jmp 0x140187ab2
mov eax, dword [rbp + 0x540]
mov dword [rbp + 0x474], eax
cmp dword [rbp + 0x474], 0
je 0x14018746a
cmp dword [rbp + 0x474], 1
je 0x140187476
jmp 0x140187482
mov dword [rbp + 0x540], 0x46
jmp 0x14018749e
mov dword [rbp + 0x540], 0x4d
jmp 0x14018749e
mov edx, dword [rbp + 0x540]
lea rcx, str.Received_unsupported_gender__d..._n
call fcn.140160af5
mov eax, 0xfffffffe
jmp 0x140187ab2
mov eax, dword [0x1404f5178]
mov dword [rbp + 0x2e4], eax
mov rax, qword [rbp + 0x4e0]
mov r9d, dword [rax + 4]
lea r8, [0x1404f20d4]
lea rdx, str.SELECT_1_FROM___s__WHERE__account_id____d
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x1401874f3
mov eax, dword [0x1404ed050]
add eax, 0x47
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharchar.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
mov rcx, qword [0x1404f6de0]
call fcn.1401655e1
mov rcx, qword [rbp + 0x4e0]
movzx ecx, byte [rcx + 0x84]
cmp rax, rcx
jb 0x14018751c
mov eax, 0xfffffffe
jmp 0x140187ab2
mov eax, dword [rbp + 0x520]
mov dword [rsp + 0x20], eax
mov rax, qword [rbp + 0x4e0]
mov r9d, dword [rax + 4]
lea r8, [0x1404f20d4]
lea rdx, str.SELECT_1_FROM___s__WHERE__account_id____d_AND__char_num____d_LIMIT_1
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x14018756f
mov eax, dword [0x1404ed050]
add eax, 0x52
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharchar.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
mov rcx, qword [0x1404f6de0]
call fcn.1401655e1
test rax, rax
jbe 0x14018758a
mov eax, 0xfffffffe
jmp 0x140187ab2
cmp dword [0x1404f4e2c], 0
je 0x14018764d
mov eax, dword [rbp + 0x528]
mov dword [rsp + 0x70], eax
mov eax, dword [rbp + 0x530]
mov dword [rsp + 0x68], eax
mov eax, dword [rbp + 0x518]
mov dword [rsp + 0x60], eax
mov eax, dword [rbp + 0x510]
mov dword [rsp + 0x58], eax
mov eax, dword [rbp + 0x508]
mov dword [rsp + 0x50], eax
mov eax, dword [rbp + 0x500]
mov dword [rsp + 0x48], eax
mov eax, dword [rbp + 0x4f8]
mov dword [rsp + 0x40], eax
mov eax, dword [rbp + 0x4f0]
mov dword [rsp + 0x38], eax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x520]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x4e0]
mov eax, dword [rax + 4]
mov dword [rsp + 0x20], eax
lea r9, str.make_new_char
lea r8, [0x1404f25d4]
lea rdx, str.INSERT_INTO___s____time____char_msg___account_id___char_num___name___str___agi___vit___int___dex___luk___hair___hair_color__VALUES__NOW_____s___d___d___s___d___d___d___d___d___d___d___d_
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x14018764d
mov eax, dword [0x1404ed050]
add eax, 0x5b
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharchar.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
movsx eax, word [rbp + 0x538]
test eax, eax
jne 0x140187665
mov eax, dword [0x1404f51b8]
and eax, 1
test eax, eax
jne 0x14018768a
movsx eax, word [rbp + 0x538]
cmp eax, 0x107a
jne 0x140187680
mov eax, dword [0x1404f51b8]
and eax, 2
test eax, eax
jne 0x14018768a
mov eax, 0xfffffffe
jmp 0x140187ab2
movsx eax, word [rbp + 0x538]
cmp eax, 0x107a
jne 0x140187709
mov r8d, 0x1e
xor edx, edx
lea rcx, [rbp + 0x88]
call fcn.140167e40
mov r8d, 0x180
xor edx, edx
lea rcx, [rbp + 0xd0]
call fcn.140167e40
mov r8d, 0x1e
lea rdx, [0x1404f4e56]
lea rcx, [rbp + 0x88]
call fcn.14016526c
mov r8d, 0x180
lea rdx, [0x1404f4ff8]
lea rcx, [rbp + 0xd0]
call fcn.14016526c
call fcn.14016b59f
movsx ecx, word [0x1404f4e76]
cdq
idiv ecx
mov eax, edx
mov dword [rbp + 0x2c4], eax
movsxd rax, dword [rbp + 0x2c4]
imul rax, rax, 6
movsx eax, word [rbp + rax + 0x8c]
mov dword [rbp + 0x474], eax
movsxd rcx, dword [rbp + 0x2c4]
imul rcx, rcx, 6
movsx ecx, word [rbp + rcx + 0x8a]
mov dword [rbp + 0x478], ecx
movsxd rdx, dword [rbp + 0x2c4]
imul rdx, rdx, 6
mov qword [rbp + 0x480], rdx
lea rdx, str.char_make_new_char
mov r8, qword [rbp + 0x480]
movzx ecx, word [rbp + r8 + 0x88]
call fcn.14016a0af
mov qword [rbp + 0x488], rax
movsxd rcx, dword [rbp + 0x2c4]
imul rcx, rcx, 6
movsx ecx, word [rbp + rcx + 0x8c]
mov dword [rbp + 0x490], ecx
movsxd rdx, dword [rbp + 0x2c4]
imul rdx, rdx, 6
movsx edx, word [rbp + rdx + 0x8a]
mov dword [rbp + 0x494], edx
movsxd r8, dword [rbp + 0x2c4]
imul r8, r8, 6
lea rdx, str.char_make_new_char
movzx ecx, word [rbp + r8 + 0x88]
call fcn.14016a0af
mov qword [rbp + 0x498], rax
mov ecx, dword [rbp + 0x508]
add ecx, 0x64
imul ecx, ecx, 0xb
mov eax, ecx
cdq
mov ecx, 0x64
idiv ecx
mov dword [rbp + 0x4a0], eax
mov ecx, dword [rbp + 0x508]
add ecx, 0x64
imul ecx, ecx, 0xb
mov eax, ecx
cdq
mov ecx, 0x64
idiv ecx
mov dword [rbp + 0x4a4], eax
mov ecx, dword [rbp + 0x500]
add ecx, 0x64
imul ecx, ecx, 0x28
mov eax, ecx
cdq
mov ecx, 0x64
idiv ecx
mov dword [rbp + 0x4a8], eax
mov ecx, dword [rbp + 0x500]
add ecx, 0x64
imul ecx, ecx, 0x28
mov eax, ecx
cdq
mov ecx, 0x64
idiv ecx
movsx ecx, word [rbp + 0x538]
mov edx, dword [rbp + 0x540]
mov dword [rsp + 0xd8], edx
mov edx, dword [rbp + 0x474]
mov dword [rsp + 0xd0], edx
mov edx, dword [rbp + 0x478]
mov dword [rsp + 0xc8], edx
mov rdx, qword [rbp + 0x488]
mov qword [rsp + 0xc0], rdx
mov edx, dword [rbp + 0x490]
mov dword [rsp + 0xb8], edx
mov edx, dword [rbp + 0x494]
mov dword [rsp + 0xb0], edx
mov rdx, qword [rbp + 0x498]
mov qword [rsp + 0xa8], rdx
mov edx, dword [rbp + 0x528]
mov dword [rsp + 0xa0], edx
mov edx, dword [rbp + 0x530]
mov dword [rsp + 0x98], edx
mov edx, dword [rbp + 0x4a0]
mov dword [rsp + 0x90], edx
mov edx, dword [rbp + 0x4a4]
mov dword [rsp + 0x88], edx
mov edx, dword [rbp + 0x4a8]
mov dword [rsp + 0x80], edx
mov dword [rsp + 0x78], eax
mov eax, dword [rbp + 0x518]
mov dword [rsp + 0x70], eax
mov eax, dword [rbp + 0x510]
mov dword [rsp + 0x68], eax
mov eax, dword [rbp + 0x508]
mov dword [rsp + 0x60], eax
mov eax, dword [rbp + 0x500]
mov dword [rsp + 0x58], eax
mov eax, dword [rbp + 0x4f8]
mov dword [rsp + 0x50], eax
mov eax, dword [rbp + 0x4f0]
mov dword [rsp + 0x48], eax
mov eax, dword [rbp + 0x2e4]
mov dword [rsp + 0x40], eax
mov eax, dword [0x1404f518c]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
mov eax, dword [rbp + 0x520]
mov dword [rsp + 0x20], eax
mov rax, qword [rbp + 0x4e0]
mov r9d, dword [rax + 4]
lea r8, [0x1404f20d4]
lea rdx, str.INSERT_INTO___s____account_id____char_num____name____class____zeny____status_point____str____agi____vit____int____dex____luk____max_hp____hp___max_sp____sp____hair____hair_color____last_map____last_x____last_y____save_map____save_x____save_y____sex___VALUES___d___d___s___d___d____d___d___d___d___d___d___d___u___u___u___u___d___d___s___d___d___s___d___d___c_
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x140187998
mov eax, dword [0x1404ed050]
add eax, 0x75
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharchar.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
mov eax, 0xfffffffe
jmp 0x140187ab2
mov rcx, qword [0x1404f6de0]
call fcn.1401634ad
mov dword [rbp + 0x264], eax
mov dword [rbp + 0x2a4], 0
jmp 0x1401879c4
mov eax, dword [rbp + 0x2a4]
inc eax
mov dword [rbp + 0x2a4], eax
cmp dword [rbp + 0x2a4], 0x20
jg 0x140187a7f
movsxd rax, dword [rbp + 0x2a4]
imul rax, rax, 0xc
cmp dword [rbp + rax + 0xd0], 0
je 0x140187a7f
movsxd rax, dword [rbp + 0x2a4]
imul rax, rax, 0xc
movsxd rcx, dword [rbp + 0x2a4]
imul rcx, rcx, 0xc
movzx ecx, word [rbp + rcx + 0xd4]
movsxd rdx, dword [rbp + 0x2a4]
imul rdx, rdx, 0xc
mov dword [rsp + 0x38], 1
mov eax, dword [rbp + rax + 0xd8]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov eax, dword [rbp + rdx + 0xd0]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp + 0x264]
lea r8, [0x1404f24d4]
lea rdx, str.INSERT_INTO___s____char_id___nameid____amount____equip____identify___VALUES___d___u___hu___u___d_
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x140187a7a
mov eax, dword [0x1404ed050]
add eax, 0x7e
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharchar.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
jmp 0x1401879b6
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x520]
mov r8d, dword [rbp + 0x264]
mov rax, qword [rbp + 0x4e0]
mov edx, dword [rax + 4]
lea rcx, str.Created_char:_account:__d__char:__d__slot:__d__name:__s_n
call fcn.140168c9b
mov eax, dword [rbp + 0x264]
mov rdi, rax
lea rcx, [rbp - 0xe0]
lea rdx, reloc.WS2_32.dll_connect
call fcn.140168bb0
mov rax, rdi
mov rcx, qword [rbp + 0x4b0]
xor rcx, rbp
call fcn.140165226
lea rsp, [rbp + 0x4c8]
pop rdi
pop rbp
ret