Function at 0x140164970
Capabilities:
Reference sql statements

Disassembly:
jmp 0x1401a8a50
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x2a8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, WSAStartup
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x2c8]
mov rax, qword [0x1404ee780]
xor rax, rbp
mov qword [rbp + 0x270], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.14016a9fb
movsxd rax, dword [rbp + 0x2a0]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax]
and al, 1
movzx eax, al
test eax, eax
je 0x1401a8ac2
mov qword [rbp + 0x268], 0
jmp 0x1401a8af8
movsxd rax, dword [rbp + 0x2a0]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x2a0]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rcx, qword [rcx + 0x38]
mov rax, qword [rax + 0x28]
sub rax, rcx
mov qword [rbp + 0x268], rax
cmp qword [rbp + 0x268], 0x2c
jae 0x1401a8b0e
xor eax, eax
jmp 0x1401a94c3
mov dword [rbp + 4], 0
mov byte [rbp + 0x74], 1
movsxd rax, dword [rbp + 0x2a0]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x2a0]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 8]
mov rcx, qword [rcx + 0x38]
mov eax, dword [rax + rcx + 2]
mov dword [rbp + 0x94], eax
movsxd rax, dword [rbp + 0x2a0]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x2a0]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 8]
mov rcx, qword [rcx + 0x38]
lea rax, [rax + rcx + 6]
mov qword [rbp + 0xb8], rax
movsxd rax, dword [rbp + 0x2a0]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x2a0]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 8]
mov rcx, qword [rcx + 0x38]
movzx eax, word [rax + rcx + 0x1e]
mov dword [rbp + 0xd4], eax
mov dword [rbp + 0xf4], 0
mov dword [rbp + 0x114], 0
mov dword [rbp + 0x134], 1
cmp dword [rbp + 0xd4], 2
je 0x1401a8bee
cmp dword [rbp + 0xd4], 6
jne 0x1401a8c5c
movsxd rax, dword [rbp + 0x2a0]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x2a0]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 8]
mov rcx, qword [rcx + 0x38]
mov eax, dword [rax + rcx + 0x20]
mov dword [rbp + 0xf4], eax
movsxd rax, dword [rbp + 0x2a0]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x2a0]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 8]
mov rcx, qword [rcx + 0x38]
mov eax, dword [rax + rcx + 0x24]
mov dword [rbp + 0x114], eax
jmp 0x1401a8c9c
cmp dword [rbp + 0xd4], 9
jne 0x1401a8c9c
movsxd rax, dword [rbp + 0x2a0]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x2a0]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 8]
mov rcx, qword [rcx + 0x38]
movzx eax, byte [rax + rcx + 0x20]
mov dword [rbp + 0x134], eax
mov edx, 0x2c
mov ecx, dword [rbp + 0x2a0]
call fcn.14016642d
mov edx, 0x18
mov rcx, qword [rbp + 0xb8]
call fcn.1401612cf
mov r9, rax
mov r8, qword [rbp + 0xb8]
lea rdx, [rbp + 0x28]
mov rcx, qword [0x1404f6de0]
call fcn.140167314
lea r9, [rbp + 0x28]
lea r8, [0x1404f20d4]
lea rdx, str.SELECT__account_id____char_id__FROM___s__WHERE__name____s
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x1401a8d1e
mov eax, dword [0x1404ed0c4]
add eax, 0x16
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharchar_mapif.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
jmp case.0x1401a8e2d.6
mov rcx, qword [0x1404f6de0]
call fcn.1401655e1
test rax, rax
jne 0x1401a8d3b
mov dword [rbp + 4], 1
jmp case.0x1401a8e2d.6
mov rcx, qword [0x1404f6de0]
call fcn.140161626
test eax, eax
je 0x1401a8d76
mov eax, dword [0x1404ed0c4]
add eax, 0x1b
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharchar_mapif.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
mov dword [rbp + 4], 1
jmp case.0x1401a8e2d.6
xor r9d, r9d
lea r8, [rbp + 0x198]
xor edx, edx
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x198]
call fcn.140161abd
mov dword [rbp + 0x154], eax
xor r9d, r9d
lea r8, [rbp + 0x198]
mov edx, 1
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x198]
call fcn.140161abd
mov dword [rbp + 0x174], eax
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
call fcn.140166d8d
test eax, eax
jne 0x1401a8dee
mov dword [rbp + 4], 3
jmp case.0x1401a8e2d.6
mov eax, dword [rbp + 0xd4]
mov dword [rbp + 0x264], eax
mov eax, dword [rbp + 0x264]
dec eax
mov dword [rbp + 0x264], eax
cmp dword [rbp + 0x264], 8
ja case.0x1401a8e2d.6
movsxd rax, dword [rbp + 0x264]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x1a94f4]
add rax, rcx
jmp rax
cmp dword [section..data], 0
je 0x1401a8e7a
movsxd rax, dword [section..data]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0x30]
add rax, 0xa
movsxd rcx, dword [section..data]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
cmp rax, qword [rcx + 0x20]
jbe 0x1401a8e7a
mov edx, 0xa
mov ecx, dword [section..data]
call fcn.14016782d
xor eax, eax
test eax, eax
jne case.0x1401a8e2d.0
movsxd rax, dword [section..data]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [section..data]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx + 0x30]
mov edx, 0x2724
mov word [rax + rcx], dx
movsxd rax, dword [section..data]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [section..data]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx + 0x30]
mov edx, dword [rbp + 0x154]
mov dword [rax + rcx + 2], edx
movsxd rax, dword [section..data]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [section..data]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx + 0x30]
mov dword [rax + rcx + 6], 5
mov edx, 0xa
mov ecx, dword [section..data]
call fcn.14016a799
jmp case.0x1401a8e2d.6
cmp dword [section..data], 0
je 0x1401a8f7f
movsxd rax, dword [section..data]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0x30]
add rax, 0xa
movsxd rcx, dword [section..data]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
cmp rax, qword [rcx + 0x20]
jbe 0x1401a8f7f
mov edx, 0xa
mov ecx, dword [section..data]
call fcn.14016782d
xor eax, eax
test eax, eax
jne case.0x1401a8e2d.1
movsxd rax, dword [section..data]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [section..data]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx + 0x30]
mov edx, 0x2725
mov word [rax + rcx], dx
movsxd rax, dword [section..data]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [section..data]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx + 0x30]
mov edx, dword [rbp + 0x154]
mov dword [rax + rcx + 2], edx
movsxd rax, dword [section..data]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [section..data]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx + 0x30]
mov edx, dword [rbp + 0xf4]
mov dword [rax + rcx + 6], edx
mov edx, 0xa
mov ecx, dword [section..data]
call fcn.14016a799
jmp case.0x1401a8e2d.6
cmp dword [section..data], 0
je 0x1401a9086
movsxd rax, dword [section..data]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0x30]
add rax, 0xa
movsxd rcx, dword [section..data]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
cmp rax, qword [rcx + 0x20]
jbe 0x1401a9086
mov edx, 0xa
mov ecx, dword [section..data]
call fcn.14016782d
xor eax, eax
test eax, eax
jne case.0x1401a8e2d.2
movsxd rax, dword [section..data]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [section..data]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx + 0x30]
mov edx, 0x2724
mov word [rax + rcx], dx
movsxd rax, dword [section..data]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [section..data]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx + 0x30]
mov edx, dword [rbp + 0x154]
mov dword [rax + rcx + 2], edx
movsxd rax, dword [section..data]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [section..data]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx + 0x30]
mov dword [rax + rcx + 6], 0
mov edx, 0xa
mov ecx, dword [section..data]
call fcn.14016a799
jmp case.0x1401a8e2d.6
cmp dword [section..data], 0
je 0x1401a918b
movsxd rax, dword [section..data]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0x30]
add rax, 6
movsxd rcx, dword [section..data]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
cmp rax, qword [rcx + 0x20]
jbe 0x1401a918b
mov edx, 6
mov ecx, dword [section..data]
call fcn.14016782d
xor eax, eax
test eax, eax
jne case.0x1401a8e2d.3
movsxd rax, dword [section..data]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [section..data]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx + 0x30]
mov edx, 0x272a
mov word [rax + rcx], dx
movsxd rax, dword [section..data]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [section..data]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx + 0x30]
mov edx, dword [rbp + 0x154]
mov dword [rax + rcx + 2], edx
mov edx, 6
mov ecx, dword [section..data]
call fcn.14016a799
jmp case.0x1401a8e2d.6
mov byte [rbp + 0x74], 0
cmp dword [section..data], 0
je 0x1401a9260
movsxd rax, dword [section..data]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0x30]
add rax, 6
movsxd rcx, dword [section..data]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
cmp rax, qword [rcx + 0x20]
jbe 0x1401a9260
mov edx, 6
mov ecx, dword [section..data]
call fcn.14016782d
xor eax, eax
test eax, eax
jne 0x1401a9215
movsxd rax, dword [section..data]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [section..data]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx + 0x30]
mov edx, 0x2727
mov word [rax + rcx], dx
movsxd rax, dword [section..data]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [section..data]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx + 0x30]
mov edx, dword [rbp + 0x154]
mov dword [rax + rcx + 2], edx
mov edx, 6
mov ecx, dword [section..data]
call fcn.14016a799
jmp case.0x1401a8e2d.6
mov eax, dword [rbp + 0x114]
and eax, 4
mov byte [rbp + 0x74], al
mov r9d, dword [rbp + 0x2a0]
mov r8d, dword [rbp + 0xf4]
movzx edx, byte [rbp + 0x114]
mov ecx, dword [rbp + 0x154]
call fcn.140161680
jmp case.0x1401a8e2d.6
mov byte [rbp + 0x74], 0
mov edx, dword [rbp + 0x134]
mov ecx, dword [rbp + 0x174]
call fcn.140168fd9
cmp dword [rbp + 0x94], 0xffffffff
je 0x1401a94be
movsx eax, byte [rbp + 0x74]
test eax, eax
je 0x1401a94be
cmp dword [rbp + 0x2a0], 0
je 0x1401a938a
movsxd rax, dword [rbp + 0x2a0]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0x30]
add rax, 0x22
movsxd rcx, dword [rbp + 0x2a0]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
cmp rax, qword [rcx + 0x20]
jbe 0x1401a938a
mov edx, 0x22
mov ecx, dword [rbp + 0x2a0]
call fcn.14016782d
xor eax, eax
test eax, eax
jne 0x1401a933f
movsxd rax, dword [rbp + 0x2a0]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x2a0]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx + 0x30]
mov edx, 0x2b0f
mov word [rax + rcx], dx
movsxd rax, dword [rbp + 0x2a0]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x2a0]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx + 0x30]
mov edx, dword [rbp + 0x94]
mov dword [rax + rcx + 2], edx
movsxd rax, dword [rbp + 0x2a0]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x2a0]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx + 0x30]
lea rax, [rax + rcx + 6]
mov r8d, 0x18
mov rdx, qword [rbp + 0xb8]
mov rcx, rax
call fcn.14016b4b9
movsxd rax, dword [rbp + 0x2a0]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x2a0]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx + 0x30]
movzx edx, word [rbp + 0xd4]
mov word [rax + rcx + 0x1e], dx
movsxd rax, dword [rbp + 0x2a0]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x2a0]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx + 0x30]
movzx edx, word [rbp + 4]
mov word [rax + rcx + 0x20], dx
mov edx, 0x22
mov ecx, dword [rbp + 0x2a0]
call fcn.14016a799
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_bind
call fcn.140168bb0
mov rax, rdi
mov rcx, qword [rbp + 0x270]
xor rcx, rbp
call fcn.140165226
lea rsp, [rbp + 0x288]
pop rdi
pop rbp
ret