Function at 0x4132e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f8
mov eax, dword [0x422008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
mov dword [ebp - 0x4f8], eax
call fcn.00413190
test eax, eax
je 0x413324
mov al, 3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00417e1d
mov esp, ebp
pop ebp
ret 0x14
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413330
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x413363
nop
mov dl, byte [esi + eax]
cmp dl, 0x20
je 0x413497
cmp dl, 0x22
je 0x413497
cmp dl, 0x27
je 0x413497
inc eax
cmp eax, ecx
jl 0x413340
push ebx
push esi
push str.WZ_GuildCreate__s__s
push 0x422408
call fcn.00414eb0
add esp, 0x10
test al, al
je 0x4135f1
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4135f1
mov edi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
push 0x423036
call edi
add esp, 4
push dword [0x422414]
test eax, eax
jne 0x4135c8
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x4eb1c8
push 0
push dword [ebp - 0x4f8]
mov dword [0x4eb1c8], 0x20
push 0
push 0x20
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
movzx eax, byte [ebp + 0x18]
push esi
push eax
push str.UPDATE_Guild_SET_G_Mark__G_Type_d_WHERE_G_Name_s
push 0x422408
call fcn.00414eb0
add esp, 0x10
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push ebx
push 0x80
push str.UPDATE_GuildMember_SET_G_Status_d_WHERE_Name_s
push 0x422408
call fcn.00414eb0
add esp, 0x10
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
lea ecx, [ebp - 0x4f4]
call fcn.00412ca0
push esi
push str.SELECT_Number_FROM_Guild_WHERE_G_Name_s
push 0x422408
call fcn.00414eb0
add esp, 0xc
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.Number
call fcn.00415100
cmp eax, 0xffffffff
jne 0x4134ac
or eax, eax
jmp 0x4134ba
mov al, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00417e1d
mov esp, ebp
pop ebp
ret 0x14
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push dword [0x422414]
mov dword [ebp - 0x4f4], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi + 8]
movq xmm0, qword [esi]
mov byte [ebp - 0x4db], al
movzx eax, word [ebx + 8]
mov word [ebp - 0x4d2], ax
mov al, byte [ebx + 0xa]
mov byte [ebp - 0x4d0], al
mov al, byte [ebp + 0x18]
mov byte [ebp - 0x4e4], al
mov eax, dword [ebp - 0x4f8]
movq qword [ebp - 0x4e3], xmm0
movq xmm0, qword [ebx]
movq qword [ebp - 0x4da], xmm0
movups xmm0, xmmword [eax]
mov byte [ebp - 0x467], 0x80
movups xmmword [ebp - 0x493], xmm0
movups xmm0, xmmword [eax + 0x10]
movzx eax, word [ebx + 8]
mov word [ebp - 0x46a], ax
mov al, byte [ebx + 0xa]
mov byte [ebp - 0x468], al
mov eax, 0xffff
movups xmmword [ebp - 0x483], xmm0
mov word [ebp - 0x466], ax
movq xmm0, qword [ebx]
mov eax, dword [0x4220d8]
movq qword [ebp - 0x472], xmm0
cmp eax, dword [0x4220dc]
je 0x4135a1
mov edi, eax
lea esi, [ebp - 0x4f4]
mov ecx, 0x139
mov al, 1
rep movsd dword es:[edi], dword [esi]
add dword [0x4220d8], 0x4e4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00417e1d
mov esp, ebp
pop ebp
ret 0x14
lea ecx, [ebp - 0x4f4]
push ecx
push eax
mov ecx, 0x4220d4
call fcn.00413e20
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00417e1d
mov esp, ebp
pop ebp
ret 0x14
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00417e1d
mov esp, ebp
pop ebp
ret 0x14
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417e1d
mov esp, ebp
pop ebp
ret 0x14