Function at 0x4116e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445a6a
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x458330]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x7244
call fcn.00437162
add esp, 4
mov dword [ebp - 0x184], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x184], 0
je 0x411741
mov ecx, dword [ebp - 0x184]
call fcn.00407610
mov dword [ebp - 0x1bc], eax
jmp 0x41174b
mov dword [ebp - 0x1bc], 0
mov eax, dword [ebp - 0x1bc]
mov dword [ebp - 0x180], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x180]
mov dword [ebp - 0x18], ecx
push 0x7244
call fcn.00437162
add esp, 4
mov dword [ebp - 0x18c], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x18c], 0
je 0x41179d
mov ecx, dword [ebp - 0x18c]
call fcn.00407610
mov dword [ebp - 0x1c0], eax
jmp 0x4117a7
mov dword [ebp - 0x1c0], 0
mov edx, dword [ebp - 0x1c0]
mov dword [ebp - 0x188], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x188]
mov dword [ebp - 0x10], eax
push 0x7244
call fcn.00437162
add esp, 4
mov dword [ebp - 0x194], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x194], 0
je 0x4117f9
mov ecx, dword [ebp - 0x194]
call fcn.00407610
mov dword [ebp - 0x1c4], eax
jmp 0x411803
mov dword [ebp - 0x1c4], 0
mov ecx, dword [ebp - 0x1c4]
mov dword [ebp - 0x190], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x190]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
add eax, 0xf01c
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xf008
push ecx
mov edx, dword [ebp + 8]
add edx, 0xf044
push edx
mov ecx, dword [ebp - 0x18]
call fcn.00407760
mov eax, dword [ebp + 8]
add eax, 0xf01c
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xf008
push ecx
mov edx, dword [ebp + 8]
add edx, 0xf044
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00407760
mov eax, dword [ebp + 8]
add eax, 0xf01c
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xf008
push ecx
mov edx, dword [ebp + 8]
add edx, 0xf044
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00407760
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00407950
add esp, 8
test eax, eax
jne 0x4118c9
push str._ExDB__MuOnlineDB__Guild_Info_is_missing
push 2
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [eax + 4]
call edx
add esp, 0xc
mov ecx, dword [ebp - 0x18]
call fcn.00407b60
xor eax, eax
jmp 0x411d52
mov ecx, dword [ebp - 0x18]
call fcn.00407bb0
cwde
cmp eax, 0x64
je 0x411bb3
mov byte [ebp - 0xb8], 0
xor ecx, ecx
mov dword [ebp - 0xb7], ecx
mov dword [ebp - 0xb3], ecx
mov word [ebp - 0xaf], cx
mov byte [ebp - 0x28], 0
xor edx, edx
mov dword [ebp - 0x27], edx
mov dword [ebp - 0x23], edx
mov word [ebp - 0x1f], dx
mov byte [ebp - 0x16c], 0
push 0x7f
push 0
lea eax, [ebp - 0x16b]
push eax
call fcn.00435470
add esp, 0xc
mov byte [ebp - 0xd8], 0
xor ecx, ecx
mov dword [ebp - 0xd7], ecx
mov dword [ebp - 0xd3], ecx
mov dword [ebp - 0xcf], ecx
mov dword [ebp - 0xcb], ecx
mov dword [ebp - 0xc7], ecx
mov dword [ebp - 0xc3], ecx
mov dword [ebp - 0xbf], ecx
mov word [ebp - 0xbb], cx
mov byte [ebp - 0xb9], cl
mov dword [ebp - 0xe4], 0
push str.Number
mov ecx, dword [ebp - 0x18]
call fcn.00407cf0
mov dword [ebp - 0xdc], eax
push 0xa
lea edx, [ebp - 0xb8]
push edx
push str.G_Name
mov ecx, dword [ebp - 0x18]
call fcn.00407c50
push 0xa
lea eax, [ebp - 0x28]
push eax
push str.G_Master
mov ecx, dword [ebp - 0x18]
call fcn.00407c50
push 0x7f
lea ecx, [ebp - 0x16c]
push ecx
push str.G_Notice
mov ecx, dword [ebp - 0x18]
call fcn.00407c50
push str.G_Score
mov ecx, dword [ebp - 0x18]
call fcn.00407cf0
mov dword [ebp - 0x2c], eax
push str.G_Type
mov ecx, dword [ebp - 0x18]
call fcn.00407cf0
mov dword [ebp - 0xe8], eax
lea edx, [ebp - 0xb8]
push edx
push str.SELECT_G_Mark_FROM_Guild_WHERE_G_Name___s
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0xd8]
push ecx
lea edx, [ebp - 0xac]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00407f00
mov eax, dword [ebp - 0xe8]
push eax
lea ecx, [ebp - 0xd8]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
lea eax, [ebp - 0x16c]
push eax
mov ecx, dword [ebp - 0xdc]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0xb8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00412b80
add esp, 0x20
test eax, eax
je 0x411aa9
lea edx, [ebp - 0xb8]
push edx
call fcn.004113b0
add esp, 4
mov dword [ebp - 0xe4], eax
push str.G_Rival
mov ecx, dword [ebp - 0x18]
call fcn.00407cf0
mov ecx, dword [ebp - 0xe4]
mov dword [ecx + 0x29], eax
push str.G_Union
mov ecx, dword [ebp - 0x18]
call fcn.00407cf0
mov edx, dword [ebp - 0xe4]
mov dword [edx + 0x2d], eax
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 0x2d]
push ecx
mov edx, dword [ebp - 0xdc]
push edx
call fcn.00415f80
add esp, 8
jmp 0x411acc
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xb8]
push ecx
push str._ExDB_Cant_add_guild___s___s_
push 2
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [eax + 4]
call edx
add esp, 0x14
lea eax, [ebp - 0xb8]
push eax
push str.SELECT__FROM_GuildMember_WHERE_G_Name___s
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00407950
add esp, 0xc
mov dword [ebp - 0xe0], 0
cmp dword [ebp - 0xe0], 0x50
jge 0x411b8f
mov ecx, dword [ebp - 0x10]
call fcn.00407bb0
movsx edx, ax
cmp edx, 0x64
je 0x411b8f
mov byte [ebp - 0x17c], 0
xor eax, eax
mov dword [ebp - 0x17b], eax
mov dword [ebp - 0x177], eax
mov word [ebp - 0x173], ax
push str.G_Status
mov ecx, dword [ebp - 0x10]
call fcn.00407cf0
mov dword [ebp - 0x170], eax
push 0xa
lea ecx, [ebp - 0x17c]
push ecx
push str.Name
mov ecx, dword [ebp - 0x10]
call fcn.00407c50
push 0xff
movzx edx, byte [ebp - 0x170]
push edx
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0xb8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004131d0
add esp, 0x14
mov eax, dword [ebp - 0xe0]
add eax, 1
mov dword [ebp - 0xe0], eax
jmp 0x411aee
mov ecx, dword [ebp - 0x14]
call fcn.00407b60
mov ecx, dword [ebp - 0x10]
call fcn.00407b60
mov ecx, dword [ebp - 0x18]
call fcn.00407bb0
movsx ecx, ax
cmp ecx, 0x64
jne 0x4118db
mov ecx, dword [ebp - 0x18]
call fcn.00407b60
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1a0], edx
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 0x19c], eax
mov ecx, dword [ebp - 0x19c]
mov dword [ebp - 0x198], ecx
cmp dword [ebp - 0x198], 0
je 0x411c37
mov edx, dword [ebp - 0x198]
cmp dword [edx - 4], 0
je 0x411c0d
push 3
mov eax, dword [ebp - 0x19c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x19c]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x1c8], eax
jmp 0x411c29
mov ecx, dword [ebp - 0x198]
sub ecx, 4
push ecx
call fcn.004371e2
add esp, 4
mov dword [ebp - 0x1c8], 0
mov edx, dword [ebp - 0x1c8]
mov dword [ebp - 0x1cc], edx
jmp 0x411c41
mov dword [ebp - 0x1cc], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1ac], eax
mov ecx, dword [ebp - 0x1ac]
mov dword [ebp - 0x1a8], ecx
mov edx, dword [ebp - 0x1a8]
mov dword [ebp - 0x1a4], edx
cmp dword [ebp - 0x1a4], 0
je 0x411cbd
mov eax, dword [ebp - 0x1a4]
cmp dword [eax - 4], 0
je 0x411c93
push 3
mov ecx, dword [ebp - 0x1a8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1a8]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x1d0], eax
jmp 0x411caf
mov ecx, dword [ebp - 0x1a4]
sub ecx, 4
push ecx
call fcn.004371e2
add esp, 4
mov dword [ebp - 0x1d0], 0
mov edx, dword [ebp - 0x1d0]
mov dword [ebp - 0x1d4], edx
jmp 0x411cc7
mov dword [ebp - 0x1d4], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1b8], eax
mov ecx, dword [ebp - 0x1b8]
mov dword [ebp - 0x1b4], ecx
mov edx, dword [ebp - 0x1b4]
mov dword [ebp - 0x1b0], edx
cmp dword [ebp - 0x1b0], 0
je 0x411d43
mov eax, dword [ebp - 0x1b0]
cmp dword [eax - 4], 0
je 0x411d19
push 3
mov ecx, dword [ebp - 0x1b4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1b4]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x1d8], eax
jmp 0x411d35
mov ecx, dword [ebp - 0x1b0]
sub ecx, 4
push ecx
call fcn.004371e2
add esp, 4
mov dword [ebp - 0x1d8], 0
mov edx, dword [ebp - 0x1d8]
mov dword [ebp - 0x1dc], edx
jmp 0x411d4d
mov dword [ebp - 0x1dc], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00435f91
mov esp, ebp
pop ebp
ret