Function at 0x14016a2a3
Capabilities:
Reference sql statements

Disassembly:
jmp 0x1401efa10
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x178]
lea rcx, reloc.WS2_32.dll_accept
call fcn.14016a9fb
mov r8d, 0x170
xor edx, edx
mov rcx, qword [rbp + 0x148]
call fcn.140167e40
mov r9d, dword [rbp + 0x140]
lea r8, [0x1404f3ad4]
lea rdx, str.SELECT__homun_id___char_id___class___prev_class___name___level___exp___intimacy___hunger____str____agi____vit____int____dex____luk____hp___max_hp___sp___max_sp___skill_point___rename_flag____vaporize____autofeed__FROM___s__WHERE__homun_id__u
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x1401efaab
mov eax, dword [0x1404edf10]
add eax, 9
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_homun.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
xor al, al
jmp 0x1401f0108
mov rcx, qword [0x1404f6de0]
call fcn.1401655e1
test rax, rax
jne 0x1401efacf
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
xor al, al
jmp 0x1401f0108
mov rcx, qword [0x1404f6de0]
call fcn.140161626
test eax, eax
je 0x1401efb11
mov eax, dword [0x1404edf10]
add eax, 0x14
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_homun.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
xor al, al
jmp 0x1401f0108
mov rax, qword [rbp + 0x148]
mov ecx, dword [rbp + 0x140]
mov dword [rax + 0x18], ecx
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, 1
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
mov rcx, qword [rbp + 0x148]
mov dword [rcx + 0x1c], eax
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, 2
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
mov rcx, qword [rbp + 0x148]
mov word [rcx + 0x20], ax
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, 3
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
mov rcx, qword [rbp + 0x148]
mov word [rcx + 0x22], ax
lea r9, [rbp + 0x28]
lea r8, [rbp + 8]
mov edx, 4
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rax, qword [rbp + 0x148]
mov r8d, 0x18
mov rdx, qword [rbp + 8]
mov rcx, rax
call fcn.14016b4b9
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, 5
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
mov rcx, qword [rbp + 0x148]
mov word [rcx + 0x128], ax
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, 6
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rbp + 8]
call fcn.140164d7b
mov rcx, qword [rbp + 0x148]
mov qword [rcx + 0x130], rax
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, 7
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rbp + 8]
call fcn.1401622dd
mov rcx, qword [rbp + 0x148]
mov dword [rcx + 0x34], eax
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, 8
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
mov rcx, qword [rbp + 0x148]
mov word [rcx + 0x38], ax
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, 9
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
mov rcx, qword [rbp + 0x148]
mov dword [rcx + 0x13c], eax
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, 0xa
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
mov rcx, qword [rbp + 0x148]
mov dword [rcx + 0x140], eax
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, reloc.WS2_32.dll_inet_addr
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
mov rcx, qword [rbp + 0x148]
mov dword [rcx + 0x144], eax
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, reloc.WS2_32.dll_inet_ntoa
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
mov rcx, qword [rbp + 0x148]
mov dword [rcx + 0x148], eax
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, reloc.WS2_32.dll_listen
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
mov rcx, qword [rbp + 0x148]
mov dword [rcx + 0x14c], eax
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, reloc.WS2_32.dll_ntohl
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
mov rcx, qword [rbp + 0x148]
mov dword [rcx + 0x150], eax
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, reloc.WS2_32.dll_ntohs
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
mov rcx, qword [rbp + 0x148]
mov dword [rcx + 0x24], eax
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
mov rcx, qword [rbp + 0x148]
mov dword [rcx + 0x28], eax
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, setsockopt
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
mov rcx, qword [rbp + 0x148]
mov dword [rcx + 0x2c], eax
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, reloc.WS2_32.dll_select
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
mov rcx, qword [rbp + 0x148]
mov dword [rcx + 0x30], eax
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, reloc.WS2_32.dll_send
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
mov rcx, qword [rbp + 0x148]
mov word [rcx + 0x126], ax
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, setsockopt
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
mov rcx, qword [rbp + 0x148]
mov word [rcx + 0x138], ax
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, reloc.WS2_32.dll_setsockopt
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
mov rcx, qword [rbp + 0x148]
mov word [rcx + 0x13a], ax
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, reloc.WS2_32.dll_shutdown
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
test eax, eax
je 0x1401eff19
mov dword [rbp + 0x114], 1
jmp 0x1401eff23
mov dword [rbp + 0x114], 0
mov rax, qword [rbp + 0x148]
movzx ecx, byte [rbp + 0x114]
mov byte [rax + 0x16d], cl
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
mov edx, 0x186a0
mov rax, qword [rbp + 0x148]
mov ecx, dword [rax + 0x34]
call fcn.1401f14d0
mov rcx, qword [rbp + 0x148]
mov dword [rcx + 0x34], eax
mov rax, qword [rbp + 0x148]
movsx eax, word [rax + 0x38]
cmp eax, 0x64
jl 0x1401eff7d
mov dword [rbp + 0x114], 0x64
jmp 0x1401effb5
mov rax, qword [rbp + 0x148]
movsx eax, word [rax + 0x38]
test eax, eax
jg 0x1401eff98
mov dword [rbp + 0x118], 0
jmp 0x1401effa9
mov rax, qword [rbp + 0x148]
movsx eax, word [rax + 0x38]
mov dword [rbp + 0x118], eax
mov eax, dword [rbp + 0x118]
mov dword [rbp + 0x114], eax
mov rax, qword [rbp + 0x148]
movzx ecx, word [rbp + 0x114]
mov word [rax + 0x38], cx
mov r9d, dword [rbp + 0x140]
lea r8, [0x1404f3bd4]
lea rdx, str.SELECT__id___lv__FROM___s__WHERE__homun_id__d
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x1401f0013
mov eax, dword [0x1404edf10]
add eax, 0x38
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_homun.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
xor al, al
jmp 0x1401f0108
mov rcx, qword [0x1404f6de0]
call fcn.140161626
test eax, eax
jne 0x1401f00b5
xor r9d, r9d
lea r8, [rbp + 8]
xor edx, edx
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0x1f41
jl 0x1401f005a
cmp dword [rbp + 0x44], 0x1f7c
jl 0x1401f005c
jmp 0x1401f0013
mov eax, dword [rbp + 0x44]
sub eax, 0x1f41
mov dword [rbp + 0x44], eax
mov rcx, qword [rbp + 8]
call fcn.140161abd
movsxd rcx, dword [rbp + 0x44]
mov rdx, qword [rbp + 0x148]
mov word [rdx + rcx*4 + 0x3a], ax
xor r9d, r9d
lea r8, [rbp + 8]
mov edx, 1
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 8]
call fcn.140161abd
movsxd rcx, dword [rbp + 0x44]
mov rdx, qword [rbp + 0x148]
mov byte [rdx + rcx*4 + 0x3c], al
jmp 0x1401f0013
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
cmp dword [0x1404f4e28], 0
je 0x1401f0106
mov rax, qword [rbp + 0x148]
movsx eax, word [rax + 0x20]
mov rcx, qword [rbp + 0x148]
mov rdx, qword [rbp + 0x148]
mov edx, dword [rdx + 0x1c]
mov dword [rsp + 0x20], edx
mov r9d, eax
mov r8, rcx
mov rax, qword [rbp + 0x148]
mov edx, dword [rax + 0x18]
lea rcx, str.Homunculus_loaded__ID:__d____s___Class:__d___CID:__d_._n
call fcn.140168c9b
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_bind
call fcn.140168bb0
mov rax, rdi
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret