Function at 0x140167049
Capabilities:
Reference sql statements

Disassembly:
jmp 0x1401c7ab0
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
sub rsp, 0x260
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x5c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x288]
lea rcx, reloc.WS2_32.dll_accept
call fcn.14016a9fb
cmp dword [rbp + 0x250], 0
jg 0x1401c7af7
xor eax, eax
jmp 0x1401c7f5b
mov ecx, dword [rbp + 0x250]
call fcn.14016ab81
mov qword [rbp + 0x168], rax
mov rdx, qword [rbp + 0x168]
mov rcx, qword [0x1404f7408]
mov rax, qword [0x1404f7408]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, rax
call fcn.140163331
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x1401c7b3d
mov rax, qword [rbp + 8]
jmp 0x1401c7f5b
mov r9d, dword [rbp + 0x250]
lea r8, [0x1404f44d4]
lea rdx, str.SELECT__name____master____mapname____max_member__FROM___s__WHERE__clan_id__d
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x1401c7b89
mov eax, dword [0x1404edeb0]
add eax, 0x10
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_clan.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
xor eax, eax
jmp 0x1401c7f5b
mov rcx, qword [0x1404f6de0]
call fcn.140161626
test eax, eax
je 0x1401c7ba0
xor eax, eax
jmp 0x1401c7f5b
mov eax, dword [0x1404edeb0]
add eax, 0x18
lea rcx, str.inter_clan_fromsql
mov qword [rsp + 0x20], rcx
mov r9d, eax
lea r8, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_clan.cpp
mov edx, 0x10b0
mov ecx, 1
call fcn.14016b11c
mov qword [rbp + 8], rax
mov r8d, 0x10b0
xor edx, edx
mov rcx, qword [rbp + 8]
call fcn.140167e40
mov rax, qword [rbp + 8]
mov ecx, dword [rbp + 0x250]
mov dword [rax], ecx
lea r9, [rbp + 0x48]
lea r8, [rbp + 0x28]
xor edx, edx
mov rcx, qword [0x1404f6de0]
call fcn.140162594
cmp qword [rbp + 0x48], 0x18
jae 0x1401c7c19
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x228], rax
jmp 0x1401c7c24
mov qword [rbp + 0x228], 0x18
mov rax, qword [rbp + 8]
add rax, 4
mov r8, qword [rbp + 0x228]
mov rdx, qword [rbp + 0x28]
mov rcx, rax
call fcn.14016526c
lea r9, [rbp + 0x48]
lea r8, [rbp + 0x28]
mov edx, 1
mov rcx, qword [0x1404f6de0]
call fcn.140162594
cmp qword [rbp + 0x48], 0x18
jae 0x1401c7c6c
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x228], rax
jmp 0x1401c7c77
mov qword [rbp + 0x228], 0x18
mov rax, qword [rbp + 8]
add rax, 0x1c
mov r8, qword [rbp + 0x228]
mov rdx, qword [rbp + 0x28]
mov rcx, rax
call fcn.14016526c
lea r9, [rbp + 0x48]
lea r8, [rbp + 0x28]
mov edx, 2
mov rcx, qword [0x1404f6de0]
call fcn.140162594
cmp qword [rbp + 0x48], 0x10
jae 0x1401c7cbf
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x228], rax
jmp 0x1401c7cca
mov qword [rbp + 0x228], reloc.WS2_32.dll_recv
mov rax, qword [rbp + 8]
add rax, 0x34
mov r8, qword [rbp + 0x228]
mov rdx, qword [rbp + 0x28]
mov rcx, rax
call fcn.14016526c
xor r9d, r9d
lea r8, [rbp + 0x28]
mov edx, 3
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x28]
call fcn.140161abd
mov rcx, qword [rbp + 8]
mov word [rcx + 0x44], ax
xor eax, eax
mov rcx, qword [rbp + 8]
mov word [rcx + 0x46], ax
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
mov rax, qword [rbp + 8]
movsx eax, word [rax + 0x44]
cmp eax, 0x1f4
jle 0x1401c7d70
mov rax, qword [rbp + 8]
movsx eax, word [rax + 0x44]
mov rcx, qword [rbp + 8]
add rcx, 4
mov dword [rsp + 0x20], 0x1f4
mov r9d, eax
mov r8, rcx
mov edx, dword [rbp + 0x250]
lea rcx, str.Clan__d:_s_specifies_higher_capacity___d__than_MAX_CLAN___d__n
call fcn.140160af5
mov eax, 0x1f4
mov rcx, qword [rbp + 8]
mov word [rcx + 0x44], ax
mov r9d, dword [rbp + 0x250]
lea r8, [0x1404f45d4]
lea rdx, str.SELECT__opposition___alliance_id___name__FROM___s__WHERE__clan_id__d
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x1401c7ddf
mov eax, dword [0x1404edeb0]
add eax, 0x2b
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_clan.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
mov eax, dword [0x1404edeb0]
add eax, 0x2c
lea r9, str.inter_clan_fromsql
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_clan.cpp
mov rcx, qword [rbp + 8]
call fcn.140162233
xor eax, eax
jmp 0x1401c7f5b
mov dword [rbp + 0x64], 0
jmp 0x1401c7df0
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 6
jge 0x1401c7ebe
mov rcx, qword [0x1404f6de0]
call fcn.140161626
test eax, eax
jne 0x1401c7ebe
movsxd rax, dword [rbp + 0x64]
imul rax, rax, 0x20
mov rcx, qword [rbp + 8]
lea rax, [rcx + rax + 0xfe8]
mov qword [rbp + 0x88], rax
xor r9d, r9d
lea r8, [rbp + 0x28]
xor edx, edx
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x28]
call fcn.140161abd
mov rcx, qword [rbp + 0x88]
mov dword [rcx], eax
xor r9d, r9d
lea r8, [rbp + 0x28]
mov edx, 1
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x28]
call fcn.140161abd
mov rcx, qword [rbp + 0x88]
mov dword [rcx + 4], eax
lea r9, [rbp + 0x48]
lea r8, [rbp + 0x28]
mov edx, 2
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov edx, 0x18
mov rcx, qword [rbp + 0x48]
call fcn.1401c8b80
mov rcx, qword [rbp + 0x88]
add rcx, 8
mov r8, rax
mov rdx, qword [rbp + 0x28]
call fcn.14016526c
jmp 0x1401c7de8
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x1b8]
call fcn.140163183
lea rcx, [rbp + 0x188]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov ecx, dword [rbp + 0x250]
call fcn.14016ab81
mov qword [rbp + 0x1e8], rax
lea rax, [rbp + 0x210]
lea rcx, [rbp + 0x188]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
xor r9d, r9d
lea r8, [rbp + 0x210]
mov rdx, qword [rbp + 0x1e8]
mov rcx, qword [0x1404f7408]
mov rax, qword [0x1404f7408]
call qword [rax + gethostname]
cmp dword [0x1404f4e28], 0
je 0x1401c7f57
mov rax, qword [rbp + 8]
add rax, 4
mov r8, rax
mov edx, dword [rbp + 0x250]
lea rcx, str.Clan_loaded___d____s__n
call fcn.140168c9b
mov rax, qword [rbp + 8]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_bind
call fcn.140168bb0
mov rax, rdi
lea rsp, [rbp + 0x230]
pop rdi
pop rsi
pop rbp
ret