Function at 0x4071b0
Capabilities:
Enumerate pe sections
Reference sql statements

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, 0x6444
call fcn.00435200
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 8]
push esi
push edi
mov byte [ebp - 0x6302], dl
mov dword [ebp - 0x6328], ecx
mov dword [ebp - 0x630c], eax
jmp 0x407201
mov esi, dword [ebp - 0x6328]
imul edi, esi, 0x68
mov dword [ebp - 0x6344], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x5117d8], 0
mov cl, byte [ebp - 0x6302]
mov dword [edi + 0x51195c], eax
mov edi, dword [ebp - 0x630c]
je 0x40726c
test cl, cl
je 0x40726c
cmp cl, 7
je 0x40726c
movzx eax, byte [edi + 5]
push eax
movzx eax, byte [edi + 4]
push eax
movzx eax, byte [edi + 3]
push eax
movzx eax, byte [edi + 2]
push eax
movzx eax, byte [edi + 1]
push eax
movzx eax, cl
push eax
push str.DSPROTOCOL:_Head:__x__1:__x__2:__x__3:__x__4:__x__5:__x
push 0
call fcn.0041d010
mov cl, byte [ebp - 0x6302]
add esp, 0x20
movzx eax, cl
cmp eax, 0xf9
ja case.0x407424.1
movzx eax, byte [eax + 0x40f450]
jmp dword [eax*4 + 0x40f324]
xor eax, eax
mov dword [ebp - 0x631f], eax
push str.SELECT_ItemCount_FROM_GameServerInfo_WHERE_Number0
push 0x446e50
mov dword [ebp - 0x6320], 0x10008c1
mov dword [ebp - 0x631c], eax
call fcn.0041ad10
add esp, 8
test al, al
je 0x40730e
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40730e
push str.ItemCount
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4072db
or eax, eax
jmp 0x4072ec
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push dword [0x446e5c]
mov dword [ebp - 0x631c], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x407356
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
push str.INSERT_INTO_GameServerInfo__Number_ItemCount_ZenCount_AceItemCount__VALUES__0_0_0_0_
push 0x446e50
call fcn.0041ad10
add esp, 8
push dword [0x446e5c]
call edi
push 2
push dword [0x446e5c]
call esi
mov esi, dword [ebp - 0x6328]
push 8
lea eax, [ebp - 0x6320]
push eax
push esi
call fcn.0041c350
mov eax, dword [ebp - 0x630c]
mov ecx, dword [ebp - 0x6344]
movzx edi, word [eax + 0x38]
movzx esi, word [eax + 4]
lea ecx, [ecx + 0x511920]
add eax, 6
push eax
push 0x32
push ecx
call fcn.0042138d
mov ecx, dword [ebp - 0x6344]
add esp, 0xc
mov word [ecx + 0x511952], si
push edi
mov word [ecx + 0x511954], di
movzx eax, word [ecx + 0x511952]
push eax
lea eax, [ecx + 0x511920]
push eax
push dword [ecx + 0x5118fc]
push str._ServerManager___d__ServerInfo___s____d____d_
push 0
call fcn.0041d010
add esp, 0x18
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.0040f970
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.004102e0
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.004107f0
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.00410c50
jmp case.0x407424.1
cmp byte [edi], 0xc1
jne 0x40740e
mov al, byte [edi + 3]
jmp 0x407411
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x75
ja case.0x407424.1
movzx eax, byte [eax + 0x40f560]
jmp dword [eax*4 + 0x40f54c]
push esi
push edi
call fcn.0041d190
jmp case.0x407424.1
cmp dword [edi + 0xf1c], 0
lea eax, [edi + 0x13]
push 0x50fc10
push 0
push eax
push 0
push 0xf00
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
lea esi, [edi + 8]
mov dword [0x50fc10], 0xf00
push 1
push dword [0x446e5c]
mov dword [ebp - 0x6308], esi
jne 0x4074d9
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push esi
push dword [edi + 0xf14]
push str.UPDATE_warehouse_SET_Items__Money_d_WHERE_AccountID_s
push 0x446e50
call fcn.0041ad10
add esp, 0x10
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
push dword [ebp - 0x6308]
push dword [ecx + 0xf18]
push str.UPDATE_warehouse_SET_pw_d_WHERE_AccountID_s
push 0x446e50
call fcn.0041ad10
add esp, 0x10
jmp 0x40f2ee
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [edi + 0xf1c]
push esi
push dword [edi + 0xf14]
push str.UPDATE_ExtWarehouse_SET_Items__Money_d_WHERE_AccountID_s_AND_Number_d
push 0x446e50
call fcn.0041ad10
add esp, 0x14
jmp 0x407492
push esi
push edi
call fcn.0041d620
jmp case.0x407424.1
push 0x50fc10
push 0
lea eax, [edi + 0x13]
mov dword [0x50fc10], 0xf00
push eax
push 0
push 0xf00
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
lea eax, [edi + 8]
push eax
push dword [edi + 0xf18]
mov dword [ebp - 0x631c], eax
push dword [edi + 0xf14]
push str.UPDATE_WarehouseGuild_SET_Items__Money_d_pw_d_WHERE_Guild_s
push 0x446e50
call fcn.0041ad10
add esp, 0x14
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [0x51080c]
mov esi, dword [0x510810]
mov dword [ebp - 0x6328], eax
cmp eax, esi
je case.0x407424.1
mov edi, dword [ebp - 0x631c]
nop dword [eax]
mov edx, edi
mov ecx, eax
mov al, byte [ecx]
cmp al, byte [edx]
mov byte [ebp - 0x6302], al
mov eax, dword [ebp - 0x6328]
jne 0x4075e6
cmp byte [ebp - 0x6302], 0
je 0x4075e2
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
mov byte [ebp - 0x6302], al
mov eax, dword [ebp - 0x6328]
jne 0x4075e6
add ecx, 2
add edx, 2
cmp byte [ebp - 0x6302], 0
jne 0x4075a4
xor ecx, ecx
jmp 0x4075eb
sbb ecx, ecx
or ecx, 1
lea edx, [eax + 0xb]
test ecx, ecx
je 0x407603
mov eax, edx
mov dword [ebp - 0x6328], eax
cmp eax, esi
jne 0x4075a0
jmp case.0x407424.1
sub esi, edx
push esi
push edx
push eax
call fcn.00420a60
add esp, 0xc
sub dword [0x510810], 0xb
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.004116c0
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.004118b0
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.00411af0
jmp case.0x407424.1
movzx eax, word [edi + 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x6217], xmm0
mov word [ebp - 0x6214], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x620a], ax
mov al, byte [edi + 0x10]
movq qword [ebp - 0x6207], xmm0
movq xmm0, qword [edi + 6]
add edi, 0x11
mov byte [ebp - 0x6208], al
mov dword [ebp - 0x61ff], 0
movq qword [ebp - 0x6212], xmm0
movzx eax, word [edi + 8]
movq xmm0, qword [edi]
mov word [ebp - 0x61ff], ax
mov al, byte [edi + 0xa]
mov byte [ebp - 0x61fd], al
xor eax, eax
mov byte [ebp - 0x61fb], 0
mov word [ebp - 0x6218], 0x1ec1
mov byte [ebp - 0x6216], 0xa
movq qword [ebp - 0x6207], xmm0
nop word [eax + eax]
mov cl, byte [edi + eax]
cmp cl, 0x20
je 0x407730
cmp cl, 0x22
je 0x407730
cmp cl, 0x27
je 0x407730
inc eax
cmp eax, 0xb
jl 0x4076d0
mov esi, dword [0x446ac0]
cmp esi, dword [0x446ac4]
je 0x40770f
push esi
push edi
call fcn.0041efe0
add esp, 8
test eax, eax
jne 0x407730
add esi, 0x20
cmp esi, dword [0x446ac4]
jne 0x4076f6
mov ecx, dword [ebp - 0x6328]
lea eax, [ebp - 0x6218]
push 0x1e
push eax
push ecx
mov byte [ebp - 0x61fc], 0
call fcn.0041c350
jmp case.0x407424.1
mov ecx, dword [ebp - 0x6328]
lea eax, [ebp - 0x6218]
push 0x1e
push eax
push ecx
mov byte [ebp - 0x61fc], 1
call fcn.0041c350
jmp case.0x407424.1
cmp byte [edi], 0xc1
jne 0x40775b
mov al, byte [edi + 3]
jmp 0x40775e
mov al, byte [edi + 4]
test al, al
je 0x407864
cmp al, 0x30
jne case.0x407424.1
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_QuestKillCount_WHERE_Name_s
push 0x446e50
mov dword [ebp - 0x6308], eax
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x407802
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407802
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov eax, dword [ebp - 0x630c]
push dword [ebp - 0x6308]
push dword [eax + 0x44]
push dword [eax + 0x30]
push dword [eax + 0x40]
push dword [eax + 0x2c]
push dword [eax + 0x3c]
push dword [eax + 0x28]
push dword [eax + 0x38]
push dword [eax + 0x24]
push dword [eax + 0x34]
push dword [eax + 0x20]
push dword [eax + 0x1c]
push str.UPDATE_QuestKillCount_SET_QuestIndex_d_MonsterClass1_d_KillCount1_d_MonsterClass2_d_KillCount2_d_MonsterClass3_d_KillCount3_d_MonsterClass4_d_KillCount4_d_MonsterClass5_d_KillCount5_d_WHERE_Name_s
push 0x446e50
call fcn.0041ad10
add esp, 0x38
jmp 0x40f2ee
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov eax, dword [ebp - 0x630c]
push dword [eax + 0x44]
push dword [eax + 0x30]
push dword [eax + 0x40]
push dword [eax + 0x2c]
push dword [eax + 0x3c]
push dword [eax + 0x28]
push dword [eax + 0x38]
push dword [eax + 0x24]
push dword [eax + 0x34]
push dword [eax + 0x20]
push dword [eax + 0x1c]
push dword [ebp - 0x6308]
push str.INSERT_INTO_QuestKillCount__Name_QuestIndex_MonsterClass1_KillCount1_MonsterClass2_KillCount2_MonsterClass3_KillCount3_MonsterClass4_KillCount4_MonsterClass5_KillCount5__VALUES___s__d__d__d__d__d__d__d__d__d__d__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x38
jmp 0x40f2ee
push esi
push edi
call fcn.0041b070
jmp case.0x407424.1
cmp byte [edi], 0xc1
jne 0x40787a
mov al, byte [edi + 3]
jmp 0x40787d
mov al, byte [edi + 4]
test al, al
je 0x4079cd
cmp al, 0x30
jne case.0x407424.1
lea eax, [edi + 0x13]
push eax
push str.SELECT_Name_FROM_MasterSkillTree_WHERE_Name_s
push 0x446e50
mov dword [ebp - 0x6308], eax
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40794a
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40794a
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov eax, dword [ebp - 0x630c]
push 0x50fc10
push 0
add eax, 0x30
mov dword [0x50fc10], 0xb4
push eax
push 0
push 0xb4
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov eax, dword [ebp - 0x630c]
push dword [ebp - 0x6308]
push dword [eax + 0x2c]
push dword [eax + 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
push str.UPDATE_MasterSkillTree_SET_MasterLevel_d_MasterPoint_d_MasterExperience_I64d_MasterSkill__WHERE_Name_s
push 0x446e50
call fcn.0041ad10
add esp, 0x1c
jmp 0x40f2ee
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov eax, dword [ebp - 0x630c]
push 0x50fc10
push 0
add eax, 0x30
mov dword [0x50fc10], 0xb4
push eax
push 0
push 0xb4
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov eax, dword [ebp - 0x630c]
push dword [eax + 0x2c]
push dword [eax + 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
push dword [ebp - 0x6308]
push str.INSERT_INTO_MasterSkillTree__Name_MasterLevel_MasterPoint_MasterExperience_MasterSkill__VALUES___s__d__d__I64d___
push 0x446e50
call fcn.0041ad10
add esp, 0x1c
jmp 0x40f2ee
push 0xe7
lea eax, [ebp - 0x12f]
push 0
push eax
call fcn.0041f490
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
add esp, 0xc
mov word [ebp - 0x12a], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x120], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x11e], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x128], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x115], ax
mov al, byte [ecx + 0xa]
push str.SELECT__FROM_MasterSkillTree_WHERE_Name_s
push 0x446e50
mov dword [ebp - 0x130], 0xde800c2
mov byte [ebp - 0x12c], 0
movq qword [ebp - 0x11d], xmm0
mov byte [ebp - 0x113], al
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x407b42
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407b42
push str.MasterLevel
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x407a87
or eax, eax
jmp 0x407a98
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.MasterPoint
mov dword [ebp - 0x110], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x407ab1
or eax, eax
jmp 0x407ac2
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.MasterExperience
mov dword [ebp - 0x10c], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x407ade
or eax, eax
or edx, 0xffffffff
jmp 0x407aef
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.004240e2
add esp, 4
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x100]
push 0xb4
push eax
push str.MasterSkill
mov dword [ebp - 0x104], edx
call fcn.0041afb0
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xe8
lea eax, [ebp - 0x130]
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xb4
lea eax, [ebp - 0x100]
mov dword [ebp - 0x110], 0
xorps xmm0, xmm0
mov dword [ebp - 0x10c], 0
push 0xff
push eax
movlpd qword [ebp - 0x108], xmm0
call fcn.0041f490
add esp, 0xc
lea eax, [ebp - 0x130]
push 0xe8
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
cmp byte [edi], 0xc1
jne 0x407bb5
mov al, byte [edi + 3]
jmp 0x407bb8
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x31
ja case.0x407424.1
movzx eax, byte [eax + 0x40f5ec]
jmp dword [eax*4 + 0x40f5d8]
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
xorps xmm0, xmm0
mov dword [ebp - 0x61ff], 0
movups xmmword [ebp - 0x6217], xmm0
mov word [ebp - 0x6214], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x620a], ax
mov al, byte [edi + 0x10]
movq qword [ebp - 0x6207], xmm0
movq xmm0, qword [edi + 6]
mov byte [ebp - 0x6208], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x6212], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x61ff], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Status_FROM_EventLeoTheHelper_WHERE_Name_s
push 0x446e50
mov byte [ebp - 0x61fb], 0
mov dword [ebp - 0x6218], 0xe1ec1
mov dword [ebp - 0x631c], ecx
movq qword [ebp - 0x6207], xmm0
mov byte [ebp - 0x61fd], al
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x407cd5
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407cd5
push str.Status
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x407c90
or eax, eax
jmp 0x407ca1
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push dword [0x446e5c]
mov byte [ebp - 0x61fc], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1e
lea eax, [ebp - 0x6218]
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
push dword [ebp - 0x631c]
push str.INSERT_INTO_EventLeoTheHelper__Name_Status__VALUES___s_0_
push 0x446e50
call fcn.0041ad10
add esp, 0xc
push dword [0x446e5c]
call edi
push 2
push dword [0x446e5c]
call esi
mov esi, dword [ebp - 0x6328]
lea eax, [ebp - 0x6218]
push 0x1e
push eax
push esi
mov byte [ebp - 0x61fc], 0
call fcn.0041c350
jmp case.0x407424.1
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
xorps xmm0, xmm0
mov dword [ebp - 0x61ff], 0
movups xmmword [ebp - 0x6217], xmm0
mov word [ebp - 0x6214], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x620a], ax
mov al, byte [edi + 0x10]
movq qword [ebp - 0x6207], xmm0
movq xmm0, qword [edi + 6]
mov byte [ebp - 0x6208], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x6212], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x61ff], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Status_FROM_EventSantaClaus_WHERE_Name_s
push 0x446e50
mov byte [ebp - 0x61fb], 0
mov dword [ebp - 0x6218], 0x10e1ec1
mov dword [ebp - 0x631c], ecx
movq qword [ebp - 0x6207], xmm0
mov byte [ebp - 0x61fd], al
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x407ded
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x407c7d
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
push dword [ebp - 0x631c]
push str.INSERT_INTO_EventSantaClaus__Name_Status__VALUES___s_0_
jmp 0x407cfe
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_EventLeoTheHelper_WHERE_Name_s
push 0x446e50
mov dword [ebp - 0x631c], eax
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x407e94
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407e94
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
mov eax, dword [ebp - 0x631c]
push eax
movzx eax, byte [ecx + 0x1c]
push eax
push str.UPDATE_EventLeoTheHelper_SET_Status_d_WHERE_Name_s
push 0x446e50
call fcn.0041ad10
add esp, 0x10
jmp 0x40f2ee
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
movzx eax, byte [ecx + 0x1c]
push eax
lea eax, [ecx + 0x11]
push eax
push str.INSERT_INTO_EventLeoTheHelper__Name_Status__VALUES___s__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x10
jmp 0x40f2ee
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_EventSantaClaus_WHERE_Name_s
push 0x446e50
mov dword [ebp - 0x631c], eax
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x407f51
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407f51
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
mov eax, dword [ebp - 0x631c]
push eax
movzx eax, byte [ecx + 0x1c]
push eax
push str.UPDATE_EventSantaClaus_SET_Status_d_WHERE_Name_s
push 0x446e50
call fcn.0041ad10
add esp, 0x10
jmp 0x40f2ee
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
movzx eax, byte [ecx + 0x1c]
push eax
lea eax, [ecx + 0x11]
push eax
push str.INSERT_INTO_EventSantaClaus__Name_Status__VALUES___s__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x10
jmp 0x40f2ee
cmp byte [edi], 0xc1
jne 0x407f9f
mov al, byte [edi + 3]
jmp 0x407fa2
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 9
ja case.0x407424.1
jmp dword [eax*4 + 0x40f620]
push 0x27
lea eax, [ebp - 0x621f]
push 0
push eax
call fcn.0041f490
movzx eax, word [edi + 4]
lea edx, [edi + 6]
movq xmm0, qword [edx]
lea ecx, [edi + 0x11]
mov word [ebp - 0x621c], ax
add esp, 0xc
movzx eax, word [edx + 8]
mov word [ebp - 0x6212], ax
mov al, byte [edx + 0xa]
push ecx
mov byte [ebp - 0x6210], al
movzx eax, word [ecx + 8]
push edx
movq qword [ebp - 0x621a], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x6207], ax
mov al, byte [ecx + 0xa]
push str.EXEC_WZ_GetResetInfo__s__s
push 0x446e50
mov dword [ebp - 0x6220], 0xf28c1
movq qword [ebp - 0x620f], xmm0
mov byte [ebp - 0x6205], al
call fcn.0041ad10
add esp, 0x10
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.ResetDay
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x408056
or eax, eax
jmp 0x408067
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ResetWek
mov dword [ebp - 0x6204], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x408080
or eax, eax
jmp 0x408091
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ResetMon
mov dword [ebp - 0x6200], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4080aa
or eax, eax
jmp 0x4080bb
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push dword [0x446e5c]
mov dword [ebp - 0x61fc], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x28
lea eax, [ebp - 0x6220]
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
push 0x27
lea eax, [ebp - 0x621f]
push 0
push eax
call fcn.0041f490
movzx eax, word [edi + 4]
lea edx, [edi + 6]
movq xmm0, qword [edx]
lea ecx, [edi + 0x11]
mov word [ebp - 0x621c], ax
add esp, 0xc
movzx eax, word [edx + 8]
mov word [ebp - 0x6212], ax
mov al, byte [edx + 0xa]
push ecx
mov byte [ebp - 0x6210], al
movzx eax, word [ecx + 8]
push edx
movq qword [ebp - 0x621a], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x6207], ax
mov al, byte [ecx + 0xa]
push str.EXEC_WZ_GetMasterResetInfo__s__s
push 0x446e50
mov dword [ebp - 0x6220], 0x10f28c1
movq qword [ebp - 0x620f], xmm0
mov byte [ebp - 0x6205], al
call fcn.0041ad10
add esp, 0x10
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.MasterResetDay
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x408190
or eax, eax
jmp 0x4081a1
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.MasterResetWek
mov dword [ebp - 0x6204], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4081c2
or eax, eax
push str.MasterResetMon
jmp 0x408096
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.MasterResetMon
jmp 0x408096
push esi
push edi
call fcn.00404ea0
jmp case.0x407424.1
push dword [edi + 0x38]
lea eax, [edi + 0x27]
push dword [edi + 0x34]
push eax
lea eax, [edi + 0x1c]
push eax
lea eax, [edi + 0x11]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_SetReward__s__s__s__s__d__d
push 0x446e50
call fcn.0041ad10
add esp, 0x20
jmp 0x40a54c
push dword [edi + 0x20]
lea eax, [edi + 0x11]
push dword [edi + 0x1c]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_SetRewardAll__s__s__d__d
push 0x446e50
call fcn.0041ad10
add esp, 0x18
jmp 0x40a54c
push 0x27
lea eax, [ebp - 0x621f]
push 0
push eax
call fcn.0041f490
movzx eax, word [edi + 4]
lea esi, [edi + 6]
movq xmm0, qword [esi]
lea edx, [edi + 0x11]
mov word [ebp - 0x621c], ax
lea ecx, [edi + 0x1c]
movzx eax, word [esi + 8]
add esp, 0xc
mov word [ebp - 0x6212], ax
mov al, byte [esi + 0xa]
mov byte [ebp - 0x6210], al
movzx eax, word [edx + 8]
push ecx
mov word [ebp - 0x6207], ax
mov al, byte [edx + 0xa]
push edx
movq qword [ebp - 0x621a], xmm0
movq xmm0, qword [edx]
mov byte [ebp - 0x6205], al
movzx eax, word [ecx + 8]
push esi
movq qword [ebp - 0x620f], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x61fc], ax
mov al, byte [ecx + 0xa]
push str.EXEC_WZ_RenameCharacter__s__s__s
push 0x446e50
mov dword [ebp - 0x6220], 0x50f28c1
movq qword [ebp - 0x6204], xmm0
mov byte [ebp - 0x61fa], al
call fcn.0041ad10
add esp, 0x14
test al, al
je 0x40833e
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40833e
push 0x447a7e
call fcn.0042417e
add esp, 4
mov byte [ebp - 0x61f9], al
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x6328]
lea eax, [ebp - 0x6220]
push 0x28
push eax
push ecx
call fcn.0041c350
jmp case.0x407424.1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x6328]
lea eax, [ebp - 0x6220]
push 0x28
push eax
push ecx
mov byte [ebp - 0x61f9], 2
call fcn.0041c350
jmp case.0x407424.1
xor eax, eax
mov word [ebp - 0x631b], ax
mov dword [ebp - 0x631f], eax
mov word [ebp - 0x631a], ax
mov ax, word [edi + 4]
mov word [ebp - 0x631c], ax
lea eax, [edi + 6]
push eax
push str.SELECT__FROM_Character_WHERE_Name_s
push 0x446e50
mov dword [ebp - 0x6320], 0x60f08c1
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40846d
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40846d
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
lea eax, [edi + 6]
push eax
movzx eax, word [edi + 0x12]
push eax
push str.UPDATE_MEMB_INFO_SET_BLOC_CODE1_BLOC_EXPIRE_getdate___d__WHERE_MEMB___ID_SELECT_TOP_1_AccountID_FROM_Character_WHERE_Name___s_
push 0x446e50
call fcn.0041ad10
add esp, 0x10
test al, al
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push dword [0x446e5c]
jne 0x408441
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call eax
push 8
lea eax, [ebp - 0x6320]
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call eax
push 8
lea eax, [ebp - 0x6320]
mov byte [ebp - 0x631a], 1
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 8
lea eax, [ebp - 0x6320]
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
xor eax, eax
mov word [ebp - 0x631b], ax
mov dword [ebp - 0x631f], eax
mov word [ebp - 0x631a], ax
mov ax, word [edi + 4]
mov word [ebp - 0x631c], ax
lea eax, [edi + 6]
push eax
push str.SELECT__FROM_Character_WHERE_Name_s
push 0x446e50
mov dword [ebp - 0x6320], 0x70f08c1
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40846d
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40846d
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
lea eax, [edi + 6]
push eax
movzx eax, word [edi + 0x12]
push eax
push str.UPDATE_CHARACTER_SET_CTLCODE1_BLOC_EXPIRE_getdate___d__WHERE_NAME_s
jmp 0x408400
xor eax, eax
mov dword [ebp - 0x631f], eax
mov word [ebp - 0x631b], ax
mov byte [ebp - 0x6319], al
mov ax, word [edi + 4]
mov word [ebp - 0x631c], ax
lea eax, [edi + 6]
push eax
push str.SELECT__FROM_CustomGift_WHERE_AccountID_s
push 0x446e50
mov dword [ebp - 0x6320], 0x80f08c1
mov dword [ebp - 0x6308], eax
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x408615
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408615
push str.Quantity
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40859a
or eax, eax
jmp 0x4085ab
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
inc al
mov byte [ebp - 0x631a], al
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
push dword [ebp - 0x6308]
push str.UPDATE_CustomGift_SET_QuantityQuantity1_WHERE_AccountID_s
push 0x446e50
call fcn.0041ad10
add esp, 0xc
push dword [0x446e5c]
call edi
push 2
push dword [0x446e5c]
call esi
mov esi, dword [ebp - 0x6328]
lea eax, [ebp - 0x6320]
push 8
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [ebp - 0x6308]
push str.INSERT_INTO_CustomGift__AccountID_Quantity__VALUES___s_1_
push 0x446e50
call fcn.0041ad10
add esp, 0xc
push dword [0x446e5c]
test al, al
jne 0x40867f
call edi
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call eax
push 8
lea eax, [ebp - 0x6320]
mov byte [ebp - 0x631a], 0
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
call edi
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call eax
push 8
lea eax, [ebp - 0x6320]
mov byte [ebp - 0x631a], 1
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
push esi
push edi
call fcn.00405070
jmp case.0x407424.1
cmp byte [edi], 0xc1
jne 0x4086c1
mov al, byte [edi + 3]
jmp 0x4086c4
mov al, byte [edi + 4]
test al, al
je 0x4087ec
cmp al, 0x30
jne case.0x407424.1
lea eax, [edi + 0x13]
push eax
push str.SELECT_Name_FROM_QuestWorld_WHERE_Name_s
push 0x446e50
mov dword [ebp - 0x6308], eax
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40877b
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40877b
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov eax, dword [ebp - 0x630c]
push 0x50fc10
push 0
add eax, 0x1e
mov dword [0x50fc10], 0x190
push eax
push 0
push 0x190
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x6308]
push str.UPDATE_QuestWorld_SET_QuestWorldList__WHERE_Name_s
push 0x446e50
call fcn.0041ad10
add esp, 0xc
jmp 0x40f2ee
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov eax, dword [ebp - 0x630c]
push 0x50fc10
push 0
add eax, 0x1e
mov dword [0x50fc10], 0x190
push eax
push 0
push 0x190
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x6308]
push str.INSERT_INTO_QuestWorld__Name_QuestWorldList__VALUES___s___
push 0x446e50
call fcn.0041ad10
add esp, 0xc
jmp 0x40f2ee
push 0x1ad
lea eax, [ebp - 0x1f7]
push 0
push eax
call fcn.0041f490
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
add esp, 0xc
mov word [ebp - 0x1f2], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x1e8], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x1e6], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x1f0], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x1dd], ax
mov al, byte [ecx + 0xa]
push str.SELECT_QuestWorldList_FROM_QuestWorld_WHERE_Name_s
push 0x446e50
mov dword [ebp - 0x1f8], 0x10ae01c2
mov byte [ebp - 0x1f4], 0
movq qword [ebp - 0x1e5], xmm0
mov byte [ebp - 0x1db], al
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x4088d2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4088d2
push 0x190
lea eax, [ebp - 0x1da]
push eax
push str.QuestWorldList
call fcn.0041afb0
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1ae
lea eax, [ebp - 0x1f8]
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x190
lea eax, [ebp - 0x1da]
push 0xff
push eax
call fcn.0041f490
add esp, 0xc
lea eax, [ebp - 0x1f8]
push 0x1ae
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
cmp byte [edi], 0xc1
jne 0x408926
mov al, byte [edi + 3]
jmp 0x408929
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x30
ja case.0x407424.1
movzx eax, byte [eax + 0x40f664]
jmp dword [eax*4 + 0x40f648]
push esi
push edi
call fcn.00418370
jmp case.0x407424.1
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
xorps xmm0, xmm0
mov dword [ebp - 0x61ff], 0
movups xmmword [ebp - 0x6217], xmm0
mov word [ebp - 0x6214], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x620a], ax
mov al, byte [edi + 0x10]
movq qword [ebp - 0x6207], xmm0
movq xmm0, qword [edi + 6]
mov byte [ebp - 0x6208], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x6212], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x61ff], ax
mov al, byte [ecx + 0xa]
push str.DELETE_FROM_Gens_Rank_WHERE_Name_s
push 0x446e50
mov byte [ebp - 0x61fb], 0
mov dword [ebp - 0x6218], 0x1111ec1
movq qword [ebp - 0x6207], xmm0
mov byte [ebp - 0x61fd], al
call fcn.0041ad10
add esp, 0xc
push dword [0x446e5c]
test al, al
jne 0x408a05
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x61fc], 1
jmp 0x408a20
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x61fc], 0
push 0x1e
lea eax, [ebp - 0x6218]
push eax
push esi
call fcn.0041c350
mov eax, dword [edi + 0x20]
push 0xffffffffffffffff
inc eax
push eax
movzx eax, byte [edi + 0x1c]
push eax
call fcn.004188a0
jmp case.0x407424.1
push esi
push edi
call fcn.00418500
jmp case.0x407424.1
push esi
push edi
call fcn.004186d0
jmp case.0x407424.1
push 0x27
lea eax, [ebp - 0x621f]
push 0
push eax
call fcn.0041f490
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
add esp, 0xc
mov word [ebp - 0x621c], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x6212], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x6210], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x621a], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x6207], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Rank_Status_FROM_Gens_Reward_WHERE_Name_s
push 0x446e50
mov dword [ebp - 0x6220], 0x41128c1
movq qword [ebp - 0x620f], xmm0
mov byte [ebp - 0x6205], al
mov word [ebp - 0x6204], 0
mov dword [ebp - 0x6200], 0
mov dword [ebp - 0x61fc], 0
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x408ba2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408ba2
mov al, byte [edi + 0x1c]
push str.Rank
mov byte [ebp - 0x6203], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x408b33
or eax, eax
jmp 0x408b44
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.Status
mov dword [ebp - 0x6200], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x408b5d
or eax, eax
jmp 0x408b6e
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push dword [0x446e5c]
mov dword [ebp - 0x61fc], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x28
lea eax, [ebp - 0x6220]
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x28
lea eax, [ebp - 0x6220]
mov byte [ebp - 0x6204], 1
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_Gens_Reward_WHERE_Name_s
push 0x446e50
mov dword [ebp - 0x6308], eax
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x408c4d
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408c4d
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
push dword [ebp - 0x6308]
push dword [ecx + 0x24]
push str.UPDATE_Gens_Reward_SET_Status_d_WHERE_Name_s
push 0x446e50
call fcn.0041ad10
add esp, 0x10
jmp 0x40f2ee
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov eax, dword [ebp - 0x630c]
push dword [eax + 0x24]
push dword [eax + 0x20]
push dword [ebp - 0x6308]
push str.INSERT_INTO_Gens_Reward__Name_Rank_Status__VALUES___s__d__d_
jmp 0x40f2e1
cmp byte [edi], 0xc1
jne 0x408c91
mov al, byte [edi + 3]
jmp 0x408c94
mov al, byte [edi + 4]
test al, al
je 0x408dbc
cmp al, 0x30
jne case.0x407424.1
lea eax, [edi + 0x13]
push eax
push str.SELECT_Name_FROM_HelperData_WHERE_Name_s
push 0x446e50
mov dword [ebp - 0x6308], eax
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x408d4b
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408d4b
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov eax, dword [ebp - 0x630c]
push 0x50fc10
push 0
add eax, 0x1e
mov dword [0x50fc10], 0x100
push eax
push 0
push 0x100
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x6308]
push str.UPDATE_HelperData_SET_Data__WHERE_Name_s
push 0x446e50
call fcn.0041ad10
add esp, 0xc
jmp 0x40f2ee
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov eax, dword [ebp - 0x630c]
push 0x50fc10
push 0
add eax, 0x1e
mov dword [0x50fc10], 0x100
push eax
push 0
push 0x100
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x6308]
push str.INSERT_INTO_HelperData__Name_Data__VALUES___s___
push 0x446e50
call fcn.0041ad10
add esp, 0xc
jmp 0x40f2ee
push 0x11f
lea eax, [ebp - 0x167]
push 0
push eax
call fcn.0041f490
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
add esp, 0xc
mov word [ebp - 0x162], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x158], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x156], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x160], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x14d], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Data_FROM_HelperData_WHERE_Name_s
push 0x446e50
mov dword [ebp - 0x168], 0x172001c2
mov byte [ebp - 0x164], 0
movq qword [ebp - 0x155], xmm0
mov byte [ebp - 0x14b], al
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x408ea9
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408ea9
push 0x100
lea eax, [ebp - 0x149]
mov byte [ebp - 0x14a], 0
push eax
push str.Data
call fcn.0041afb0
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x120
lea eax, [ebp - 0x168]
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x100
lea eax, [ebp - 0x149]
mov byte [ebp - 0x14a], 1
push 0xff
push eax
call fcn.0041f490
add esp, 0xc
lea eax, [ebp - 0x168]
push 0x120
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
cmp byte [edi], 0xc1
jne 0x408f04
mov al, byte [edi + 3]
jmp 0x408f07
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x34
ja case.0x407424.1
movzx eax, byte [eax + 0x40f6cc]
jmp dword [eax*4 + 0x40f698]
push esi
push edi
call fcn.00402400
jmp case.0x407424.1
push esi
push edi
call fcn.004025c0
jmp case.0x407424.1
push esi
push edi
call fcn.004027b0
jmp case.0x407424.1
push esi
push edi
call fcn.00402ae0
jmp case.0x407424.1
push esi
push edi
call fcn.00402e70
jmp case.0x407424.1
mov ax, word [edi + 6]
xorps xmm0, xmm0
mov word [ebp - 0x6342], ax
xor cl, cl
mov edx, 0x14
mov ax, word [edi + 0x10]
movups xmmword [ebp - 0x620b], xmm0
mov word [ebp - 0x630a], ax
movq xmm0, qword [edi + 8]
mov al, byte [edi + 0x12]
mov word [ebp - 0x61fb], 0
mov byte [ebp - 0x61f9], 0
mov dword [ebp - 0x6340], edx
movq qword [ebp - 0x6320], xmm0
mov byte [ebp - 0x6321], al
mov byte [ebp - 0x6302], cl
mov dword [ebp - 0x6348], 0
cmp byte [edi + 0x13], cl
jbe 0x409127
lea eax, [ebp - 0x1034]
mov dword [ebp - 0x634c], eax
lea esi, [edi + 0x18]
nop dword [eax + eax]
push dword [esi]
push str.SELECT_Time_FROM_CashShopPeriodicItem_WHERE_ItemSerial_d
push 0x446e50
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x409067
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409067
mov al, byte [esi - 4]
mov byte [ebp - 0x6334], al
mov eax, dword [esi]
push str.Time
mov dword [ebp - 0x6330], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40902e
or eax, eax
jmp 0x40903f
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push dword [0x446e5c]
mov dword [ebp - 0x6308], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x6308]
jmp 0x4090c4
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_CashShopPeriodicItem__ItemSerial_Time__VALUES___d__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x10
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [ebp - 0x6334], al
mov eax, dword [esi]
mov dword [ebp - 0x6330], eax
xor eax, eax
mov ecx, dword [ebp - 0x634c]
add esi, 8
movq xmm0, qword [ebp - 0x6334]
mov edx, dword [ebp - 0x6340]
inc byte [ebp - 0x6302]
add edx, 0xc
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
add ecx, 0xc
movzx eax, byte [edi + 0x13]
mov dword [ebp - 0x634c], ecx
mov ecx, dword [ebp - 0x6348]
inc ecx
mov dword [ebp - 0x6340], edx
mov dword [ebp - 0x6348], ecx
cmp ecx, eax
jl 0x408fe0
movq xmm0, qword [ebp - 0x6320]
mov esi, dword [ebp - 0x6328]
mov cl, byte [ebp - 0x6302]
mov eax, edx
mov word [ebp - 0x1045], 0x518
shr eax, 8
mov byte [ebp - 0x1047], al
mov al, byte [ebp - 0x6207]
mov byte [ebp - 0x1043], al
mov ax, word [ebp - 0x6342]
mov word [ebp - 0x1042], ax
mov ax, word [ebp - 0x630a]
jmp 0x40a11c
push 0x2b
lea eax, [ebp - 0x6223]
push 0
push eax
call fcn.0041f490
movzx eax, word [edi + 4]
lea ecx, [edi + 6]
movq xmm0, qword [ecx]
add esp, 0xc
mov word [ebp - 0x6220], ax
movzx eax, word [ecx + 8]
mov word [ebp - 0x6216], ax
mov al, byte [ecx + 0xa]
mov byte [ebp - 0x6214], al
mov eax, dword [edi + 0x14]
push ecx
mov dword [ebp - 0x6210], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x620c], eax
mov eax, dword [edi + 0x1c]
push str.SELECT__FROM_CashShopData_WHERE_AccountID_s
push 0x446e50
mov dword [ebp - 0x6224], 0x6182cc1
movq qword [ebp - 0x621e], xmm0
mov dword [ebp - 0x6208], eax
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x4092c9
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4092c9
push str.WCoinC
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40920b
or edi, eax
jmp 0x40921e
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov edi, eax
push str.WCoinP
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x409231
or eax, eax
jmp 0x409242
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.GoblinPoint
mov dword [ebp - 0x6308], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40925b
or ecx, eax
jmp 0x40926e
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov ecx, eax
push dword [0x446e5c]
xor eax, eax
test edi, edi
cmovs edi, eax
mov eax, dword [ebp - 0x6308]
xor edx, edx
mov dword [ebp - 0x6204], edi
test eax, eax
cmovs eax, edx
mov dword [ebp - 0x6200], eax
xor eax, eax
test ecx, ecx
cmovs ecx, eax
mov dword [ebp - 0x61fc], ecx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x2c
lea eax, [ebp - 0x6224]
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x2c
lea eax, [ebp - 0x6224]
mov dword [ebp - 0x6204], 0
push eax
push esi
mov dword [ebp - 0x6200], 0
mov dword [ebp - 0x61fc], 0
call fcn.0041c350
jmp case.0x407424.1
push edi
call fcn.00403170
jmp case.0x407424.1
push edi
call fcn.00403320
jmp case.0x407424.1
cmp byte [edi + 0x13], 0
mov eax, 0x13
mov ecx, 8
mov esi, dword [sym.imp.ODBC32.dll_SQLBindParameter]
cmovne ecx, eax
push 0x50fc10
push 0
movq xmm0, qword [ecx + edi]
movq qword [ebp - 0x44], xmm0
mov ax, word [ecx + edi + 8]
mov word [ebp - 0x3c], ax
mov al, byte [ecx + edi + 0xa]
mov byte [ebp - 0x3a], al
lea eax, [edi + 0x39]
push eax
push 0
push 0xb
push 0xc
push 1
push 1
push 1
push dword [0x446e5c]
mov dword [0x50fc10], 0xfffffffd
call esi
push 0x50fc14
push 0
lea eax, [edi + 0x44]
mov dword [0x50fc14], 0xfffffffd
push eax
push 0
push 0xc8
push 0xc
push 1
push 1
push 2
push dword [0x446e5c]
call esi
movzx eax, byte [edi + 0x38]
movsd xmm0, qword [edi + 0x30]
push eax
movzx eax, byte [edi + 0x1e]
sub esp, 8
movsd qword [esp], xmm0
push dword [edi + 0x28]
push dword [edi + 0x24]
push dword [edi + 0x20]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push str.INSERT_INTO_CashShopInventory__MainItemCode_AccountID_InventoryType_PackageMainIndex_ProductBaseIndex_ProductMainIndex_CoinValue_ProductType_GiftName_GiftText__VALUES___d__s__d__d__d__d__f__d_____
push 0x446e50
call fcn.0041ad10
add esp, 0x2c
jmp 0x40a54c
push dword [edi + 0x1c]
push str.DELETE_FROM_CashShopInventory_WHERE_BaseItemCode_d
push 0x446e50
call fcn.0041ad10
add esp, 0xc
jmp 0x40a54c
cmp byte [edi + 0x13], 0
mov dword [ebp - 0x6308], 0
jbe case.0x407424.1
lea esi, [edi + 0x14]
nop
push dword [esi]
push str.SELECT_ItemSerial_FROM_CashShopPeriodicItem_WHERE_ItemSerial_d
push 0x446e50
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x409470
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409470
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [esi]
push dword [esi + 4]
push str.UPDATE_CashShopPeriodicItem_SET_Time_d_WHERE_ItemSerial_d
jmp 0x409494
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [esi + 4]
push dword [esi]
push str.INSERT_INTO_CashShopPeriodicItem__ItemSerial_Time__VALUES___d__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x10
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x6308]
add esi, 8
movzx eax, byte [edi + 0x13]
inc ecx
mov dword [ebp - 0x6308], ecx
cmp ecx, eax
jl 0x409420
jmp case.0x407424.1
cmp byte [edi], 0xc1
jne 0x4094e6
mov al, byte [edi + 3]
jmp 0x4094e9
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x31
ja case.0x407424.1
movzx eax, byte [eax + 0x40f71c]
jmp dword [eax*4 + 0x40f704]
movzx eax, word [edi + 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x620f], xmm0
add edi, 6
mov word [ebp - 0x620c], ax
push edi
push str.SELECT__FROM_LuckyCoin_WHERE_AccountID_s
mov dword [ebp - 0x61ff], 0
movq xmm0, qword [edi]
movzx eax, word [edi + 8]
mov word [ebp - 0x6202], ax
mov al, byte [edi + 0xa]
push 0x446e50
mov word [ebp - 0x61fb], 0
mov byte [ebp - 0x61f9], 0
mov dword [ebp - 0x6210], 0x1a18c1
movq qword [ebp - 0x620a], xmm0
mov byte [ebp - 0x6200], al
mov byte [ebp - 0x61ff], 0
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x4095e7
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4095e7
push str.LuckyCoin
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4095a2
or eax, eax
jmp 0x4095b3
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push dword [0x446e5c]
mov dword [ebp - 0x61fc], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x6210]
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push str.INSERT_INTO_LuckyCoin__AccountID_LuckyCoin__VALUES___s_0_
push 0x446e50
call fcn.0041ad10
add esp, 0xc
test al, al
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push dword [0x446e5c]
jne 0x40964f
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call eax
push 0x18
lea eax, [ebp - 0x6210]
mov byte [ebp - 0x61ff], 1
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call eax
push 0x18
lea eax, [ebp - 0x6210]
mov dword [ebp - 0x61fc], 0
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
movzx eax, word [edi + 4]
lea ecx, [edi + 6]
xorps xmm0, xmm0
mov dword [ebp - 0x61ff], 0
movups xmmword [ebp - 0x620f], xmm0
mov word [ebp - 0x620c], ax
movzx eax, word [ecx + 8]
movq xmm0, qword [ecx]
mov word [ebp - 0x6202], ax
mov al, byte [ecx + 0xa]
push ecx
mov byte [ebp - 0x6200], al
mov al, byte [edi + 0x11]
push str.SELECT__FROM_LuckyCoin_WHERE_AccountID_s
push 0x446e50
mov word [ebp - 0x61fb], 0
mov byte [ebp - 0x61f9], 0
mov dword [ebp - 0x6210], 0x11a18c1
movq qword [ebp - 0x620a], xmm0
mov byte [ebp - 0x61ff], 0
mov byte [ebp - 0x61fe], al
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40976b
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40976b
push str.LuckyCoin
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x409726
or eax, eax
jmp 0x409737
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push dword [0x446e5c]
mov dword [ebp - 0x61fc], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x6210]
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x6210]
mov byte [ebp - 0x61ff], 1
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
movzx eax, word [edi + 4]
lea ecx, [edi + 6]
xorps xmm0, xmm0
mov word [ebp - 0x61fb], 0
movups xmmword [ebp - 0x6213], xmm0
mov word [ebp - 0x6210], ax
movzx eax, word [ecx + 8]
mov word [ebp - 0x6206], ax
mov al, byte [ecx + 0xa]
push ecx
movq qword [ebp - 0x6203], xmm0
movq xmm0, qword [ecx]
mov byte [ebp - 0x6204], al
mov eax, dword [edi + 0x14]
push str.SELECT__FROM_LuckyCoin_WHERE_AccountID_s
push 0x446e50
mov byte [ebp - 0x61f9], 0
mov dword [ebp - 0x6214], 0x21a1cc1
movq qword [ebp - 0x620e], xmm0
mov byte [ebp - 0x6203], 0
mov dword [ebp - 0x6200], eax
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40988b
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40988b
push str.LuckyCoin
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x409846
or eax, eax
jmp 0x409857
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push dword [0x446e5c]
mov dword [ebp - 0x61fc], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1c
lea eax, [ebp - 0x6214]
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1c
lea eax, [ebp - 0x6214]
mov byte [ebp - 0x6203], 1
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
lea eax, [edi + 6]
push eax
push str.SELECT_LuckyCoin_FROM_LuckyCoin_WHERE_AccountID_s
push 0x446e50
mov dword [ebp - 0x6340], eax
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40997d
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40997d
push str.LuckyCoin
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x409911
mov dword [ebp - 0x6308], eax
jmp 0x409928
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov dword [ebp - 0x6308], eax
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
push dword [ebp - 0x6340]
mov eax, dword [ecx + 0x14]
mov ecx, closesocket
add eax, dword [ebp - 0x6308]
cmp eax, ecx
cmova eax, ecx
push eax
push str.UPDATE_LuckyCoin_SET_LuckyCoin_d_WHERE_AccountID_s
push 0x446e50
call fcn.0041ad10
add esp, 0x10
jmp 0x40f2ee
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
push dword [ecx + 0x14]
push dword [ebp - 0x6340]
push str.INSERT_INTO_LuckyCoin__AccountID_LuckyCoin__VALUES___s__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x10
jmp 0x40f2ee
lea eax, [edi + 6]
push eax
push str.SELECT_LuckyCoin_FROM_LuckyCoin_WHERE_AccountID_s
push 0x446e50
mov dword [ebp - 0x631c], eax
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x409a7f
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409a7f
push str.LuckyCoin
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x409a12
mov dword [ebp - 0x6328], eax
jmp 0x409a29
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov dword [ebp - 0x6328], eax
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
mov edx, dword [ecx + 0x14]
lea eax, [ecx + 6]
mov ecx, dword [ebp - 0x6328]
push eax
sub ecx, edx
xor eax, eax
cmp edx, dword [ebp - 0x6328]
cmovbe eax, ecx
push eax
push str.UPDATE_LuckyCoin_SET_LuckyCoin_d_WHERE_AccountID_s
push 0x446e50
call fcn.0041ad10
add esp, 0x10
jmp 0x40f2ee
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov eax, dword [ebp - 0x631c]
push 0
push 0
push 0
push eax
push str.INSERT_INTO_LuckyCoin__AccountID_LuckyCoin__VALUES___s__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x18
jmp 0x40f2ee
mov ax, word [edi + 4]
xorps xmm0, xmm0
movq qword [ebp - 0x6337], xmm0
mov dl, 0x10
mov word [ebp - 0x6334], ax
mov eax, dword [edi + 8]
mov dword [ebp - 0x632f], 0
mov dword [ebp - 0x6330], eax
mov eax, dword [edi + 0xc]
xor edi, edi
mov word [ebp - 0x632b], 0
xor esi, esi
mov byte [ebp - 0x6329], 0
mov word [ebp - 0x6338], 0x10c1
mov byte [ebp - 0x6336], 0x1e
mov dword [ebp - 0x632c], eax
nop dword [eax]
mov ecx, dword [esi + 0x5118fc]
xor eax, eax
test ecx, ecx
js 0x409b32
cmp ecx, 0x14
setl al
test eax, eax
je 0x409b5f
cmp dword [esi + 0x511900], 0
je 0x409b5f
cmp dword [esi + 0x511914], 0xffffffff
je 0x409b5f
movzx eax, dl
push eax
lea eax, [ebp - 0x6338]
push eax
push edi
call fcn.0041c350
mov dl, byte [ebp - 0x6337]
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x409b20
jmp case.0x407424.1
movzx eax, word [edi + 4]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x6337], xmm0
push str.EXEC_WZ_CW_InfoLoad__d
push 0x446e50
mov dword [ebp - 0x632f], 0
mov word [ebp - 0x632b], 0
mov byte [ebp - 0x6329], 0
mov word [ebp - 0x6338], 0x10c1
mov byte [ebp - 0x6336], 0x1f
mov word [ebp - 0x6334], ax
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x409c63
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409c63
push str.CRYWOLF_STATE
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x409bf4
or eax, eax
jmp 0x409c05
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.CRYWOLF_OCCUFY
mov dword [ebp - 0x6330], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x409c1e
or eax, eax
jmp 0x409c2f
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push dword [0x446e5c]
mov dword [ebp - 0x632c], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [ebp - 0x6338]
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [ebp - 0x6338]
mov dword [ebp - 0x6330], 0
push eax
push esi
mov dword [ebp - 0x632c], 0
call fcn.0041c350
jmp case.0x407424.1
push 0x9d
lea eax, [ebp - 0x642f]
push 0
push eax
call fcn.0041f490
movzx eax, word [edi + 4]
lea esi, [edi + 0x12]
movq xmm0, qword [edi + 7]
mov ecx, 0x23
mov word [ebp - 0x642c], ax
add esp, 0xc
mov al, byte [edi + 6]
mov byte [ebp - 0x642a], al
movzx eax, word [edi + 0xf]
mov word [ebp - 0x6421], ax
mov al, byte [edi + 0x11]
lea edi, [ebp - 0x641e]
mov word [ebp - 0x6430], 0x9ec1
mov byte [ebp - 0x642e], 0x20
movq qword [ebp - 0x6429], xmm0
mov byte [ebp - 0x641f], al
rep movsd dword es:[edi], dword [esi]
xor edi, edi
xor esi, esi
mov ecx, dword [esi + 0x5118fc]
xor eax, eax
test ecx, ecx
js 0x409d26
cmp ecx, 0x14
setl al
test eax, eax
je 0x409d51
cmp dword [esi + 0x511900], 0
je 0x409d51
cmp dword [esi + 0x511914], 0xffffffff
je 0x409d51
movzx eax, byte [ebp - 0x642f]
push eax
lea eax, [ebp - 0x6430]
push eax
push edi
call fcn.0041c350
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x409d14
jmp case.0x407424.1
push 0x93
lea eax, [ebp - 0x641f]
push 0
push eax
call fcn.0041f490
movzx eax, word [edi + 4]
lea esi, [edi + 0x11]
mov word [ebp - 0x641c], ax
mov ecx, 0x20
mov al, byte [edi + 6]
add esp, 0xc
mov byte [ebp - 0x641a], al
mov al, byte [edi + 7]
mov byte [ebp - 0x6419], al
mov al, byte [edi + 8]
mov byte [ebp - 0x6418], al
movzx eax, word [edi + 0xa]
mov word [ebp - 0x6416], ax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x6414], eax
mov al, byte [edi + 0x10]
lea edi, [ebp - 0x640f]
mov word [ebp - 0x6420], 0x94c1
mov byte [ebp - 0x641e], 0x21
mov byte [ebp - 0x6410], al
rep movsd dword es:[edi], dword [esi]
xor edi, edi
xor esi, esi
nop
mov ecx, dword [esi + 0x5118fc]
xor eax, eax
test ecx, ecx
js 0x409df2
cmp ecx, 0x14
setl al
test eax, eax
je 0x409e1d
cmp dword [esi + 0x511900], 0
je 0x409e1d
cmp dword [esi + 0x511914], 0xffffffff
je 0x409e1d
movzx eax, byte [ebp - 0x641f]
push eax
lea eax, [ebp - 0x6420]
push eax
push edi
call fcn.0041c350
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x409de0
jmp case.0x407424.1
cmp byte [edi], 0xc1
jne 0x409e38
mov al, byte [edi + 3]
jmp 0x409e3b
mov al, byte [edi + 4]
test al, al
je 0x409f1e
cmp al, 0x4a
jne case.0x407424.1
cmp byte [edi + 0x13], 0
mov dword [ebp - 0x6308], 0
jbe case.0x407424.1
lea esi, [edi + 0x14]
push dword [esi]
push str.SELECT_ItemSerial_FROM_LuckyItem_WHERE_ItemSerial_d
push 0x446e50
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x409eb2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409eb2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [esi]
push dword [esi + 4]
push str.UPDATE_LuckyItem_SET_DurabilitySmall_d_WHERE_ItemSerial_d
jmp 0x409ed6
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [esi + 4]
push dword [esi]
push str.INSERT_INTO_LuckyItem__ItemSerial_DurabilitySmall__VALUES___d__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x10
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x6308]
add esi, 8
movzx eax, byte [edi + 0x13]
inc ecx
mov dword [ebp - 0x6308], ecx
cmp ecx, eax
jl 0x409e62
jmp case.0x407424.1
mov ax, word [edi + 6]
xorps xmm0, xmm0
mov word [ebp - 0x630a], ax
xor cl, cl
mov edx, 0x14
mov ax, word [edi + 0x10]
movups xmmword [ebp - 0x620b], xmm0
mov word [ebp - 0x6342], ax
movq xmm0, qword [edi + 8]
mov al, byte [edi + 0x12]
mov word [ebp - 0x61fb], 0
mov byte [ebp - 0x61f9], 0
mov dword [ebp - 0x6340], edx
movq qword [ebp - 0x6320], xmm0
mov byte [ebp - 0x6321], al
mov byte [ebp - 0x6302], cl
mov dword [ebp - 0x6348], 0
cmp byte [edi + 0x13], cl
jbe 0x40a0e7
lea eax, [ebp - 0x1034]
mov dword [ebp - 0x634c], eax
lea esi, [edi + 0x18]
nop dword [eax]
push dword [esi]
push str.SELECT_DurabilitySmall_FROM_LuckyItem_WHERE_ItemSerial_d
push 0x446e50
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40a027
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a027
mov al, byte [esi - 4]
mov byte [ebp - 0x6334], al
mov eax, dword [esi]
push str.DurabilitySmall
mov dword [ebp - 0x6330], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x409fee
or eax, eax
jmp 0x409fff
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push dword [0x446e5c]
mov dword [ebp - 0x6308], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x6308]
jmp 0x40a084
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_LuckyItem__ItemSerial_DurabilitySmall__VALUES___d__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x10
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [ebp - 0x6334], al
mov eax, dword [esi]
mov dword [ebp - 0x6330], eax
xor eax, eax
mov ecx, dword [ebp - 0x634c]
add esi, 8
movq xmm0, qword [ebp - 0x6334]
mov edx, dword [ebp - 0x6340]
inc byte [ebp - 0x6302]
add edx, 0xc
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
add ecx, 0xc
movzx eax, byte [edi + 0x13]
mov dword [ebp - 0x634c], ecx
mov ecx, dword [ebp - 0x6348]
inc ecx
mov dword [ebp - 0x6340], edx
mov dword [ebp - 0x6348], ecx
cmp ecx, eax
jl 0x409fa0
movq xmm0, qword [ebp - 0x6320]
mov esi, dword [ebp - 0x6328]
mov cl, byte [ebp - 0x6302]
mov eax, edx
mov word [ebp - 0x1045], 0x22
shr eax, 8
mov byte [ebp - 0x1047], al
mov al, byte [ebp - 0x6207]
mov byte [ebp - 0x1043], al
mov ax, word [ebp - 0x630a]
mov word [ebp - 0x1042], ax
mov ax, word [ebp - 0x6342]
mov word [ebp - 0x1038], ax
mov al, byte [ebp - 0x6321]
mov byte [ebp - 0x1036], al
lea eax, [ebp - 0x1048]
push edx
push eax
push esi
movq qword [ebp - 0x1040], xmm0
mov byte [ebp - 0x1046], dl
mov byte [ebp - 0x1035], cl
mov byte [ebp - 0x1048], 0xc2
call fcn.0041c350
jmp case.0x407424.1
cmp byte [edi], 0xc1
jne 0x40a167
mov al, byte [edi + 3]
jmp 0x40a16a
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x32
ja case.0x407424.1
movzx eax, byte [eax + 0x40f764]
jmp dword [eax*4 + 0x40f750]
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
xorps xmm0, xmm0
mov dword [ebp - 0x6207], 0
movups xmmword [ebp - 0x621f], xmm0
mov word [ebp - 0x621a], ax
movzx eax, word [edi + 0xe]
movq qword [ebp - 0x620f], xmm0
movq xmm0, qword [edi + 6]
mov word [ebp - 0x6210], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x620e], al
movzx eax, word [ecx + 8]
mov word [ebp - 0x6205], ax
mov al, byte [ecx + 0xa]
push ecx
mov word [ebp - 0x6203], 0
movq qword [ebp - 0x6218], xmm0
movq xmm0, qword [ecx]
mov byte [ebp - 0x6203], al
xor al, al
push str.SELECT__FROM_PShopItemValue_WHERE_Name_s
push 0x446e50
mov word [ebp - 0x6202], 0
mov byte [ebp - 0x6220], 0xc2
mov word [ebp - 0x621d], 0x25
mov dword [ebp - 0x630c], 0x20
movq qword [ebp - 0x620d], xmm0
mov byte [ebp - 0x6302], al
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40a32b
push dword [0x446e5c]
mov eax, dword [sym.imp.ODBC32.dll_SQLFetch]
call eax
cmp ax, 0x64
je 0x40a32b
mov esi, dword [sym.imp.ODBC32.dll_SQLFetch]
lea edi, [ebp - 0x420]
push str.Slot
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40a278
mov dword [ebp - 0x6308], eax
jmp 0x40a28f
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov dword [ebp - 0x6308], eax
push str.Serial
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40a2a6
mov dword [ebp - 0x6340], eax
jmp 0x40a2bd
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov dword [ebp - 0x6340], eax
push str.Value
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40a2d0
or eax, eax
jmp 0x40a2e1
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov ecx, dword [ebp - 0x6308]
mov dword [edi - 8], ecx
mov ecx, dword [ebp - 0x6340]
mov dword [edi - 4], ecx
mov dword [edi], eax
add edi, 0xc
mov al, byte [ebp - 0x6302]
push dword [0x446e5c]
add dword [ebp - 0x630c], 0xc
inc al
mov byte [ebp - 0x6302], al
mov byte [ebp - 0x6202], al
call esi
cmp ax, 0x64
jne 0x40a261
mov esi, dword [ebp - 0x6328]
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x630c]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x621f], al
lea eax, [ebp - 0x448]
mov byte [ebp - 0x621e], cl
movups xmm0, xmmword [ebp - 0x6220]
push ecx
push eax
movups xmmword [ebp - 0x448], xmm0
push esi
movups xmm0, xmmword [ebp - 0x6210]
movups xmmword [ebp - 0x438], xmm0
call fcn.0041c350
jmp case.0x407424.1
cmp byte [edi + 0x1e], 0
mov dword [ebp - 0x6308], 0
jbe case.0x407424.1
lea ecx, [edi + 0x13]
lea esi, [edi + 0x24]
push dword [esi - 4]
push ecx
push str.SELECT_Name_FROM_PShopItemValue_WHERE_Name_s_AND_Slot_d
push 0x446e50
call fcn.0041ad10
add esp, 0x10
test al, al
je 0x40a3fe
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a3fe
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [esi - 4]
lea eax, [edi + 0x13]
push eax
push dword [esi + 4]
push dword [esi]
push str.UPDATE_PShopItemValue_SET_Serial_d_Value_d_WHERE_Name_s_AND_Slot_d
jmp 0x40a429
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [esi + 4]
lea eax, [edi + 0x13]
push dword [esi]
push dword [esi - 4]
push eax
push str.INSERT_INTO_PShopItemValue__Name_Slot_Serial_Value__VALUES___s__d__d__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x18
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x6308]
add esi, 0xc
movzx eax, byte [edi + 0x1e]
inc ecx
mov dword [ebp - 0x6308], ecx
cmp ecx, eax
lea ecx, [edi + 0x13]
jl 0x40a3a5
jmp case.0x407424.1
push dword [edi + 0x1c]
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_PShopItemValue_WHERE_Name_s_AND_Slot_d
push 0x446e50
call fcn.0041ad10
add esp, 0x10
test al, al
je 0x40a4eb
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a4eb
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov eax, dword [ebp - 0x630c]
push dword [eax + 0x1c]
lea ecx, [eax + 0x11]
push ecx
push dword [eax + 0x24]
push dword [eax + 0x20]
push str.UPDATE_PShopItemValue_SET_Serial_d_Value_d_WHERE_Name_s_AND_Slot_d
push 0x446e50
call fcn.0041ad10
add esp, 0x18
jmp 0x40f2ee
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov eax, dword [ebp - 0x630c]
push dword [eax + 0x24]
lea ecx, [eax + 0x11]
push dword [eax + 0x20]
push dword [eax + 0x1c]
push ecx
push str.INSERT_INTO_PShopItemValue__Name_Slot_Serial_Value__VALUES___s__d__d__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x18
jmp 0x40f2ee
push dword [edi + 0x1c]
lea eax, [edi + 0x11]
push eax
push str.DELETE_FROM_PShopItemValue_WHERE_Name_s_AND_Slot_d
push 0x446e50
call fcn.0041ad10
add esp, 0x10
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp case.0x407424.1
mov ecx, edi
call fcn.00411d70
jmp case.0x407424.1
mov esi, dword [sym.imp.ODBC32.dll_SQLBindParameter]
lea eax, [edi + 0x1c]
push 0x50fc10
push 0
push eax
push 0
push 0xec0
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x446e5c]
mov dword [0x50fc10], 0xec0
call esi
push 0x50fc14
push 0
lea eax, [edi + 0xedc]
mov dword [0x50fc14], 0xa0
push eax
push 0
push 0xa0
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 2
push dword [0x446e5c]
call esi
lea eax, [edi + 0x11]
push eax
lea eax, [edi + 6]
push eax
push str.UPDATE_Character_SET_Inventory__NewSlots__WHERE_AccountID_s_AND_Name_s
jmp 0x40a53f
mov ecx, edi
call fcn.00412080
jmp case.0x407424.1
cmp byte [edi + 0x11], 0
mov dword [ebp - 0x6308], 0
jbe case.0x407424.1
lea esi, [edi + 0x16]
nop dword [eax]
push dword [esi - 4]
push str.SELECT_ItemSerial_FROM_T_PetItem_Info_WHERE_ItemSerial_d
push 0x446e50
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40a666
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a666
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [esi - 4]
movzx eax, byte [esi]
push dword [esi + 4]
push eax
push str.UPDATE_T_PetItem_Info_SET_Pet_Level_d_Pet_Exp_d_WHERE_ItemSerial_d
jmp 0x40a68f
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [esi + 4]
movzx eax, byte [esi]
push eax
push dword [esi - 4]
push str.INSERT_INTO_T_PetItem_Info__ItemSerial_Pet_Level_Pet_Exp__VALUES___d__d__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x14
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x6308]
add esi, 0xc
movzx eax, byte [edi + 0x11]
inc ecx
mov dword [ebp - 0x6308], ecx
cmp ecx, eax
jl 0x40a610
jmp case.0x407424.1
push dword [edi + 0x28]
lea eax, [edi + 0x11]
push dword [edi + 0x24]
push dword [edi + 0x20]
push dword [edi + 0x1c]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_SetResetInfo__s__s__d__d__d__d
push 0x446e50
call fcn.0041ad10
add esp, 0x20
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40a54c
push dword [edi + 0x2c]
lea eax, [edi + 0x11]
push dword [edi + 0x28]
push dword [edi + 0x24]
push dword [edi + 0x20]
push dword [edi + 0x1c]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_SetMasterResetInfo__s__s__d__d__d__d__d
push 0x446e50
call fcn.0041ad10
add esp, 0x24
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40a54c
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingDuel_WHERE_Name_s
push 0x446e50
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40a7bb
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a7bb
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
mov eax, dword [ecx + 0x1c]
lea edx, [ecx + 0x11]
push edx
push dword [ecx + 0x20]
push eax
push eax
push str.UPDATE_RankingDuel_SET_WinScoreWinScore_d_WinScore_semanalWinScore_semanal_d_LoseScoreLoseScore_d_WHERE_Name_s
push 0x446e50
call fcn.0041ad10
add esp, 0x18
jmp 0x40f2ee
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
mov eax, dword [ecx + 0x1c]
lea edx, [ecx + 0x11]
push eax
push dword [ecx + 0x20]
push eax
push edx
push str.INSERT_INTO_RankingDuel__Name_WinScore_LoseScore_WinScore_semanal__VALUES___s__d__d__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x18
jmp 0x40f2ee
push dword [edi + 0x1c]
lea eax, [edi + 0x11]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_RankingBloodCastle__s__s__d
push 0x446e50
call fcn.0041ad10
add esp, 0x14
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40a54c
push dword [edi + 0x1c]
lea eax, [edi + 0x11]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_RankingChaosCastle__s__s__d
jmp 0x40a812
push dword [edi + 0x1c]
lea eax, [edi + 0x11]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_RankingDevilSquare__s__s__d
jmp 0x40a812
push dword [edi + 0x1c]
lea eax, [edi + 0x11]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_RankingIllusionTemple__s__s__d
jmp 0x40a812
lea eax, [edi + 6]
push eax
movzx eax, byte [edi + 0x11]
push eax
push str.UPDATE_AccountCharacter_SET_ExtClass_d_WHERE_Id_s
jmp 0x40a53f
push dword [edi + 0xc]
movzx eax, word [edi + 4]
push dword [edi + 8]
push eax
push str.EXEC_WZ_CW_InfoSave__d__d__d
jmp 0x40a812
cmp byte [edi], 0xc1
jne 0x40a895
mov al, byte [edi + 3]
jmp 0x40a898
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 3
ja case.0x407424.1
jmp dword [eax*4 + 0x40f798]
mov edx, esi
mov ecx, edi
call fcn.00414980
jmp case.0x407424.1
push dword [edi + 0x44]
xor eax, eax
push dword [edi + 0x40]
mov word [ebp - 0x631b], ax
push dword [edi + 0x3c]
mov dword [ebp - 0x631f], eax
push dword [edi + 0x38]
mov word [ebp - 0x631a], ax
push dword [edi + 0x30]
mov ax, word [edi + 4]
mov word [ebp - 0x631c], ax
movzx eax, byte [edi + 0x2e]
push eax
movzx eax, byte [edi + 0x2d]
push eax
movzx eax, byte [edi + 0x2c]
push eax
movzx eax, byte [edi + 0x2b]
push eax
movzx eax, byte [edi + 0x2a]
push eax
movzx eax, byte [edi + 0x29]
push eax
movzx eax, byte [edi + 0x28]
push eax
movzx eax, byte [edi + 0x27]
push eax
movzx eax, byte [edi + 0x26]
push eax
movzx eax, byte [edi + 0x25]
push eax
movzx eax, byte [edi + 0x24]
push eax
movzx eax, byte [edi + 0x23]
push eax
movzx eax, byte [edi + 0x22]
push eax
movzx eax, byte [edi + 0x21]
push eax
movzx eax, byte [edi + 0x20]
push eax
movzx eax, word [edi + 0x1e]
push eax
movzx eax, byte [edi + 0x1d]
push eax
movzx eax, byte [edi + 0x1c]
push eax
lea eax, [edi + 0x11]
mov dword [ebp - 0x6320], 0x14f08c1
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_GremoryCase_AddItem__s__s__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__I64d__I64d
push 0x446e50
call fcn.0041ad10
add esp, 0x6c
test al, al
je 0x40a9a6
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a9a6
push 0x447a7e
call fcn.0042417e
add esp, 4
test eax, eax
jne 0x40a99f
push 0x449a7e
call fcn.0042417e
add esp, 4
test eax, eax
je 0x40a9a6
mov byte [ebp - 0x631a], 1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 8
lea eax, [ebp - 0x6320]
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.00414ed0
jmp case.0x407424.1
push dword [edi + 0xc]
push dword [edi + 8]
push str.SELECT__FROM_GremoryCase_WHERE_AuthCode_d_and_ItemGUID_d
push 0x446e50
call fcn.0041ad10
add esp, 0x10
test al, al
jne 0x40aa14
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a54c
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov eax, dword [ebp - 0x630c]
push dword [eax + 0xc]
push dword [eax + 8]
push str.DELETE_FROM_GremoryCase_WHERE_AuthCode_d_and_ItemGUID_d
push 0x446e50
call fcn.0041ad10
add esp, 0x10
jmp 0x40f2ee
push dword [edi + 0x20]
lea eax, [edi + 0x11]
push dword [edi + 0x1c]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_CustomMonsterReward__s__s__d__d
push 0x446e50
call fcn.0041ad10
add esp, 0x18
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40a54c
push dword [edi + 0x24]
lea eax, [edi + 0x11]
push dword [edi + 0x20]
push dword [edi + 0x1c]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_CustomArenaRanking__s__s__d__d__d
push 0x446e50
call fcn.0041ad10
add esp, 0x1c
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40a54c
push dword [edi + 0x20]
lea eax, [edi + 0x11]
push dword [edi + 0x1c]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_TvTRanking__s__s__d__d
push 0x446e50
call fcn.0041ad10
add esp, 0x18
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40a54c
lea eax, [edi + 3]
push eax
push str.EXEC_WZ_GvGRanking__s
push 0x446e50
call fcn.0041ad10
add esp, 0xc
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40a54c
lea eax, [edi + 0x11]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_BattleRoyaleRanking__s__s
push 0x446e50
call fcn.0041ad10
add esp, 0x10
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40a54c
push dword [edi + 0x2c]
lea eax, [edi + 0x11]
push dword [edi + 0x28]
push dword [edi + 0x24]
push dword [edi + 0x20]
push dword [edi + 0x1c]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_RankingAll__s__s__d__d__d__d__d
jmp 0x40a72a
lea esi, [edi + 0x11]
push esi
lea eax, [ebp - 0x62a0]
push eax
call fcn.00404310
test al, al
jne case.0x407424.1
push esi
lea eax, [ebp - 0x62a0]
push 0xb
push eax
call fcn.0042138d
add esp, 0xc
lea eax, [edi + 6]
push eax
lea eax, [ebp - 0x6295]
push 0xb
push eax
call fcn.0042138d
mov ax, word [edi + 4]
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x62a0]
mov ecx, dword [ebp - 0x6344]
mov word [ebp - 0x628a], ax
mov eax, esp
mov dx, word [ecx + 0x511954]
movups xmmword [eax], xmm0
mov word [ebp - 0x6288], dx
movq xmm0, qword [ebp - 0x6290]
movq qword [eax + 0x10], xmm0
mov word [eax + 0x18], dx
call fcn.00404480
xor dl, dl
mov ecx, esi
call fcn.00406640
jmp case.0x407424.1
lea esi, [edi + 0x11]
push esi
lea eax, [ebp - 0x6220]
push eax
call fcn.00404310
test al, al
je case.0x407424.1
mov ax, word [ebp - 0x620a]
cmp ax, word [edi + 4]
jne case.0x407424.1
mov ecx, dword [ebp - 0x6344]
mov dx, word [ebp - 0x6208]
cmp dx, word [ecx + 0x511954]
jne case.0x407424.1
movups xmm0, xmmword [ebp - 0x6220]
sub esp, 0x1c
mov eax, esp
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x6210]
movq qword [eax + 0x10], xmm0
mov word [eax + 0x18], dx
call fcn.00404800
mov dl, 1
mov ecx, esi
call fcn.00406640
jmp case.0x407424.1
push 0xb3
lea eax, [ebp - 0x643f]
push 0
push eax
call fcn.0041f490
movzx eax, word [edi + 4]
add esp, 0xc
movq xmm0, qword [edi + 6]
mov word [ebp - 0x643c], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x6432], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x6430], al
movzx eax, word [edi + 0x19]
mov word [ebp - 0x6427], ax
mov al, byte [edi + 0x1b]
mov byte [ebp - 0x6425], al
lea eax, [edi + 0x1c]
push eax
mov dword [ebp - 0x631c], eax
lea eax, [ebp - 0x6214]
movq qword [ebp - 0x643a], xmm0
movq xmm0, qword [edi + 0x11]
push eax
mov word [ebp - 0x6440], 0xb4c1
mov byte [ebp - 0x643e], 0x72
movq qword [ebp - 0x642f], xmm0
call fcn.00404310
test al, al
jne 0x40acfd
mov byte [ebp - 0x6424], al
lea esi, [edi + 0x27]
jmp 0x40adee
push 0xb3
lea eax, [ebp - 0xff]
mov byte [ebp - 0x6424], 1
push 0
push eax
call fcn.0041f490
movzx eax, word [ebp - 0x61fe]
add esp, 0xc
movq xmm0, qword [ebp - 0x6209]
mov ecx, 0x23
mov word [ebp - 0xfc], ax
movzx eax, word [ebp - 0x6201]
mov word [ebp - 0xf2], ax
mov al, byte [ebp - 0x61ff]
mov byte [ebp - 0xf0], al
movzx eax, word [ebp - 0x620c]
mov word [ebp - 0xe7], ax
mov al, byte [ebp - 0x620a]
mov byte [ebp - 0xe5], al
movzx eax, word [edi + 0x19]
mov word [ebp - 0xdc], ax
mov al, byte [edi + 0x1b]
movq qword [ebp - 0xfa], xmm0
movq xmm0, qword [ebp - 0x6214]
mov byte [ebp - 0xda], al
lea eax, [edi + 0x27]
movq qword [ebp - 0xef], xmm0
mov esi, eax
movq xmm0, qword [edi + 0x11]
lea edi, [ebp - 0xd9]
mov word [ebp - 0x100], 0xb4c1
mov byte [ebp - 0xfe], 0x73
movq qword [ebp - 0xe4], xmm0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x61fc]
mov dword [ebp - 0x6308], eax
call fcn.0041d0e0
test eax, eax
je 0x40ade8
push 0xb4
lea ecx, [ebp - 0x100]
push ecx
push dword [eax + 4]
call fcn.0041c350
mov esi, dword [ebp - 0x6308]
mov edx, dword [ebp - 0x631c]
lea edi, [ebp - 0x6418]
push 0xb4
mov ecx, 0x23
mov ax, word [edx + 8]
movq xmm0, qword [edx]
mov word [ebp - 0x641b], ax
mov al, byte [edx + 0xa]
mov byte [ebp - 0x6419], al
lea eax, [ebp - 0x6440]
movq qword [ebp - 0x6423], xmm0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x6328]
push eax
push ecx
call fcn.0041c350
jmp case.0x407424.1
lea eax, [edi + 3]
push eax
push str.SELECT_Name_FROM_RankingKingGuild_WHERE_Name_s
push 0x446e50
mov dword [ebp - 0x6308], eax
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40aea9
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40aea9
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
push dword [ebp - 0x6308]
mov eax, dword [ecx + 0xc]
push eax
push eax
push str.UPDATE_RankingKingGuild_SET_ScoreScore_d_Score_semanalScore_semanal_d_WHERE_Name_s
jmp 0x40f2e1
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
mov eax, dword [ecx + 0xc]
push eax
push eax
push dword [ebp - 0x6308]
push str.INSERT_INTO_RankingKingGuild__Name_Score_Score_semanal__VALUES___s__d__d_
jmp 0x40f2e1
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingKingPlayer_WHERE_Name_s
push 0x446e50
mov dword [ebp - 0x6308], eax
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40af4d
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40af4d
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
push dword [ebp - 0x6308]
mov eax, dword [ecx + 0x1c]
push eax
push eax
push str.UPDATE_RankingKingPlayer_SET_ScoreScore_d_Score_semanalScore_semanal_d_WHERE_Name_s
jmp 0x40f2e1
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
mov eax, dword [ecx + 0x1c]
push eax
push eax
push dword [ebp - 0x6308]
push str.INSERT_INTO_RankingKingPlayer__Name_Score_Score_semanal__VALUES___s__d__d_
jmp 0x40f2e1
push 0xf5
lea eax, [ebp - 0x13f]
push 0
push eax
call fcn.0041f490
movzx eax, word [edi + 4]
lea esi, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov ecx, 0x16
mov word [ebp - 0x13c], ax
add esp, 0xc
movzx eax, word [edi + 0xe]
mov word [ebp - 0x132], ax
mov al, byte [edi + 0x10]
lea edi, [ebp - 0x12f]
mov word [ebp - 0x140], 0xf6c1
mov byte [ebp - 0x13e], 0x78
movq qword [ebp - 0x13a], xmm0
mov byte [ebp - 0x130], al
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x23
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x630c]
lea edi, [ebp - 0xd6]
add esi, 0x6a
rep movsd dword es:[edi], dword [esi]
xor edi, edi
xor esi, esi
mov ecx, dword [esi + 0x5118fc]
xor eax, eax
test ecx, ecx
js 0x40b015
cmp ecx, 0x14
setl al
test eax, eax
je 0x40b040
cmp dword [esi + 0x511900], 0
je 0x40b040
cmp dword [esi + 0x511914], 0xffffffff
je 0x40b040
movzx eax, byte [ebp - 0x13f]
push eax
lea eax, [ebp - 0x140]
push eax
push edi
call fcn.0041c350
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x40b003
jmp case.0x407424.1
cmp byte [edi], 0xc1
jne 0x40b05b
mov al, byte [edi + 3]
jmp 0x40b05e
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x1b
ja case.0x407424.1
jmp dword [eax*4 + 0x40f7a8]
push 0x37
lea eax, [ebp - 0x622f]
push 0
push eax
call fcn.0041f490
movzx eax, word [edi + 4]
lea ecx, [ebp - 0x6270]
add esp, 0xc
mov dword [ebp - 0x6230], 0x8038c1
mov word [ebp - 0x6228], ax
push ecx
push dword [edi + 8]
push eax
call fcn.00403530
test eax, eax
je 0x40b0cb
push 0x38
lea eax, [ebp - 0x6230]
mov dword [ebp - 0x622c], 0
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
movzx eax, word [ebp - 0x6270]
xorps xmm0, xmm0
mov word [ebp - 0x6226], ax
mov al, byte [ebp - 0x626e]
mov byte [ebp - 0x6224], al
mov al, byte [ebp - 0x626d]
mov byte [ebp - 0x6223], al
movzx eax, word [ebp - 0x626c]
mov word [ebp - 0x6222], ax
mov al, byte [ebp - 0x626a]
mov byte [ebp - 0x6220], al
mov al, byte [ebp - 0x6269]
mov byte [ebp - 0x621f], al
mov al, byte [ebp - 0x6268]
mov ecx, dword [ebp - 0x6254]
mov byte [ebp - 0x621e], al
mov al, byte [ebp - 0x6267]
mov byte [ebp - 0x621d], al
mov al, byte [ebp - 0x6266]
mov byte [ebp - 0x621c], al
mov eax, dword [ebp - 0x6258]
mov dword [ebp - 0x6210], eax
mov eax, dword [ebp - 0x6250]
mov dword [ebp - 0x6208], eax
mov eax, dword [ebp - 0x624c]
mov dword [ebp - 0x6204], eax
mov eax, dword [ebp - 0x6248]
mov dword [ebp - 0x6200], eax
mov eax, dword [ebp - 0x6244]
mov dword [ebp - 0x61fc], eax
mov eax, dword [ebp - 0x6265]
movq qword [ebp - 0x621b], xmm0
mov dword [ebp - 0x621b], eax
lea eax, [ebp - 0x6230]
push 0x38
push eax
mov dword [ebp - 0x620c], ecx
mov ecx, dword [ebp - 0x6261]
push esi
mov dword [ebp - 0x622c], 1
mov dword [ebp - 0x6217], ecx
call fcn.0041c350
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.004121d0
jmp case.0x407424.1
mov eax, dword [edi + 8]
xorps xmm0, xmm0
mov ecx, dword [edi + 0x10]
movups xmmword [ebp - 0x6213], xmm0
mov dword [ebp - 0x6208], eax
mov eax, dword [edi + 0x28]
mov edx, dword [edi + 0xc]
movzx esi, word [edi + 4]
movq qword [ebp - 0x6203], xmm0
mov word [ebp - 0x61fb], 0
mov byte [ebp - 0x61f9], 0
mov dword [ebp - 0x61fc], eax
xor eax, eax
mov dword [ebp - 0x630c], eax
movzx eax, byte [edi + 0x26]
push eax
movzx eax, byte [edi + 0x25]
push eax
movzx eax, byte [edi + 0x24]
push eax
push dword [edi + 0x20]
mov dword [ebp - 0x6214], 0x3801cc1
push dword [edi + 0x1c]
mov word [ebp - 0x620c], si
push dword [edi + 0x18]
mov dword [ebp - 0x6204], edx
push dword [edi + 0x14]
mov dword [ebp - 0x6200], ecx
push ecx
push edx
push esi
push str.EXEC_WZ_CS_ReqNpcBuy__d___d___d___d___d___d___d___d___d___d
push 0x446e50
call fcn.0041ad10
add esp, 0x30
push dword [0x446e5c]
test al, al
je 0x40b2d2
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b2cc
cmp ax, 0xffff
je 0x40b2cc
push str.QueryResult
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40b297
or eax, eax
jmp 0x40b2a8
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push dword [0x446e5c]
mov dword [ebp - 0x630c], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
xor eax, eax
jmp 0x40b2eb
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, 1
xor ecx, ecx
test eax, eax
mov eax, dword [ebp - 0x630c]
cmovne eax, ecx
mov ecx, dword [ebp - 0x6328]
mov dword [ebp - 0x6210], eax
lea eax, [ebp - 0x6214]
push 0x1c
push eax
push ecx
call fcn.0041c350
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.00412350
jmp case.0x407424.1
movzx eax, word [edi + 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x621b], xmm0
mov word [ebp - 0x6214], ax
mov eax, dword [edi + 8]
mov edi, dword [edi + 0xc]
mov dword [ebp - 0x6210], eax
mov eax, dword [ebp - 0x630c]
movups xmmword [ebp - 0x620b], xmm0
mov word [ebp - 0x61fb], 0
mov byte [ebp - 0x61f9], 0
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x14]
mov esi, dword [eax + 0x10]
mov eax, dword [eax + 0x1c]
push ecx
push edx
mov dword [ebp - 0x6200], ecx
mov ecx, dword [ebp - 0x630c]
push esi
mov dword [ebp - 0x61fc], eax
push edi
movzx eax, word [ecx + 4]
push eax
push str.EXEC_WZ_CS_ReqNpcUpgrade__d___d___d___d___d
push 0x446e50
mov dword [ebp - 0x621c], 0x58024c1
mov dword [ebp - 0x620c], edi
mov dword [ebp - 0x6208], esi
mov dword [ebp - 0x6204], edx
call fcn.0041ad10
add esp, 0x1c
push dword [0x446e5c]
test al, al
je 0x40b420
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b41a
cmp ax, 0xffff
je 0x40b41a
push str.QueryResult
call fcn.0041af60
cmp eax, 0xffffffff
je 0x40b3fc
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
test eax, eax
je 0x40b41a
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
xor ecx, ecx
jmp 0x40b439
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, 1
xor eax, eax
test ecx, ecx
mov ecx, dword [ebp - 0x6328]
sete al
mov dword [ebp - 0x6218], eax
lea eax, [ebp - 0x621c]
push 0x24
push eax
push ecx
call fcn.0041c350
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.004124c0
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.00412640
jmp case.0x407424.1
mov eax, dword [edi + 8]
lea edx, [ebp - 0x6308]
movzx ecx, word [edi + 4]
xorps xmm0, xmm0
push edx
movups xmmword [ebp - 0x6217], xmm0
lea edx, [ebp - 0x6320]
mov dword [ebp - 0x620c], eax
mov eax, dword [edi + 0xc]
push edx
push eax
movq qword [ebp - 0x6207], xmm0
push ecx
mov dword [ebp - 0x61ff], 0
mov word [ebp - 0x61fb], 0
mov byte [ebp - 0x61f9], 0
mov dword [ebp - 0x6218], 0x88020c1
mov word [ebp - 0x6210], cx
mov dword [ebp - 0x6208], eax
mov dword [ebp - 0x6308], 0
movlpd qword [ebp - 0x6320], xmm0
call fcn.00403830
push 0x20
test eax, eax
je 0x40b518
lea eax, [ebp - 0x6218]
mov dword [ebp - 0x6214], 0
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
mov eax, dword [ebp - 0x6308]
mov ecx, dword [ebp - 0x631c]
mov dword [ebp - 0x6214], eax
mov eax, dword [ebp - 0x6320]
mov dword [ebp - 0x6200], eax
lea eax, [ebp - 0x6218]
push eax
push esi
mov dword [ebp - 0x61fc], ecx
call fcn.0041c350
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.004127a0
jmp case.0x407424.1
mov ax, word [edi + 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x6217], xmm0
mov word [ebp - 0x6210], ax
mov eax, dword [edi + 8]
mov dword [ebp - 0x620c], eax
mov byte [ebp - 0x30], 0
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x6308]
push eax
lea eax, [ebp - 0x6218]
mov dword [ebp - 0x34], ecx
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x6308], 0
push eax
movzx eax, word [edi + 4]
push eax
movq qword [ebp - 0x6207], xmm0
mov dword [ebp - 0x61ff], 0
mov word [ebp - 0x61fb], 0
mov byte [ebp - 0x61f9], 0
mov dword [ebp - 0x6218], 0xa8020c1
call fcn.00403920
mov ecx, dword [ebp - 0x6308]
xor edx, edx
test eax, eax
lea eax, [ebp - 0x6218]
push 0x20
push eax
cmovne ecx, edx
push esi
mov dword [ebp - 0x6214], ecx
call fcn.0041c350
jmp case.0x407424.1
push dword [edi + 8]
movzx eax, word [edi + 4]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x6337], xmm0
xor ecx, ecx
push str.EXEC_WZ_CS_ModifySiegeEnd__d___d
mov dword [ebp - 0x632f], 0
push 0x446e50
mov word [ebp - 0x632b], 0
mov byte [ebp - 0x6329], 0
mov dword [ebp - 0x6338], 0xb8010c1
mov word [ebp - 0x6330], ax
mov dword [ebp - 0x6328], ecx
call fcn.0041ad10
add esp, 0x10
push dword [0x446e5c]
test al, al
je 0x40b6ce
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b6c8
cmp ax, 0xffff
je 0x40b6c8
push str.QueryResult
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40b693
or ecx, eax
mov dword [ebp - 0x6328], ecx
jmp 0x40b6aa
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov dword [ebp - 0x6328], eax
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
xor eax, eax
jmp 0x40b6e7
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, 1
xor ecx, ecx
test eax, eax
mov eax, dword [ebp - 0x6328]
cmovne eax, ecx
mov dword [ebp - 0x6334], eax
lea eax, [ebp - 0x6338]
push 0x10
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
movzx eax, word [edi + 4]
xor ecx, ecx
xorps xmm0, xmm0
mov byte [ebp - 8], cl
movups xmmword [ebp - 0x636f], xmm0
mov dword [ebp - 0x6328], ecx
mov ecx, dword [edi + 0x10]
mov word [ebp - 0x6368], ax
mov dword [ebp - 0x6340], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x6308], ecx
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x635f], 0
lea edx, [ecx + 1]
mov word [ebp - 0x635b], 0
mov byte [ebp - 0x6359], 0
mov dword [ebp - 0x6370], 0xc8018c1
mov dword [ebp - 0x631c], eax
mov dword [ebp - 0x10], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b776
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x40b7b4
nop word [eax + eax]
mov dl, byte [ebp + eax - 0x10]
cmp dl, 0x20
je 0x40b879
cmp dl, 0x22
je 0x40b879
cmp dl, 0x27
je 0x40b879
inc eax
cmp eax, ecx
jl 0x40b790
mov ecx, dword [ebp - 0x631c]
mov eax, dword [edi + 8]
mov dword [ebp - 0x6360], ecx
mov ecx, dword [ebp - 0x6308]
mov dword [ebp - 0x635c], ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebp - 0x6340]
mov dword [ebp - 0x6364], eax
push str.EXEC_WZ_CS_ModifyCastleOwnerInfo__d___d___s
push 0x446e50
call fcn.0041ad10
add esp, 0x14
push dword [0x446e5c]
test al, al
je 0x40b865
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b85f
cmp ax, 0xffff
je 0x40b85f
push str.QueryResult
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40b82a
or ecx, eax
mov dword [ebp - 0x6328], ecx
jmp 0x40b841
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov dword [ebp - 0x6328], eax
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
xor eax, eax
jmp 0x40b87e
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, 1
xor ecx, ecx
test eax, eax
mov eax, dword [ebp - 0x6328]
cmovne eax, ecx
mov dword [ebp - 0x636c], eax
lea eax, [ebp - 0x6370]
push 0x18
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
mov eax, dword [edi + 8]
xorps xmm0, xmm0
movzx ecx, word [edi + 4]
movups xmmword [ebp - 0x6387], xmm0
mov dword [ebp - 0x637c], eax
xor eax, eax
mov word [ebp - 0x6380], cx
mov dword [ebp - 0x631c], ecx
mov byte [ebp - 0x14], al
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x6328], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x6377], 0
lea edx, [ecx + 1]
mov word [ebp - 0x6373], 0
mov byte [ebp - 0x6371], 0
mov dword [ebp - 0x6388], 0xd8018c1
mov dword [ebp - 0x1c], eax
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b910
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x40b944
nop
mov dl, byte [ebp + eax - 0x1c]
cmp dl, 0x20
je 0x40b9f3
cmp dl, 0x22
je 0x40b9f3
cmp dl, 0x27
je 0x40b9f3
inc eax
cmp eax, ecx
jl 0x40b920
mov eax, dword [ebp - 0x6378]
mov ecx, dword [ebp - 0x6374]
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x631c]
mov dword [edi + 0x10], ecx
push str.EXEC_WZ_CS_ReqRegAttackGuild__d___s
push 0x446e50
call fcn.0041ad10
add esp, 0x10
push dword [0x446e5c]
test al, al
je 0x40b9df
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b9d9
cmp ax, 0xffff
je 0x40b9d9
push str.QueryResult
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40b9a4
or eax, eax
jmp 0x40b9b5
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push dword [0x446e5c]
mov dword [ebp - 0x6328], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
xor eax, eax
jmp 0x40b9f8
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, 1
xor ecx, ecx
test eax, eax
mov eax, dword [ebp - 0x6328]
cmovne eax, ecx
mov dword [ebp - 0x6384], eax
lea eax, [ebp - 0x6388]
push 0x18
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
movzx eax, word [edi + 4]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x6333], xmm0
xor edi, edi
push str.EXEC_WZ_CS_ResetCastleSiege__d
mov word [ebp - 0x632b], 0
push 0x446e50
mov byte [ebp - 0x6329], 0
mov dword [ebp - 0x6334], 0xe800cc1
mov word [ebp - 0x632c], ax
call fcn.0041ad10
add esp, 0xc
push dword [0x446e5c]
test al, al
je 0x40baf0
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40baea
cmp ax, 0xffff
je 0x40baea
push str.QueryResult
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40ba9a
or edi, eax
jmp 0x40baad
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov edi, eax
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
xor eax, eax
xor ecx, ecx
test eax, eax
lea eax, [ebp - 0x6334]
push 0xc
push eax
cmovne edi, ecx
push esi
mov dword [ebp - 0x6330], edi
call fcn.0041c350
jmp case.0x407424.1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, 1
xor ecx, ecx
test eax, eax
lea eax, [ebp - 0x6334]
push 0xc
push eax
cmovne edi, ecx
push esi
mov dword [ebp - 0x6330], edi
call fcn.0041c350
jmp case.0x407424.1
push 0x85
lea eax, [ebp - 0x6417]
push 0
push eax
call fcn.0041f490
mov ax, word [edi + 4]
lea esi, [edi + 6]
mov ecx, 0x20
mov dword [ebp - 0x6418], 0xf8086c1
lea edi, [ebp - 0x6412]
mov word [ebp - 0x6414], ax
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
xor edi, edi
xor esi, esi
nop dword [eax]
mov ecx, dword [esi + 0x5118fc]
xor eax, eax
test ecx, ecx
js 0x40bb82
cmp ecx, 0x14
setl al
test eax, eax
je 0x40bbaa
cmp dword [esi + 0x511900], 0
je 0x40bbaa
cmp dword [esi + 0x511914], 0xffffffff
je 0x40bbaa
push 0x86
lea eax, [ebp - 0x6418]
push eax
push edi
call fcn.0041c350
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x40bb70
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.004128f0
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.00412a90
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.00412c20
jmp case.0x407424.1
mov eax, dword [edi + 0xc]
xorps xmm0, xmm0
mov ecx, dword [edi + 8]
movzx edx, word [edi + 4]
xor edi, edi
push eax
push ecx
push edx
movups xmmword [ebp - 0x633b], xmm0
push str.EXEC_WZ_CS_ReqNpcRemove__d___d___d
mov word [ebp - 0x632b], 0
mov byte [ebp - 0x6329], 0
push 0x446e50
mov dword [ebp - 0x633c], 0x168014c1
mov word [ebp - 0x6334], dx
mov dword [ebp - 0x6330], ecx
mov dword [ebp - 0x632c], eax
call fcn.0041ad10
add esp, 0x14
push dword [0x446e5c]
test al, al
je 0x40bcc5
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40bcbf
cmp ax, 0xffff
je 0x40bcbf
push str.QueryResult
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40bc6f
or edi, eax
jmp 0x40bc82
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov edi, eax
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
xor eax, eax
xor ecx, ecx
test eax, eax
lea eax, [ebp - 0x633c]
push 0x14
push eax
cmovne edi, ecx
push esi
mov dword [ebp - 0x6338], edi
call fcn.0041c350
jmp case.0x407424.1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, 1
xor ecx, ecx
test eax, eax
lea eax, [ebp - 0x633c]
push 0x14
push eax
cmovne edi, ecx
push esi
mov dword [ebp - 0x6338], edi
call fcn.0041c350
jmp case.0x407424.1
mov ax, word [edi + 4]
xorps xmm0, xmm0
mov ecx, dword [edi + 0x1c]
movups xmmword [ebp - 0x6217], xmm0
mov word [ebp - 0x6214], ax
mov eax, dword [edi + 8]
mov dword [ebp - 0x6210], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x620c], eax
mov eax, dword [edi + 0x10]
movq qword [ebp - 0x6207], xmm0
mov dword [ebp - 0x6208], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x6204], eax
mov eax, dword [edi + 0x18]
xor edi, edi
mov dword [ebp - 0x61ff], 0
xor esi, esi
mov word [ebp - 0x61fb], 0
mov byte [ebp - 0x61f9], 0
mov dword [ebp - 0x6218], 0x178020c1
mov dword [ebp - 0x6200], eax
mov dword [ebp - 0x61fc], ecx
nop word [eax + eax]
mov ecx, dword [esi + 0x5118fc]
xor eax, eax
test ecx, ecx
js 0x40bd92
cmp ecx, 0x14
setl al
test eax, eax
je 0x40bdb7
cmp dword [esi + 0x511900], 0
je 0x40bdb7
cmp dword [esi + 0x511914], 0xffffffff
je 0x40bdb7
push 0x20
lea eax, [ebp - 0x6218]
push eax
push edi
call fcn.0041c350
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x40bd80
jmp case.0x407424.1
movzx eax, word [edi + 4]
xorps xmm0, xmm0
mov ecx, dword [edi + 8]
movq qword [ebp - 0x6333], xmm0
mov word [ebp - 0x632b], 0
mov byte [ebp - 0x6329], 0
mov dword [ebp - 0x6334], 0x18800cc1
mov word [ebp - 0x632c], ax
mov dword [ebp - 0x6308], 0
movlpd qword [ebp - 0x6320], xmm0
test ecx, ecx
jns 0x40be2f
push 0xc
lea eax, [ebp - 0x6334]
mov dword [ebp - 0x6330], 0
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
lea edx, [ebp - 0x6308]
push edx
lea edx, [ebp - 0x6320]
push edx
push ecx
push eax
call fcn.00403830
test eax, eax
je 0x40be66
push 0xc
lea eax, [ebp - 0x6334]
mov dword [ebp - 0x6330], 0
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
mov eax, dword [ebp - 0x6308]
mov dword [ebp - 0x6330], eax
lea eax, [ebp - 0x6334]
push 0xc
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
movzx eax, word [edi + 4]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x6333], xmm0
xor edi, edi
push str.EXEC_WZ_CS_ResetCastleTaxInfo__d
mov word [ebp - 0x632b], 0
push 0x446e50
mov byte [ebp - 0x6329], 0
mov dword [ebp - 0x6334], 0x19800cc1
mov word [ebp - 0x632c], ax
call fcn.0041ad10
add esp, 0xc
push dword [0x446e5c]
test al, al
je 0x40bf34
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40bf2e
cmp ax, 0xffff
je 0x40bf2e
push str.QueryResult
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40befd
or edi, eax
jmp 0x40bf10
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov edi, eax
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
xor eax, eax
jmp 0x40bf4d
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, 1
push 0xc
test eax, eax
lea eax, [ebp - 0x6334]
push eax
push esi
jne 0x40c048
mov dword [ebp - 0x6330], edi
call fcn.0041c350
jmp case.0x407424.1
movzx eax, word [edi + 4]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x6333], xmm0
xor edi, edi
push str.EXEC_WZ_CS_ResetSiegeGuildInfo__d
mov word [ebp - 0x632b], 0
push 0x446e50
mov byte [ebp - 0x6329], 0
mov dword [ebp - 0x6334], 0x1a800cc1
mov word [ebp - 0x632c], ax
call fcn.0041ad10
add esp, 0xc
push dword [0x446e5c]
test al, al
je 0x40c01d
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40c017
cmp ax, 0xffff
je 0x40c017
push str.QueryResult
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40bfe6
or edi, eax
jmp 0x40bff9
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov edi, eax
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
xor eax, eax
jmp 0x40c036
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, 1
push 0xc
test eax, eax
lea eax, [ebp - 0x6334]
push eax
push esi
je 0x40bf5f
mov dword [ebp - 0x6330], 0
call fcn.0041c350
jmp case.0x407424.1
movzx eax, word [edi + 4]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x6333], xmm0
xor edi, edi
push str.EXEC_WZ_CS_ResetRegSiegeInfo__d
mov word [ebp - 0x632b], 0
push 0x446e50
mov byte [ebp - 0x6329], 0
mov dword [ebp - 0x6334], 0x1b800cc1
mov word [ebp - 0x632c], ax
call fcn.0041ad10
add esp, 0xc
push dword [0x446e5c]
test al, al
je 0x40c10a
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40c104
cmp ax, 0xffff
je 0x40c104
push str.QueryResult
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40c0d3
or edi, eax
jmp 0x40c0e6
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov edi, eax
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
xor eax, eax
jmp 0x40c123
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, 1
push 0xc
test eax, eax
lea eax, [ebp - 0x6334]
push eax
push esi
jne 0x40c048
mov dword [ebp - 0x6330], edi
call fcn.0041c350
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.00412dc0
jmp case.0x407424.1
test edi, edi
je case.0x407424.1
movzx eax, word [edi + 4]
lea ecx, [ebp - 0x6308]
push ecx
lea ecx, [ebp - 0x41d4]
mov word [ebp - 0x41e0], ax
push ecx
push eax
mov dword [ebp - 0x6308], 0xc8
mov dword [ebp - 0x41d8], 0
call fcn.00403a80
mov byte [ebp - 0x41e8], 0xc2
mov byte [ebp - 0x41e5], 0x82
test eax, eax
je 0x40c1f7
mov edx, dword [ebp - 0x41d8]
mov dword [ebp - 0x41e4], 0
lea eax, [edx*8]
sub eax, edx
lea eax, [eax*4 + 0x14]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0x41e6], cl
shr eax, 8
mov byte [ebp - 0x41e7], al
lea eax, [edx*8]
sub eax, edx
lea eax, [eax*4 + 0x14]
push eax
lea eax, [ebp - 0x41e8]
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
mov edx, dword [ebp - 0x6308]
mov dword [ebp - 0x41e4], 1
mov dword [ebp - 0x41d8], edx
lea eax, [edx*8]
sub eax, edx
lea eax, [eax*4 + 0x14]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0x41e6], cl
shr eax, 8
mov byte [ebp - 0x41e7], al
lea eax, [edx*8]
sub eax, edx
lea eax, [eax*4 + 0x14]
push eax
lea eax, [ebp - 0x41e8]
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
test edi, edi
je case.0x407424.1
movzx ecx, word [edi + 4]
mov word [ebp - 0x1798], cx
mov eax, dword [edi + 8]
mov dword [ebp - 0x1794], eax
lea eax, [ebp - 0x6308]
push eax
lea eax, [ebp - 0x178c]
mov dword [ebp - 0x6308], 0x64
push eax
push ecx
mov dword [ebp - 0x1790], 0
call fcn.00403d30
mov byte [ebp - 0x17a0], 0xc2
mov byte [ebp - 0x179d], 0x83
test eax, eax
je 0x40c2ef
mov edx, dword [ebp - 0x1790]
mov eax, edx
shl eax, 4
add eax, 0x14
shl edx, 4
movzx ecx, ax
add edx, 0x14
mov eax, ecx
mov dword [ebp - 0x179c], 0
shr eax, 8
mov byte [ebp - 0x179f], al
lea eax, [ebp - 0x17a0]
push edx
push eax
push esi
mov byte [ebp - 0x179e], cl
call fcn.0041c350
jmp case.0x407424.1
mov edx, dword [ebp - 0x6308]
mov eax, edx
shl eax, 4
add eax, 0x14
mov dword [ebp - 0x1790], edx
movzx ecx, ax
mov eax, ecx
shl edx, 4
shr eax, 8
add edx, 0x14
mov byte [ebp - 0x179f], al
lea eax, [ebp - 0x17a0]
push edx
push eax
push esi
mov dword [ebp - 0x179c], 1
mov byte [ebp - 0x179e], cl
call fcn.0041c350
jmp case.0x407424.1
test edi, edi
je case.0x407424.1
movzx eax, word [edi + 4]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x6333], xmm0
push str.DELETE_MuCastle_NPC_WHERE_MAP_SVR_GROUP___d
mov word [ebp - 0x632b], 0
push 0x446e50
mov byte [ebp - 0x6329], 0
mov word [ebp - 0x6334], 0xcc1
mov byte [ebp - 0x6332], 0x84
mov word [ebp - 0x632c], ax
mov dword [ebp - 0x631c], eax
call fcn.0041ad10
add esp, 0xc
push dword [0x446e5c]
test al, al
jne 0x40c3b9
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, 1
jmp 0x40c46d
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp dword [edi + 8], 0
mov dword [ebp - 0x6308], 0
jle 0x40c46b
lea ecx, [edi + 0x25]
mov dword [ebp - 0x6340], ecx
nop word [eax + eax]
movzx eax, byte [ecx + 1]
push eax
movzx eax, byte [ecx]
push eax
movzx eax, byte [ecx - 1]
push eax
push dword [ecx - 5]
push dword [ecx - 9]
push dword [ecx - 0xd]
push dword [ecx - 0x11]
push dword [ecx - 0x15]
push dword [ecx - 0x19]
push dword [ebp - 0x631c]
push str.EXEC_WZ_CS_ReqNpcBuy__d___d___d___d___d___d___d___d___d___d
push 0x446e50
call fcn.0041ad10
add esp, 0x30
push dword [0x446e5c]
test al, al
je 0x40c39b
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x6308]
mov ecx, dword [ebp - 0x6340]
inc eax
add ecx, 0x1c
mov dword [ebp - 0x6308], eax
mov dword [ebp - 0x6340], ecx
cmp eax, dword [edi + 8]
jl 0x40c3f0
xor eax, eax
push 0xc
test eax, eax
lea eax, [ebp - 0x6334]
push eax
push esi
jne 0x40c048
mov dword [ebp - 0x6330], 1
call fcn.0041c350
jmp case.0x407424.1
test edi, edi
je case.0x407424.1
push str.DELETE_FROM_RankingCastleSiegeTime
push 0x446e50
call fcn.0041ad10
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
add esp, 8
push dword [0x446e5c]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
push str.DELETE_FROM_RankingCastleSiegeKills
push 0x446e50
call fcn.0041ad10
add esp, 8
push dword [0x446e5c]
call edi
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
mov dword [ebp - 0x6308], 0x64
movzx eax, word [ecx + 4]
lea ecx, [ebp - 0x6308]
push ecx
lea ecx, [ebp - 0x2ae0]
mov word [ebp - 0x2ae8], ax
push ecx
push eax
mov dword [ebp - 0x2ae4], 0
call fcn.00403ee0
mov byte [ebp - 0x2af0], 0xc2
mov byte [ebp - 0x2aed], 0x85
test eax, eax
je 0x40c58b
mov edx, dword [ebp - 0x2ae4]
mov dword [ebp - 0x2aec], 0
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0x2aee], cl
mov ecx, dword [ebp - 0x6328]
shr eax, 8
mov byte [ebp - 0x2aef], al
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
push eax
lea eax, [ebp - 0x2af0]
push eax
push ecx
call fcn.0041c350
jmp case.0x407424.1
mov edx, dword [ebp - 0x6308]
mov dword [ebp - 0x2aec], 1
mov dword [ebp - 0x2ae4], edx
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0x2aee], cl
mov ecx, dword [ebp - 0x6328]
shr eax, 8
mov byte [ebp - 0x2aef], al
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
push eax
lea eax, [ebp - 0x2af0]
push eax
push ecx
call fcn.0041c350
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.00412fc0
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.004131e0
jmp case.0x407424.1
test edi, edi
je case.0x407424.1
movzx eax, word [edi + 4]
lea ecx, [ebp - 0x6308]
push ecx
lea ecx, [ebp - 0x2070]
mov word [ebp - 0x2078], ax
push ecx
push eax
mov dword [ebp - 0x6308], 0x64
mov dword [ebp - 0x2074], 0
call fcn.004040e0
mov byte [ebp - 0x2080], 0xc2
mov byte [ebp - 0x207d], 0x88
test eax, eax
je 0x40c696
mov edx, dword [ebp - 0x2074]
mov dword [ebp - 0x207c], 0
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0x207e], cl
shr eax, 8
mov byte [ebp - 0x207f], al
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
push eax
lea eax, [ebp - 0x2080]
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
mov edx, dword [ebp - 0x6308]
mov dword [ebp - 0x207c], 1
mov dword [ebp - 0x2074], edx
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0x207e], cl
shr eax, 8
mov byte [ebp - 0x207f], al
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
push eax
lea eax, [ebp - 0x2080]
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
test edi, edi
je case.0x407424.1
movzx eax, word [edi + 4]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x6333], xmm0
push str.DELETE_MuCastle_NPC_WHERE_MAP_SVR_GROUP___d
mov word [ebp - 0x632b], 0
push 0x446e50
mov byte [ebp - 0x6329], 0
mov word [ebp - 0x6334], 0xcc1
mov byte [ebp - 0x6332], 0x89
mov word [ebp - 0x632c], ax
mov dword [ebp - 0x631c], eax
call fcn.0041ad10
add esp, 0xc
push dword [0x446e5c]
test al, al
jne 0x40c766
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, 1
jmp 0x40c814
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp dword [edi + 8], 0
mov dword [ebp - 0x6308], 0
jle 0x40c812
lea ecx, [edi + 0x25]
mov dword [ebp - 0x6340], ecx
movzx eax, byte [ecx + 1]
push eax
movzx eax, byte [ecx]
push eax
movzx eax, byte [ecx - 1]
push eax
push dword [ecx - 5]
push dword [ecx - 9]
push dword [ecx - 0xd]
push dword [ecx - 0x11]
push dword [ecx - 0x15]
push dword [ecx - 0x19]
push dword [ebp - 0x631c]
push str.EXEC_WZ_CS_ReqNpcUpdate__d___d___d___d___d___d___d___d___d___d
push 0x446e50
call fcn.0041ad10
add esp, 0x30
push dword [0x446e5c]
test al, al
je 0x40c748
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x6308]
mov ecx, dword [ebp - 0x6340]
inc eax
add ecx, 0x1c
mov dword [ebp - 0x6308], eax
mov dword [ebp - 0x6340], ecx
cmp eax, dword [edi + 8]
jl 0x40c797
xor ecx, ecx
xor eax, eax
test ecx, ecx
push 0xc
sete al
mov dword [ebp - 0x6330], eax
lea eax, [ebp - 0x6334]
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
push dword [ebx + 0xc]
mov ecx, esi
push edi
call fcn.00416660
add esp, 8
jmp case.0x407424.1
movzx eax, byte [edi]
sub eax, 0xc1
je 0x40c8c5
sub eax, 1
jne case.0x407424.1
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x6328], eax
dec ecx
mov eax, ecx
mov byte [ebp - 0x6326], cl
shr eax, 8
mov byte [ebp - 0x6327], al
mov al, byte [edi + 4]
mov byte [ebp - 0x6325], al
mov byte [ebp - 0x6328], 0xc2
mov eax, dword [ebp - 0x6328]
mov dword [ebp - 0x61e8], eax
lea eax, [ecx - 4]
push eax
lea eax, [edi + 5]
push eax
lea eax, [ebp - 0x61e4]
push eax
call fcn.00420a60
mov dl, byte [ebp - 0x6325]
lea eax, [ebp - 0x61e8]
add esp, 8
mov ecx, esi
push eax
call fcn.00405390
add esp, 8
jmp case.0x407424.1
mov cl, byte [edi + 3]
mov eax, dword [ebx + 0xc]
dec eax
mov byte [ebp - 0x6321], cl
mov byte [ebp - 0x51e7], al
add eax, 0xfffffffd
push eax
lea eax, [edi + 4]
mov byte [ebp - 0x51e8], 0xc1
push eax
lea eax, [ebp - 0x51e5]
mov byte [ebp - 0x51e6], cl
push eax
call fcn.00420a60
mov dl, byte [ebp - 0x6321]
lea eax, [ebp - 0x51e8]
add esp, 8
mov ecx, esi
push eax
call fcn.00405390
add esp, 8
jmp case.0x407424.1
lea ecx, [edi + 0x1c]
mov edx, str.marry
mov al, byte [ecx]
cmp al, byte [edx]
mov byte [ebp - 0x6321], al
lea eax, [edi + 0x1c]
jne 0x40c95c
cmp byte [ebp - 0x6321], 0
je 0x40c958
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
mov byte [ebp - 0x6321], al
lea eax, [edi + 0x1c]
jne 0x40c95c
add ecx, 2
add edx, 2
cmp byte [ebp - 0x6321], 0
jne 0x40c920
xor ecx, ecx
jmp 0x40c961
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x40c990
lea eax, [edi + 0x11]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_SetMarryInfo__s__s
push 0x446e50
call fcn.0041ad10
add esp, 0x10
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40a54c
mov ecx, str.divorce
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40c9b5
test dl, dl
je 0x40c9b1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40c9b5
add eax, 2
add ecx, 2
test dl, dl
jne 0x40c995
xor eax, eax
jmp 0x40c9ba
sbb eax, eax
or eax, 1
test eax, eax
jne case.0x407424.1
lea eax, [edi + 0x11]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_SetDivorceInfo__s__s
push 0x446e50
call fcn.0041ad10
add esp, 0x10
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40a54c
movzx eax, word [edi + 4]
lea ecx, [edi + 6]
xorps xmm0, xmm0
mov word [ebp - 0x61fb], 0
movups xmmword [ebp - 0x6213], xmm0
mov word [ebp - 0x6210], ax
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x6203], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x6206], ax
mov al, byte [ecx + 0xa]
push str.SELECT__FROM_CustomQuest_WHERE_Name_s
push 0x446e50
mov byte [ebp - 0x61f9], 0
mov word [ebp - 0x6214], 0x1cc1
mov byte [ebp - 0x6212], 0xf1
movq qword [ebp - 0x620e], xmm0
mov byte [ebp - 0x6204], al
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40cb00
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40cb00
push str.Quest
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40ca91
or eax, eax
jmp 0x40caa2
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.MonsterCount
mov dword [ebp - 0x6200], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40cabb
or eax, eax
jmp 0x40cacc
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push dword [0x446e5c]
mov dword [ebp - 0x61fc], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1c
lea eax, [ebp - 0x6214]
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1c
lea eax, [ebp - 0x6214]
mov dword [ebp - 0x6200], 0
push eax
push esi
mov dword [ebp - 0x61fc], 0x1869f
call fcn.0041c350
jmp case.0x407424.1
lea eax, [edi + 6]
push eax
push str.SELECT__FROM_CustomQuest_WHERE_Name_s
push 0x446e50
mov dword [ebp - 0x631c], eax
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40cbb9
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40cbb9
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
mov eax, dword [ebp - 0x631c]
push eax
push dword [ecx + 0x14]
push str.Update_CustomQuest_SET_Quest___d__MonsterCount__99999_WHERE_Name___s
push 0x446e50
call fcn.0041ad10
add esp, 0x10
jmp 0x40f2ee
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
push dword [ecx + 0x14]
lea eax, [ecx + 6]
push eax
push str.INSERT_INTO_CustomQuest__Name_Quest_MonsterCount__VALUES___s__d_99999_
push 0x446e50
call fcn.0041ad10
add esp, 0x10
jmp 0x40f2ee
push dword [edi + 0x24]
lea eax, [edi + 0x11]
push dword [edi + 0x20]
push dword [edi + 0x1c]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_SetCoin__s__s__d__d__d
push 0x446e50
call fcn.0041ad10
add esp, 0x1c
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40a54c
movzx eax, word [edi + 4]
mov dword [ebp - 0x6308], eax
movzx eax, word [edi + 6]
xor edi, edi
push eax
push str.EXEC_WZ_CustomRanking__d
push 0x446e50
mov dword [ebp - 0x630c], 0x10
mov dword [ebp - 0x6340], eax
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40cd4c
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40cd4c
lea edi, [ebp - 0x1038]
xor esi, esi
nop dword [eax + eax]
push str.VALUE1
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40ccb5
xorps xmm0, xmm0
mov dword [ebp - 0x62f0], 0
movaps xmmword [ebp - 0x6300], xmm0
jmp 0x40ccd1
shl eax, 0xd
push 0x13
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x6300]
push 0x14
push eax
call fcn.0042752d
add esp, 0x10
push str.VALUE2
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40cce7
or eax, eax
or edx, 0xffffffff
jmp 0x40ccf8
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.004240e2
add esp, 4
movups xmm0, xmmword [ebp - 0x6300]
add dword [ebp - 0x630c], 0x20
inc esi
push dword [0x446e5c]
movups xmmword [edi], xmm0
mov dword [ebp - 0x62e8], eax
mov dword [ebp - 0x62e4], edx
movups xmm0, xmmword [ebp - 0x62f0]
movups xmmword [edi + 0x10], xmm0
add edi, 0x20
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x40cc90
mov dword [ebp - 0x631c], esi
mov esi, dword [ebp - 0x6328]
mov edi, dword [ebp - 0x631c]
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x630c]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x1047], al
mov eax, dword [ebp - 0x6308]
mov dword [ebp - 0x1044], eax
mov eax, dword [ebp - 0x6340]
mov dword [ebp - 0x1040], eax
lea eax, [ebp - 0x1048]
push ecx
push eax
push esi
mov byte [ebp - 0x1048], 0xc2
mov byte [ebp - 0x1046], cl
mov byte [ebp - 0x1045], 0xf4
mov dword [ebp - 0x103c], edi
call fcn.0041c350
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.00413380
jmp case.0x407424.1
lea eax, [edi + 6]
push eax
push str.SELECT__FROM_CustomAttack_WHERE_Name_s
push 0x446e50
mov dword [ebp - 0x631c], eax
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40ce79
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40ce79
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
mov eax, dword [ebp - 0x631c]
push eax
push dword [ecx + 0x34]
movzx eax, word [ecx + 0x20]
push dword [ecx + 0x30]
push dword [ecx + 0x2c]
push dword [ecx + 0x28]
push dword [ecx + 0x24]
push eax
movzx eax, word [ecx + 0x1e]
push eax
movzx eax, word [ecx + 0x1c]
push eax
movzx eax, word [ecx + 0x1a]
push eax
movzx eax, word [ecx + 0x18]
push eax
movzx eax, word [ecx + 0x16]
push eax
movzx eax, word [ecx + 0x14]
push eax
movzx eax, word [ecx + 0x12]
push eax
push str.Update_CustomAttack_SET_Active___d__Skill___d__Map___d__PosX___d__PosY___d__AutoBuff___d__OffPvP___d__AutoReset___d__AutoAddStr___d__AutoAddAgi___d__AutoAddVit___d__AutoAddEne___d__AutoAddCmd___d__WHERE_Name___s
push 0x446e50
call fcn.0041ad10
add esp, 0x40
jmp 0x40f2ee
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
push dword [ecx + 0x34]
movzx eax, word [ecx + 0x20]
push dword [ecx + 0x30]
push dword [ecx + 0x2c]
push dword [ecx + 0x28]
push dword [ecx + 0x24]
push eax
movzx eax, word [ecx + 0x1e]
push eax
movzx eax, word [ecx + 0x1c]
push eax
movzx eax, word [ecx + 0x1a]
push eax
movzx eax, word [ecx + 0x18]
push eax
movzx eax, word [ecx + 0x16]
push eax
movzx eax, word [ecx + 0x14]
push eax
movzx eax, word [ecx + 0x12]
push eax
lea eax, [ecx + 6]
push eax
push str.INSERT_INTO_CustomAttack__Name_Active_Skill_Map_PosX_PosY_AutoBuff_OffPvP_AutoReset_AutoAddStr_AutoAddAgi_AutoAddVit_AutoAddEne_AutoAddCmd__VALUES___s__d__d__d__d__d__d__d__d__d__d__d__d__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x40
jmp 0x40f2ee
cmp byte [edi], 0xc1
lea ecx, [edi + 4]
mov dword [ebp - 0x6344], ecx
jne 0x40cf02
mov al, byte [edi + 3]
jmp 0x40cf04
mov al, byte [ecx]
movzx eax, al
cmp eax, 0x52
ja case.0x407424.1
movzx eax, byte [eax + 0x40f8f4]
jmp dword [eax*4 + 0x40f818]
mov ax, word [ecx]
xorps xmm0, xmm0
movups xmmword [ebp - 0x633b], xmm0
mov word [ebp - 0x6338], ax
movzx eax, word [edi + 0x12]
push eax
lea eax, [edi + 6]
mov word [ebp - 0x632b], 0
push eax
push str.SELECT__FROM_CustomNpcQuest_WHERE_Name_s_and_Quest___d
push 0x446e50
mov byte [ebp - 0x6329], 0
mov dword [ebp - 0x633c], 0xf714c1
call fcn.0041ad10
add esp, 0x10
test al, al
je 0x40cff1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40cff1
push str.Count
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40cf94
or eax, eax
jmp 0x40cfa5
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.MonsterCount
mov dword [ebp - 0x6330], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40cfbe
or eax, eax
jmp 0x40cfcf
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push dword [0x446e5c]
mov dword [ebp - 0x632c], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40d01f
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x6330], 0
mov dword [ebp - 0x632c], 0x1869f
movzx eax, word [edi + 0x12]
mov word [ebp - 0x6336], ax
movzx eax, word [edi + 0x14]
mov word [ebp - 0x6334], ax
lea eax, [ebp - 0x633c]
push 0x14
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
movzx eax, word [edi + 0x12]
lea ecx, [edi + 6]
push eax
push ecx
push str.SELECT__FROM_CustomNpcQuest_WHERE_Name_s_and_Quest___d
push 0x446e50
call fcn.0041ad10
add esp, 0x10
test al, al
je 0x40d0be
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40d0be
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
movzx eax, word [ecx + 0x12]
push eax
lea eax, [ecx + 6]
push eax
push str.Update_CustomNpcQuest_SET_Count__Count1_MonsterCount99999_WHERE_Name___s_and_Quest___d
push 0x446e50
call fcn.0041ad10
add esp, 0x10
jmp 0x40f2ee
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
movzx eax, word [ecx + 0x12]
push eax
lea eax, [ecx + 6]
push eax
push str.INSERT_INTO_CustomNpcQuest__Name_quest_count_MonsterCount__VALUES___s__d_1_99999_
push 0x446e50
call fcn.0041ad10
add esp, 0x10
jmp 0x40f2ee
movzx eax, word [edi + 0x12]
lea ecx, [edi + 6]
push eax
push ecx
push str.SELECT__FROM_CustomNpcQuest_WHERE_Name_s_and_Quest___d
push 0x446e50
mov dword [ebp - 0x631c], ecx
call fcn.0041ad10
add esp, 0x10
test al, al
je 0x40d173
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40d173
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
movzx eax, word [ecx + 0x12]
push eax
lea eax, [ecx + 6]
push eax
push dword [ecx + 0x14]
push str.Update_CustomNpcQuest_SET_MonsterCount_d_WHERE_Name___s_and_Quest___d
jmp 0x40f2e1
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov eax, dword [ebp - 0x630c]
push dword [eax + 0x14]
movzx eax, word [eax + 0x12]
push eax
mov eax, dword [ebp - 0x631c]
push eax
push str.INSERT_INTO_CustomNpcQuest__Name_quest_count_monstercount__VALUES___s__d_0__d_
jmp 0x40f2e1
lea eax, [edi + 6]
push eax
push str.UPDATE_Character_SET_ItemStart1_WHERE_name_s
push 0x446e50
call fcn.0041ad10
add esp, 0xc
jmp 0x40a54c
movzx eax, word [edi + 0x12]
mov dword [ebp - 0x6308], 0
mov dword [ebp - 0x6340], 0
mov dword [ebp - 0x634c], 0
mov dword [ebp - 0x6348], 0
mov dword [ebp - 0x6358], 0
mov dword [ebp - 0x6354], 0
mov dword [ebp - 0x6350], 0
mov dword [ebp - 0x6344], 0
mov dword [ebp - 0x630c], 0
mov dword [ebp - 0x6328], 0
cmp eax, 9
ja case.default.0x40d238
jmp dword [eax*4 + 0x40f948]
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x6308], eax
jmp case.default.0x40d238
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x6340], eax
jmp case.default.0x40d238
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x634c], eax
jmp case.default.0x40d238
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x6348], eax
jmp case.default.0x40d238
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x6358], eax
jmp case.default.0x40d238
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x6354], eax
jmp case.default.0x40d238
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x6350], eax
jmp case.default.0x40d238
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x6344], eax
jmp case.default.0x40d238
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x630c], eax
jmp case.default.0x40d238
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x6328], eax
lea eax, [edi + 6]
push eax
push str.SELECT__FROM_CustomJewelBank_WHERE_AccountID_s
push 0x446e50
mov dword [ebp - 0x631c], eax
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40d358
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40d358
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
push dword [ebp - 0x631c]
push dword [ebp - 0x6328]
push dword [ebp - 0x630c]
push dword [ebp - 0x6344]
push dword [ebp - 0x6350]
push dword [ebp - 0x6354]
push dword [ebp - 0x6358]
push dword [ebp - 0x6348]
push dword [ebp - 0x634c]
push dword [ebp - 0x6340]
push dword [ebp - 0x6308]
push str.Update_CustomJewelBank_SET_Bless_d_Soul_d_Life_d_Creation_d_Guardian_d_GemStone_d_Harmony_d_Chaos_d_LowStone_d_HighStone_d_WHERE_AccountID___s
push 0x446e50
call fcn.0041ad10
add esp, 0x34
jmp 0x40f2ee
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
push dword [ebp - 0x6328]
push dword [ebp - 0x630c]
push dword [ebp - 0x6344]
push dword [ebp - 0x6350]
push dword [ebp - 0x6354]
push dword [ebp - 0x6358]
push dword [ebp - 0x6348]
push dword [ebp - 0x634c]
push dword [ebp - 0x6340]
push dword [ebp - 0x6308]
push dword [ebp - 0x631c]
push str.INSERT_INTO_CustomJewelBank__AccountID_Bless_Soul_Life_Creation_Guardian_GemStone_Harmony_Chaos_LowStone_HighStone__VALUES___s__d__d__d__d__d__d__d__d__d__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x34
jmp 0x40f2ee
mov edx, esi
mov ecx, edi
call fcn.00413650
jmp case.0x407424.1
movzx eax, word [edi + 0x12]
lea ecx, [edi + 6]
push eax
push ecx
push str.SELECT__FROM_CustomQuest_WHERE_Name_s_and_Quest___d
push 0x446e50
mov dword [ebp - 0x631c], ecx
call fcn.0041ad10
add esp, 0x10
test al, al
je 0x40d44e
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40d44e
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
movzx eax, word [ecx + 0x12]
push eax
lea eax, [ecx + 6]
push eax
push dword [ecx + 0x14]
push str.Update_CustomQuest_SET_MonsterCount_d_WHERE_Name___s_and_Quest___d
jmp 0x40f2e1
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov eax, dword [ebp - 0x630c]
push dword [eax + 0x14]
movzx eax, word [eax + 0x12]
push eax
mov eax, dword [ebp - 0x631c]
push eax
push str.INSERT_INTO_CustomQuest__Name_quest_monstercount__VALUES___s__d__d_
jmp 0x40f2e1
mov edx, esi
mov ecx, edi
call fcn.00413c80
jmp case.0x407424.1
lea eax, [edi + 6]
push eax
push str.SELECT__FROM_CustomAttackOffline_WHERE_AccountID_s
push 0x446e50
mov dword [ebp - 0x631c], eax
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40d519
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40d519
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
mov eax, dword [ebp - 0x631c]
push eax
lea eax, [ecx + 0x1c]
push eax
lea eax, [ecx + 0x2c]
push eax
lea eax, [ecx + 0x11]
push eax
push str.Update_CustomAttackOffline_SET_Name___s_ServerName___s__IP___s_WHERE_AccountID___s
push 0x446e50
call fcn.0041ad10
add esp, 0x18
jmp 0x40f2ee
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
lea eax, [ecx + 0x2c]
push eax
lea eax, [ecx + 0x1c]
push eax
lea eax, [ecx + 0x11]
push eax
lea eax, [ecx + 6]
push eax
push str.INSERT_INTO_CustomAttackOffline__AccountID_Name_IP_ServerName__VALUES___s__s__s__s_
push 0x446e50
call fcn.0041ad10
add esp, 0x18
jmp 0x40f2ee
lea eax, [edi + 6]
push eax
push str.SELECT__FROM_CustomAttackOffline_WHERE_AccountID_s
push 0x446e50
mov dword [ebp - 0x631c], eax
call fcn.0041ad10
add esp, 0xc
test al, al
jne 0x40d59a
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a54c
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
push dword [ebp - 0x631c]
push str.DELETE_FROM_CustomAttackOffline_WHERE_AccountID_s
push 0x446e50
call fcn.0041ad10
add esp, 0xc
jmp 0x40f2ee
mov edx, esi
mov ecx, edi
call fcn.00413fa0
jmp case.0x407424.1
lea eax, [edi + 6]
push eax
push str.SELECT__FROM_CustomStoreOffline_WHERE_AccountID_s
push 0x446e50
mov dword [ebp - 0x631c], eax
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40d663
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40d663
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
mov eax, dword [ebp - 0x631c]
push eax
lea eax, [ecx + 0x1c]
push eax
lea eax, [ecx + 0x2c]
push eax
lea eax, [ecx + 0x11]
push eax
push str.Update_CustomStoreOffline_SET_Name___s__ServerName___s__IP___s_WHERE_AccountID___s
push 0x446e50
call fcn.0041ad10
add esp, 0x18
jmp 0x40f2ee
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
lea eax, [ecx + 0x2c]
push eax
lea eax, [ecx + 0x1c]
push eax
lea eax, [ecx + 0x11]
push eax
lea eax, [ecx + 6]
push eax
push str.INSERT_INTO_CustomStoreOffline__AccountID_Name_IP_ServerName__VALUES___s__s__s__s_
push 0x446e50
call fcn.0041ad10
add esp, 0x18
jmp 0x40f2ee
lea eax, [edi + 6]
push eax
push str.SELECT__FROM_CustomStoreOffline_WHERE_AccountID_s
push 0x446e50
mov dword [ebp - 0x631c], eax
call fcn.0041ad10
add esp, 0xc
test al, al
jne 0x40d6e4
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a54c
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
push dword [ebp - 0x631c]
push str.DELETE_FROM_CustomStoreOffline_WHERE_AccountID_s
push 0x446e50
call fcn.0041ad10
add esp, 0xc
jmp 0x40f2ee
mov edx, esi
mov ecx, edi
call fcn.004142c0
jmp case.0x407424.1
push ecx
push str.SELECT__FROM_EventAuctionReward_WHERE_Account_s
push 0x446e50
call fcn.0041ad10
add esp, 0xc
test al, al
jne 0x40d75e
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x40d75e
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
jmp 0x40d790
push dword [0x446e5c]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call esi
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
lea ecx, [edi + 4]
push ecx
push str.DELETE_FROM_EventAuctionReward_WHERE_Account_s
push 0x446e50
call fcn.0041ad10
add esp, 0xc
push dword [0x446e5c]
call esi
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
lea eax, [edi + 4]
push eax
push str.UPDATE_EventAuction_SET_ended2_WHERE_CurrentAccount_s
push 0x446e50
call fcn.0041ad10
add esp, 0xc
push dword [0x446e5c]
call esi
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp case.0x407424.1
movzx eax, word [ecx]
push eax
push str.SELECT__FROM_EventAuction_WHERE_AuctionIndex_d
push 0x446e50
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40d859
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40d859
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x6344]
movzx eax, word [ecx]
mov ecx, dword [ebp - 0x630c]
push eax
push dword [ecx + 0x24]
lea eax, [ecx + 0x11]
push eax
lea eax, [ecx + 6]
push eax
push dword [ecx + 0x20]
push dword [ecx + 0x1c]
push str.Update_EventAuction_SET_CoinType___d__CurrentBid___d__CurrentAccount___s__CurrentName___s__Ended___d_WHERE_AuctionIndex_d
push 0x446e50
call fcn.0041ad10
add esp, 0x20
jmp 0x40f2ee
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
push dword [ecx + 0x24]
lea eax, [ecx + 0x11]
push eax
lea eax, [ecx + 6]
push eax
push dword [ecx + 0x20]
movzx eax, word [ecx + 4]
push dword [ecx + 0x1c]
push eax
push str.INSERT_INTO_EventAuction__AuctionIndex_CoinType_CurrentBid_CurrentAccount_CurrentName_ended__VALUES___d__d__d__s__s__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x20
jmp 0x40f2ee
lea eax, [edi + 5]
push eax
push str.SELECT__FROM_EventAuctionReward_WHERE_Account_s
push 0x446e50
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40d8da
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne case.0x407424.1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp byte [edi + 0x10], 0
mov dword [ebp - 0x631c], 0
jbe case.0x407424.1
lea esi, [edi + 0x49]
nop dword [eax + eax]
push dword [esi + 4]
lea eax, [edi + 5]
push dword [esi]
push dword [esi - 4]
push dword [esi - 8]
push dword [esi - 0xc]
push dword [esi - 0x10]
push dword [esi - 0x14]
push dword [esi - 0x18]
push dword [esi - 0x1c]
push dword [esi - 0x20]
push dword [esi - 0x24]
push dword [esi - 0x28]
push dword [esi - 0x2c]
push dword [esi - 0x30]
push dword [esi - 0x34]
push dword [esi - 0x38]
push eax
push str.INSERT_INTO_EventAuctionReward__Account_ItemIndex_ItemLevel_ItemDur_ItemSkill_ItemLuck_ItemOption_ItemExcOpt_ItemSetOpt_ItemJoH_ItemOex_ItemSocket1_ItemSocket2_ItemSocket3_ItemSocket4_ItemSocket5_Time__VALUES___s__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x4c
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x631c]
lea esi, [esi + 0x40]
movzx eax, byte [edi + 0x10]
inc ecx
mov dword [ebp - 0x631c], ecx
cmp ecx, eax
jl 0x40d910
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.00414470
jmp case.0x407424.1
push dword [edi + 0x30]
lea eax, [edi + 0x25]
push eax
lea eax, [edi + 0x1a]
push eax
lea eax, [edi + 0xf]
push eax
push ecx
push str.EXEC_WZ_SetPlayerKiller__s__s__s__s__d
push 0x446e50
call fcn.0041ad10
add esp, 0x1c
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40a54c
mov ax, word [edi + 6]
xorps xmm0, xmm0
push dword [edi + 0x14]
movq qword [ebp - 0x6333], xmm0
mov word [ebp - 0x632e], ax
mov al, byte [edi + 0x19]
mov word [ebp - 0x632b], 0
mov byte [ebp - 0x632b], al
mov al, byte [edi + 0x1a]
mov byte [ebp - 0x632a], al
movzx eax, byte [edi + 0x18]
push eax
lea eax, [edi + 8]
mov byte [ebp - 0x6329], 0
push eax
push str.SELECT__FROM_EventEntryCount_WHERE_Name_s_and_Type_d_and_EntryCount____d
push 0x446e50
mov dword [ebp - 0x6334], 0x21f70cc1
mov byte [ebp - 0x632c], 1
call fcn.0041ad10
add esp, 0x14
test al, al
je 0x40da8a
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40da8a
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ax, word [edi + 4]
mov word [ebp - 0x6330], ax
lea eax, [ebp - 0x6334]
push 0xc
push eax
push esi
mov byte [ebp - 0x632c], 0
call fcn.0041c350
jmp case.0x407424.1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ax, word [edi + 4]
mov word [ebp - 0x6330], ax
lea eax, [ebp - 0x6334]
push 0xc
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
movzx eax, byte [edi + 0xf]
push eax
push ecx
push str.SELECT__FROM_EventEntryCount_WHERE_Name_s_and_Type_d
push 0x446e50
call fcn.0041ad10
add esp, 0x10
test al, al
je 0x40db35
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40db35
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
movzx eax, byte [ecx + 0xf]
push eax
lea eax, [ecx + 4]
push eax
push str.Update_EventEntryCount_SET_EntryCountEntryCount1_WHERE_Name___s_and_Type___d
push 0x446e50
call fcn.0041ad10
add esp, 0x10
jmp 0x40f2ee
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
push 1
movzx eax, byte [ecx + 0xf]
push eax
lea eax, [ecx + 4]
push eax
push str.INSERT_INTO_EventEntryCount__Name_Type_EntryCount__VALUES___s__d__d_
jmp 0x40f2e1
lea eax, [edi + 6]
push eax
movzx eax, word [edi + 0x12]
push eax
push str.UPDATE_Character_SET_CustomFlag_d_WHERE_name_s
jmp 0x40a53f
movzx eax, word [edi + 0x12]
xorps xmm0, xmm0
push eax
lea eax, [edi + 6]
movq qword [ebp - 0x631f], xmm0
push eax
mov dword [ebp - 0x6320], 0x24f70ac1
push str.SELECT__FROM_CustomFlag_WHERE_Name_s_and_FlagNumber_d
push 0x446e50
mov word [ebp - 0x6318], 0
call fcn.0041ad10
add esp, 0x10
test al, al
je 0x40dbf3
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40dbf3
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x6318], 1
jmp 0x40dc0d
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, word [edi + 4]
mov word [ebp - 0x631c], ax
movzx eax, word [edi + 0x12]
mov word [ebp - 0x631a], ax
lea eax, [ebp - 0x6320]
push 0xa
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
movzx eax, word [edi + 0x12]
lea ecx, [edi + 6]
push eax
push ecx
push str.SELECT__FROM_CustomFlag_WHERE_Name_s_and_FlagNumber_d
push 0x446e50
call fcn.0041ad10
add esp, 0x10
test al, al
je 0x40dc6c
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x40a54c
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
movzx eax, word [ecx + 0x12]
push eax
lea eax, [ecx + 6]
push eax
push str.INSERT_INTO_CustomFlag__Name_FlagNumber__VALUES___s__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x10
jmp 0x40f2ee
movzx eax, word [edi + 0x10]
push eax
push ecx
push str.SELECT__FROM_CustomCommandDelay_WHERE_Name_s_and_Command_d
push 0x446e50
call fcn.0041ad10
add esp, 0x10
test al, al
je 0x40dd18
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40dd18
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
movzx eax, word [ecx + 0x10]
push eax
lea eax, [ecx + 4]
push eax
push dword [ecx + 0x14]
push str.Update_CustomCommandDelay_SET_Delay_d_WHERE_Name___s_and_Command___d
jmp 0x40f2e1
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov eax, dword [ebp - 0x630c]
push dword [eax + 0x14]
movzx eax, word [eax + 0x10]
push eax
push dword [ebp - 0x6344]
push str.INSERT_INTO_CustomCommandDelay__Name_Command_Delay__VALUES___s__d__d_
jmp 0x40f2e1
mov ax, word [ecx]
xorps xmm0, xmm0
mov word [ebp - 0x630a], ax
lea eax, [edi + 6]
push eax
push str.SELECT__FROM_CustomCommandDelay_WHERE_Name_s
push 0x446e50
movq qword [ebp - 0x6333], xmm0
mov byte [ebp - 0x6321], 0
mov dword [ebp - 0x6308], 0xa
mov byte [ebp - 0x6302], 0
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40de59
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLFetch]
call edi
cmp ax, 0x64
je 0x40de59
nop word [eax + eax]
cmp byte [ebp - 0x6302], 0x64
ja 0x40de59
push str.Command
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40dde0
or eax, eax
jmp 0x40ddf1
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.Delay
mov word [ebp - 0x6320], ax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40de0b
or edx, eax
jmp 0x40de1e
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov edx, eax
mov eax, dword [ebp - 0x6308]
mov ecx, dword [ebp - 0x6320]
push dword [0x446e5c]
inc byte [ebp - 0x6302]
mov dword [ebp + eax - 0x848], ecx
mov dword [ebp + eax - 0x844], edx
add eax, 8
mov dword [ebp - 0x6308], eax
call edi
cmp ax, 0x64
jne 0x40ddc0
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x6308]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x847], al
mov al, byte [ebp - 0x632f]
mov byte [ebp - 0x843], al
mov ax, word [ebp - 0x630a]
mov word [ebp - 0x842], ax
mov al, byte [ebp - 0x6302]
mov byte [ebp - 0x840], al
mov al, byte [ebp - 0x6321]
mov byte [ebp - 0x83f], al
lea eax, [ebp - 0x848]
push ecx
push eax
push esi
mov byte [ebp - 0x848], 0xc2
mov byte [ebp - 0x846], cl
mov word [ebp - 0x845], 0x27f7
call fcn.0041c350
jmp case.0x407424.1
mov esi, dword [ecx]
test esi, esi
je case.0x407424.1
mov eax, dword [0x446b50]
mov edx, dword [0x446b54]
cmp eax, edx
je 0x40df07
cmp dword [eax], esi
je case.0x407424.1
add eax, 4
cmp eax, edx
jne 0x40def8
cmp edx, dword [0x446b58]
je 0x40df1f
mov eax, esi
mov dword [edx], eax
add dword [0x446b54], 4
jmp case.0x407424.1
push ecx
push edx
mov ecx, 0x446b50
call fcn.00419ef0
jmp case.0x407424.1
movzx eax, word [ecx]
xorps xmm0, xmm0
mov edx, dword [0x446b54]
movq qword [ebp - 0x6333], xmm0
mov word [ebp - 0x6330], ax
movzx eax, word [edi + 6]
mov word [ebp - 0x632e], ax
mov eax, dword [0x446b50]
mov word [ebp - 0x632b], 0
mov byte [ebp - 0x6329], 0
mov dword [ebp - 0x6334], 0x29f70cc1
cmp eax, edx
je 0x40dfb0
mov edi, dword [eax]
lea ecx, [eax + 4]
sub edx, ecx
push edx
push ecx
push eax
call fcn.00420a60
sub dword [0x446b54], 4
add esp, 0xc
test edi, edi
je 0x40dfb0
push 0xc
lea eax, [ebp - 0x6334]
mov dword [ebp - 0x632c], edi
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
push str.EXEC_WZ_GetItemSerial
push 0x446e50
call fcn.0041ad10
add esp, 8
test al, al
je 0x40e019
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40e019
push 0x447a7e
call fcn.0042417e
add esp, 4
mov dword [ebp - 0x632c], eax
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [ebp - 0x6334]
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [ebp - 0x6334]
mov dword [ebp - 0x632c], 0
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
lea eax, [edi + 6]
push eax
movzx eax, word [edi + 0x12]
push eax
push str.UPDATE_Character_SET_CustomSkin_d_WHERE_name_s
jmp 0x40a53f
movzx eax, word [edi + 0x12]
xorps xmm0, xmm0
push eax
lea eax, [edi + 6]
movq qword [ebp - 0x631f], xmm0
push eax
mov dword [ebp - 0x6320], 0x2bf70ac1
push str.SELECT__FROM_CustomSkin_WHERE_Name_s_and_SkinNumber_d
jmp 0x40dba4
movzx eax, word [edi + 0x12]
lea ecx, [edi + 6]
push eax
push ecx
push str.SELECT__FROM_CustomSkin_WHERE_Name_s_and_SkinNumber_d
push 0x446e50
call fcn.0041ad10
add esp, 0x10
test al, al
je 0x40e0c1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x40a54c
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
movzx eax, word [ecx + 0x12]
push eax
lea eax, [ecx + 6]
push eax
push str.INSERT_INTO_CustomSkin__Name_SkinNumber__VALUES___s__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x10
jmp 0x40f2ee
push ecx
push str.SELECT__FROM_ArcaBattleRegSign_WHERE_GuildName_s
push 0x446e50
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40e172
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40e172
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
push dword [ebp - 0x6344]
push dword [ecx + 0x10]
push str.Update_ArcaBattleRegSign_SET_MarkCountMarkCount_d_WHERE_GuildName___s
push 0x446e50
call fcn.0041ad10
add esp, 0x10
jmp 0x40f2ee
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
push dword [ecx + 0x10]
lea eax, [ecx + 4]
push eax
push str.INSERT_INTO_ArcaBattleRegSign__GuildName_MarkCount_RegDate__VALUES___s__d_getdate___
push 0x446e50
call fcn.0041ad10
add esp, 0x10
jmp 0x40f2ee
mov ax, word [ecx]
xorps xmm0, xmm0
push str.EXEC_WZ_ArcaBattleTopRankSelect
push 0x446e50
movq qword [ebp - 0x6333], xmm0
xor edi, edi
mov word [ebp - 0x632b], 0
mov byte [ebp - 0x6329], 0
mov dword [ebp - 0x6308], 0xc
mov word [ebp - 0x630a], ax
call fcn.0041ad10
add esp, 8
test al, al
je 0x40e2c6
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40e2c6
lea edi, [ebp - 0x83c]
xor esi, esi
nop dword [eax]
push str.GUILD_NAME
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40e243
xorps xmm0, xmm0
mov byte [ebp - 0x6278], 0
movq qword [ebp - 0x6280], xmm0
jmp 0x40e25f
shl eax, 0xd
push 8
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x6280]
push 9
push eax
call fcn.0042752d
add esp, 0x10
push str.MARK_COUNT
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40e272
or eax, eax
jmp 0x40e283
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push dword [0x446e5c]
add dword [ebp - 0x6308], 0x10
inc esi
mov dword [ebp - 0x6274], eax
movups xmm0, xmmword [ebp - 0x6280]
movups xmmword [edi], xmm0
add edi, 0x10
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x40e220
mov dword [ebp - 0x631c], esi
mov esi, dword [ebp - 0x6328]
mov edi, dword [ebp - 0x631c]
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x6308]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x847], al
mov al, byte [ebp - 0x632f]
mov byte [ebp - 0x843], al
mov ax, word [ebp - 0x630a]
mov word [ebp - 0x842], ax
lea eax, [ebp - 0x848]
push ecx
push eax
push esi
mov byte [ebp - 0x848], 0xc2
mov byte [ebp - 0x846], cl
mov word [ebp - 0x845], 0x31f7
mov dword [ebp - 0x840], edi
call fcn.0041c350
jmp case.0x407424.1
mov ax, word [ecx]
xorps xmm0, xmm0
movq qword [ebp - 0x6333], xmm0
mov word [ebp - 0x6330], ax
lea eax, [edi + 6]
push eax
push str.SELECT_top_1_MarkCount_FROM_ArcaBattleRegSign_WHERE_GuildName_s
mov word [ebp - 0x632b], 0
mov byte [ebp - 0x6329], 0
push 0x446e50
mov dword [ebp - 0x6334], 0x32f70cc1
mov dword [ebp - 0x632c], 0
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40e3c9
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40e3c9
push str.MarkCount
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40e3b2
or eax, eax
jmp 0x40e3c3
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov dword [ebp - 0x632c], eax
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [ebp - 0x6334]
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
push str.DELETE_FROM_ArcaBattleRegSign
push 0x446e50
call fcn.0041ad10
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
add esp, 8
push dword [0x446e5c]
call esi
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push str.DELETE_FROM_ArcaBattleWinner
push 0x446e50
call fcn.0041ad10
add esp, 8
push dword [0x446e5c]
call esi
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp dword [edi + 4], 0
lea esi, [edi + 4]
mov dword [ebp - 0x631c], 0
jbe case.0x407424.1
add edi, 0xc
movzx eax, word [edi - 2]
push eax
movzx eax, word [edi - 4]
push eax
push edi
push str.INSERT_INTO_ArcaBattleWinner_Guild_ObeliskGroup_ObeliskAttribute__VALUES___s__d__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x14
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x631c]
add edi, 0xe
inc eax
mov dword [ebp - 0x631c], eax
cmp eax, dword [esi]
jb 0x40e467
jmp case.0x407424.1
xorps xmm0, xmm0
mov word [ebp - 0x632b], 0
push str.Select_top_3__from_ArcaBattleWinner
push 0x446e50
movq qword [ebp - 0x6333], xmm0
xor edi, edi
mov byte [ebp - 0x6329], 0
mov dword [ebp - 0x6308], 0xc
call fcn.0041ad10
add esp, 8
test al, al
je 0x40e5fe
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40e5fe
lea edi, [ebp - 0x83c]
xor esi, esi
push str.Guild
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40e539
xorps xmm0, xmm0
mov byte [ebp - 0x6234], 0
movq qword [ebp - 0x623c], xmm0
jmp 0x40e555
shl eax, 0xd
push 8
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x623c]
push 9
push eax
call fcn.0042752d
add esp, 0x10
push str.ObeliskGroup
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40e568
or eax, eax
jmp 0x40e579
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ObeliskAttribute
mov word [ebp - 0x6240], ax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40e593
or eax, eax
jmp 0x40e5a4
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push dword [0x446e5c]
add dword [ebp - 0x6308], 0xe
inc esi
mov word [ebp - 0x623e], ax
movq xmm0, qword [ebp - 0x6240]
mov eax, dword [ebp - 0x6238]
movq qword [edi], xmm0
mov dword [edi + 8], eax
mov ax, word [ebp - 0x6234]
mov word [edi + 0xc], ax
add edi, 0xe
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x40e516
mov dword [ebp - 0x631c], esi
mov esi, dword [ebp - 0x6328]
mov edi, dword [ebp - 0x631c]
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x6308]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x847], al
mov ax, word [ebp - 0x632f]
mov word [ebp - 0x843], ax
mov al, byte [ebp - 0x632d]
mov byte [ebp - 0x841], al
lea eax, [ebp - 0x848]
push ecx
push eax
push esi
mov byte [ebp - 0x848], 0xc2
mov byte [ebp - 0x846], cl
mov word [ebp - 0x845], 0x34f7
mov dword [ebp - 0x840], edi
call fcn.0041c350
jmp case.0x407424.1
mov ax, word [ecx]
xorps xmm0, xmm0
mov word [ebp - 0x630a], ax
lea eax, [edi + 6]
push eax
push str.SELECT__FROM_CustomItemBank_WHERE_AccountID_s
push 0x446e50
movq qword [ebp - 0x6333], xmm0
mov byte [ebp - 0x6321], 0
mov dword [ebp - 0x6308], 0xa
mov byte [ebp - 0x6302], 0
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40e7a3
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLFetch]
call edi
cmp ax, 0x64
je 0x40e7a3
nop word [eax + eax]
cmp byte [ebp - 0x6302], 0x64
ja 0x40e7a3
push str.ItemIndex
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40e700
or eax, eax
jmp 0x40e711
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemLevel
mov word [ebp - 0x6320], ax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40e72b
or eax, eax
jmp 0x40e73c
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ItemCount
mov byte [ebp - 0x631e], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40e755
or edx, eax
jmp 0x40e768
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov edx, eax
mov eax, dword [ebp - 0x6308]
mov ecx, dword [ebp - 0x6320]
push dword [0x446e5c]
inc byte [ebp - 0x6302]
mov dword [ebp + eax - 0x1048], ecx
mov dword [ebp + eax - 0x1044], edx
add eax, 8
mov dword [ebp - 0x6308], eax
call edi
cmp ax, 0x64
jne 0x40e6e0
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x6308]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x1047], al
mov al, byte [ebp - 0x632f]
mov byte [ebp - 0x1043], al
mov ax, word [ebp - 0x630a]
mov word [ebp - 0x1042], ax
mov al, byte [ebp - 0x6302]
mov byte [ebp - 0x1040], al
mov al, byte [ebp - 0x6321]
mov byte [ebp - 0x103f], al
lea eax, [ebp - 0x1048]
push ecx
push eax
push esi
mov byte [ebp - 0x1046], cl
mov word [ebp - 0x1045], 0x35f7
mov byte [ebp - 0x1048], 0xc2
call fcn.0041c350
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.004152d0
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.00415470
jmp case.0x407424.1
movzx eax, byte [edi + 0x11]
lea ecx, [edi + 6]
push eax
push ecx
xorps xmm0, xmm0
movq qword [ebp - 0x631f], xmm0
push str.SELECT__FROM_CustomLuckyWheel_WHERE_AccountID_s_and_WheelType_d_and_Amount___0
push 0x446e50
mov word [ebp - 0x6318], 0
mov dword [ebp - 0x6320], 0x38f70ac1
call fcn.0041ad10
add esp, 0x10
test al, al
je 0x40e8fe
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40e8fe
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
movzx eax, byte [ecx + 0x11]
push eax
lea eax, [ecx + 6]
push eax
push str.UPDATE_CustomLuckyWheel_SET_AmountAmount_1_WHERE_AccountID_s_and_WheelType_d_and_Amount___0
push 0x446e50
call fcn.0041ad10
add esp, 0x10
push dword [0x446e5c]
call edi
push 2
push dword [0x446e5c]
call esi
mov edi, dword [ebp - 0x630c]
mov esi, dword [ebp - 0x6328]
mov byte [ebp - 0x6318], 1
jmp 0x40e918
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, word [edi + 4]
mov word [ebp - 0x631c], ax
movzx eax, byte [edi + 0x11]
mov word [ebp - 0x631a], ax
lea eax, [ebp - 0x6320]
push 0xa
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
movzx eax, byte [edi + 0x11]
xorps xmm0, xmm0
push eax
lea eax, [edi + 6]
movq qword [ebp - 0x6333], xmm0
push eax
push str.SELECT__FROM_CustomLuckyWheel_WHERE_AccountID_s_and_WheelType_d
mov word [ebp - 0x632b], 0
mov byte [ebp - 0x6329], 0
push 0x446e50
mov dword [ebp - 0x6334], 0x39f70cc1
mov dword [ebp - 0x632c], 0
call fcn.0041ad10
add esp, 0x10
test al, al
je 0x40e9cc
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40e9cc
push str.Amount
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40e9b5
or eax, eax
jmp 0x40e9c6
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov dword [ebp - 0x632c], eax
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, word [edi + 4]
mov word [ebp - 0x6330], ax
movzx eax, byte [edi + 0x11]
mov word [ebp - 0x632e], ax
lea eax, [ebp - 0x6334]
push 0xc
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
push ecx
push str.SELECT_memb___id_FROM_MEMB_INFO_WHERE_memb___id_s
push 0x446e50
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40a54c
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a54c
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call edi
mov ecx, dword [ebp - 0x630c]
xorps xmm0, xmm0
mov esi, dword [sym.imp.ODBC32.dll_SQLBindParameter]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x20], 0
movq xmm0, qword [ecx + 0x41]
push 0x50fc10
movq qword [ebp - 0x2c], xmm0
mov eax, dword [ecx + 0x49]
push 0
mov dword [ebp - 0x24], eax
mov al, byte [ecx + 0x4d]
mov byte [ebp - 0x20], al
lea eax, [ecx + 0xf]
push eax
push 0
push 0x32
push 0xc
push 1
push 1
push 1
push dword [0x446e5c]
mov dword [0x50fc10], 0xfffffffd
call esi
push 0x50fc14
push 0
lea eax, [ebp - 0x2c]
mov dword [0x50fc14], 0xfffffffd
push eax
push 0
push 0xd
push 0xc
push 1
push 1
push 2
push dword [0x446e5c]
call esi
push dword [ebp - 0x6344]
push str.Update_MEMB_INFO_SET_mail_chek__1__mail_addr__sno__numb__where_memb___id_s
push 0x446e50
call fcn.0041ad10
add esp, 0xc
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call edi
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.00415750
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.00415930
jmp case.0x407424.1
lea eax, [edi + 8]
push eax
push str.SELECT__FROM_CustomBattlePassData_WHERE_Name_s
push 0x446e50
mov dword [ebp - 0x631c], eax
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40eba8
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40eba8
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov eax, dword [ebp - 0x6344]
push dword [ebp - 0x631c]
push dword [eax]
push str.Update_CustomBattlePassData_SET_StarCountStarCount_d_WHERE_Name___s
push 0x446e50
call fcn.0041ad10
add esp, 0x10
jmp 0x40f2ee
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov eax, dword [ebp - 0x6344]
push dword [eax]
push dword [ebp - 0x631c]
push str.INSERT_INTO_CustomBattlePassData__Name_StarCount__VALUES___s__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x10
jmp 0x40f2ee
push 0x27
lea eax, [ebp - 0x621f]
push 0
push eax
call fcn.0041f490
mov ax, word [edi + 4]
add esp, 0xc
mov word [ebp - 0x621c], ax
xorps xmm0, xmm0
mov al, byte [edi + 7]
mov byte [ebp - 0x6219], al
mov al, byte [edi + 6]
mov byte [ebp - 0x621a], al
movzx eax, al
push eax
lea eax, [edi + 8]
mov dword [ebp - 0x6220], 0x44f728c1
push eax
push str.SELECT__FROM_CustomDailyReward_WHERE_AccountID_s_and_Month_d
push 0x446e50
movups xmmword [ebp - 0x6218], xmm0
movups xmmword [ebp - 0x6208], xmm0
call fcn.0041ad10
add esp, 0x10
test al, al
je 0x40ecae
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLFetch]
call edi
cmp ax, 0x64
je 0x40ecae
nop dword [eax + eax]
push 0x44098c
call fcn.0041af60
cmp eax, 0xffffffff
je 0x40eca0
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
lea ecx, [eax - 1]
cmp ecx, 0x1f
ja 0x40eca0
mov byte [ebp + eax - 0x6219], 1
push dword [0x446e5c]
call edi
cmp ax, 0x64
jne 0x40ec70
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, byte [ebp - 0x621f]
push eax
lea eax, [ebp - 0x6220]
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.00415b10
jmp case.0x407424.1
mov edx, esi
mov ecx, edi
call fcn.00416010
jmp case.0x407424.1
cmp byte [edi + 5], 0
mov dword [ebp - 0x631c], 0
jbe case.0x407424.1
lea esi, [edi + 0x11]
nop word [eax + eax]
push dword [esi - 0xb]
push str.SELECT_ItemSerial_FROM_CustomExclusiveGlow_WHERE_ItemSerial_d
push 0x446e50
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40ed9b
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40ed9b
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [esi - 0xb]
movzx eax, byte [esi + 1]
push eax
movzx eax, byte [esi]
push eax
movzx eax, byte [esi - 1]
push eax
movzx eax, byte [esi - 2]
push eax
movzx eax, byte [esi - 3]
push eax
movzx eax, byte [esi - 4]
push eax
movzx eax, byte [esi - 5]
push eax
movzx eax, byte [esi - 6]
push eax
movzx eax, byte [esi - 7]
push eax
push str.UPDATE_CustomExclusiveGlow_SET_SkinR_d_SkinG_d_SkinB_d_SkinA_d_GlowR_d_GlowG_d_GlowB_d_GlowA_d_Bright_d_WHERE_ItemSerial_d
jmp 0x40ede9
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, byte [esi + 1]
push eax
movzx eax, byte [esi]
push eax
movzx eax, byte [esi - 1]
push eax
movzx eax, byte [esi - 2]
push eax
movzx eax, byte [esi - 3]
push eax
movzx eax, byte [esi - 4]
push eax
movzx eax, byte [esi - 5]
push eax
movzx eax, byte [esi - 6]
push eax
movzx eax, byte [esi - 7]
push eax
push dword [esi - 0xb]
push str.INSERT_INTO_CustomExclusiveGlow__ItemSerial_SkinR_SkinG_SkinB_SkinA_GlowR_GlowG_GlowB_GlowA_Bright__VALUES___d__d__d__d__d__d__d__d__d__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x30
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x631c]
add esi, 0x10
movzx eax, byte [edi + 5]
inc ecx
mov dword [ebp - 0x631c], ecx
cmp ecx, eax
jl 0x40ed20
jmp case.0x407424.1
push dword [ecx]
push str.SELECT_ItemSerial_FROM_CustomExclusiveGlow_WHERE_ItemSerial_d
push 0x446e50
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40eecf
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40eecf
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
mov eax, dword [ebp - 0x6344]
push dword [eax]
movzx eax, byte [ecx + 0x10]
push eax
movzx eax, byte [ecx + 0xf]
push eax
movzx eax, byte [ecx + 0xe]
push eax
movzx eax, byte [ecx + 0xd]
push eax
movzx eax, byte [ecx + 0xc]
push eax
movzx eax, byte [ecx + 0xb]
push eax
movzx eax, byte [ecx + 0xa]
push eax
movzx eax, byte [ecx + 9]
push eax
movzx eax, byte [ecx + 8]
push eax
push str.UPDATE_CustomExclusiveGlow_SET_SkinR_d_SkinG_d_SkinB_d_SkinA_d_GlowR_d_GlowG_d_GlowB_d_GlowA_d_Bright_d_WHERE_ItemSerial_d
push 0x446e50
call fcn.0041ad10
add esp, 0x30
jmp 0x40f2ee
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 0x630c]
movzx eax, byte [ecx + 0x10]
push eax
movzx eax, byte [ecx + 0xf]
push eax
movzx eax, byte [ecx + 0xe]
push eax
movzx eax, byte [ecx + 0xd]
push eax
movzx eax, byte [ecx + 0xc]
push eax
movzx eax, byte [ecx + 0xb]
push eax
movzx eax, byte [ecx + 0xa]
push eax
movzx eax, byte [ecx + 9]
push eax
movzx eax, byte [ecx + 8]
push eax
push dword [ecx + 4]
push str.INSERT_INTO_CustomExclusiveGlow__ItemSerial_SkinR_SkinG_SkinB_SkinA_GlowR_GlowG_GlowB_GlowA_Bright__VALUES___d__d__d__d__d__d__d__d__d__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x30
jmp 0x40f2ee
push dword [ecx]
push str.DELETE_FROM_CustomExclusiveGlow_WHERE_ItemSerial_d
push 0x446e50
call fcn.0041ad10
add esp, 0xc
jmp 0x40a54c
mov edx, esi
call fcn.00416330
jmp case.0x407424.1
movzx eax, word [ecx]
push eax
push str.SELECT__FROM_CustomGuildReign_WHERE_Map_d
push 0x446e50
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40f001
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40f001
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov eax, dword [ebp - 0x630c]
push 0x50fc10
push 0
add eax, 0xf
mov dword [0x50fc10], 0x20
push eax
push 0
push 0x20
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov ecx, dword [ebp - 0x6344]
movzx eax, word [ecx]
push eax
mov eax, dword [ebp - 0x630c]
push dword [eax + 0x30]
add eax, 6
push eax
push str.Update_CustomGuildReign_SET_Guild_s_Mark__LastConquergetdate___ConquerTime2_d_ConquerCountConquerCount1_WHERE_Map___d
jmp 0x40f2e1
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov eax, dword [ebp - 0x630c]
push 0x50fc10
push 0
add eax, 0xf
mov dword [0x50fc10], 0x20
push eax
push 0
push 0x20
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov eax, dword [ebp - 0x630c]
push dword [eax + 0x30]
add eax, 6
push eax
mov eax, dword [ebp - 0x6344]
movzx eax, word [eax]
push eax
push str.INSERT_INTO_CustomGuildReign__Map_Guild_Mark_ConquerTime2_ConquerCount__VALUES___d__s____d_1_
jmp 0x40f2e1
movzx eax, word [ecx]
push eax
push dword [edi + 8]
push str.Update_CustomGuildReign_SET_ConquerTime2_d_WHERE_Map___d
jmp 0x40a53f
push 0x39
lea eax, [ebp - 0x62db]
push 0
push eax
call fcn.0041f490
mov word [ebp - 0x62dc], 0x3ac1
lea ecx, [edi + 6]
mov byte [ebp - 0x62da], 0xf8
add esp, 0xc
movzx eax, word [edi + 4]
mov word [ebp - 0x62d8], ax
movq xmm0, qword [ecx]
movq qword [ebp - 0x62d6], xmm0
movzx eax, word [ecx + 8]
push ecx
mov word [ebp - 0x62ce], ax
mov al, byte [ecx + 0xa]
push str.SELECT__FROM_CustomStore_WHERE_Name_s
push 0x446e50
mov byte [ebp - 0x62cc], al
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40a54c
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a54c
push str.Active
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40f119
or eax, eax
jmp 0x40f12a
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.Type
mov word [ebp - 0x62ca], ax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40f144
or eax, eax
jmp 0x40f155
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.StoreName
mov word [ebp - 0x62c8], ax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40f188
xorps xmm0, xmm0
mov dword [ebp - 0x62a6], 0
movups xmmword [ebp - 0x62c6], xmm0
movups xmmword [ebp - 0x62b6], xmm0
jmp 0x40f1a4
shl eax, 0xd
push 0x23
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x62c6]
push 0x24
push eax
call fcn.0042752d
add esp, 0x10
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x3a
lea eax, [ebp - 0x62dc]
push eax
push esi
call fcn.0041c350
jmp case.0x407424.1
lea eax, [edi + 6]
push eax
push str.SELECT__FROM_CustomStore_WHERE_Name_s
push 0x446e50
mov dword [ebp - 0x631c], eax
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40f277
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40f277
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov eax, dword [ebp - 0x630c]
push 0x50fc10
push 0
add eax, 0x16
mov dword [0x50fc10], 0xfffffffd
push eax
push 0
push 0x24
push 0xc
push 1
push 1
push 1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov ecx, dword [ebp - 0x630c]
mov eax, dword [ebp - 0x631c]
push eax
movzx eax, word [ecx + 0x14]
push eax
movzx eax, word [ecx + 0x12]
push eax
push str.Update_CustomStore_SET_Active___d__Type___d__StoreName____WHERE_Name___s
jmp 0x40f2e1
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
mov eax, dword [ebp - 0x630c]
push 0x50fc10
push 0
add eax, 0x16
mov dword [0x50fc10], 0xfffffffd
push eax
push 0
push 0x24
push 0xc
push 1
push 1
push 1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov ecx, dword [ebp - 0x630c]
movzx eax, word [ecx + 0x14]
push eax
movzx eax, word [ecx + 0x12]
push eax
lea eax, [ecx + 6]
push eax
push str.INSERT_INTO_CustomStore__Name_Active_Type_StoreName__VALUES___s__d__d___
push 0x446e50
call fcn.0041ad10
add esp, 0x14
push dword [0x446e5c]
call edi
push 2
push dword [0x446e5c]
call esi
jmp 0x40f310
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
pop esi
call fcn.0041dc7d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret