Function at 0x407070
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, 0x1864
call fcn.00430070
mov eax, dword [0x44000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 8]
push esi
push edi
mov byte [ebp - 0x176d], dl
mov dword [ebp - 0x1758], ecx
mov dword [ebp - 0x1754], eax
jmp 0x4070c1
mov esi, dword [ebp - 0x1758]
imul edi, esi, 0x68
mov dword [ebp - 0x175c], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x5d3a9c], eax
movzx eax, byte [ebp - 0x176d]
cmp eax, 0xfb
ja case.0x407297.1
movzx eax, byte [eax + 0x40c954]
jmp dword [eax*4 + 0x40c858]
push str.SELECT_ItemCount_FROM_GameServerInfo_WHERE_Number0
push 0x440e30
mov dword [ebp - 0x18], 0x10008c1
mov dword [ebp - 0x14], 0
call fcn.00416550
add esp, 8
test al, al
je 0x407175
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407175
push str.ItemCount
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x407145
or eax, eax
jmp 0x407156
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push dword [0x440e3c]
mov dword [ebp - 0x14], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x4071bd
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
push str.INSERT_INTO_GameServerInfo__Number_ItemCount_ZenCount_AceItemCount__VALUES__0_0_0_0_
push 0x440e30
call fcn.00416550
add esp, 8
push dword [0x440e3c]
call edi
push 2
push dword [0x440e3c]
call esi
mov esi, dword [ebp - 0x1758]
push 8
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.00418230
mov eax, dword [ebp - 0x1754]
mov ecx, dword [ebp - 0x175c]
movzx esi, word [eax + 0x38]
movzx edi, word [eax + 4]
lea ecx, [ecx + 0x5d3a60]
add eax, 6
push eax
push 0x32
push ecx
call fcn.0041ce7d
mov ecx, dword [ebp - 0x175c]
add esp, 0xc
push esi
push edi
lea eax, [ecx + 0x5d3a60]
mov word [ecx + 0x5d3a92], di
push eax
push dword [ecx + 0x5d3a3c]
mov word [ecx + 0x5d3a94], si
push str._ServerManager___d__ServerInfo___s____d____d_
push 0
call fcn.00419050
add esp, 0x18
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1754]
mov edx, esi
call fcn.0040d550
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1754]
mov edx, esi
call fcn.0040dc00
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1754]
mov edx, esi
call fcn.0040e300
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1754]
mov edx, esi
call fcn.0040e8a0
jmp case.0x407297.1
mov esi, dword [ebp - 0x1754]
cmp byte [esi], 0xc1
jne 0x407281
mov al, byte [esi + 3]
jmp 0x407284
mov al, byte [esi + 4]
movzx eax, al
cmp eax, 0x30
ja case.0x407297.1
movzx eax, byte [eax + 0x40ca64]
jmp dword [eax*4 + 0x40ca50]
mov ecx, dword [ebp - 0x1758]
push ecx
push esi
call fcn.00419200
jmp case.0x407297.1
movzx eax, word [esi + 4]
add esi, 6
mov word [ebp - 0xf4a], ax
push esi
push str.SELECT_G_Name_from_Guild_WHERE_G_Name___s
movzx eax, word [esi + 8]
movq xmm0, qword [esi]
mov word [ebp - 0xf40], ax
mov al, byte [esi + 0xa]
push 0x440e30
mov dword [ebp - 0xf50], 0x5200fc2
mov byte [ebp - 0xf4c], 0x10
movq qword [ebp - 0xf48], xmm0
mov byte [ebp - 0xf3e], al
call fcn.00416550
add esp, 0xc
test al, al
je 0x4073fb
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4073fb
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push esi
push str.SELECT_Warehouse__Money_from_Guild_WHERE_G_Name___s
push 0x440e30
call fcn.00416550
add esp, 0xc
test al, al
je 0x4073c1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4073c1
push str.Money
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40737b
or eax, eax
or edx, 0xffffffff
jmp 0x40738c
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422114
add esp, 4
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0xf3d]
push 0xf00
push eax
push str.Warehouse
mov dword [ebp - 0x34], edx
call fcn.00416810
push dword [0x440e3c]
call edi
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call eax
jmp 0x407415
push dword [0x440e3c]
call edi
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call eax
push 0xf00
lea eax, [ebp - 0xf3d]
push 0xff
push eax
call fcn.0041b490
xorps xmm0, xmm0
add esp, 0xc
movlpd qword [ebp - 0x38], xmm0
jmp 0x407415
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1758]
lea eax, [ebp - 0xf50]
push 0xf20
push eax
push ecx
call fcn.00418230
jmp case.0x407297.1
push 0x5d1bf4
push 0
lea eax, [esi + 0x13]
mov dword [0x5d1bf4], 0xf00
push eax
push 0
push 0xf00
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
lea eax, [esi + 8]
push eax
push dword [esi + 0xf1c]
push dword [esi + 0xf18]
push str.UPDATE_Guild_SET_Warehouse___Money_I64d_WHERE_G_Name_s
push 0x440e30
call fcn.00416550
add esp, 0x14
jmp 0x40a10c
cmp dword [esi + 0xf1c], 0
lea eax, [esi + 0x13]
push 0x5d1bf4
push 0
push eax
push 0
push 0xf00
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
lea edi, [esi + 8]
mov dword [0x5d1bf4], 0xf00
push 1
push dword [0x440e3c]
mov dword [ebp - 0x175c], edi
jne 0x4074e6
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push edi
push dword [esi + 0xf14]
push str.UPDATE_warehouse_SET_Items__Money_d_WHERE_AccountID_s
push 0x440e30
call fcn.00416550
add esp, 0x10
jmp 0x40750b
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [esi + 0xf1c]
push edi
push dword [esi + 0xf14]
push str.UPDATE_ExtWarehouse_SET_Items__Money_d_WHERE_AccountID_s_AND_Number_d
push 0x440e30
call fcn.00416550
add esp, 0x14
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov ecx, dword [ebp - 0x1754]
push dword [ebp - 0x175c]
push dword [ecx + 0xf18]
push str.UPDATE_warehouse_SET_pw_d_WHERE_AccountID_s
push 0x440e30
call fcn.00416550
add esp, 0x10
push dword [0x440e3c]
call edi
push 2
push dword [0x440e3c]
call esi
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1754]
mov edx, esi
call fcn.0040f880
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1754]
mov edx, esi
call fcn.0040fa40
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1754]
mov edx, esi
call fcn.0040fc70
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1754]
lea edi, [ecx + 0x11]
mov word [ebp - 0x1740], 0x1ec1
mov byte [ebp - 0x173e], 0xa
movzx eax, word [ecx + 4]
movq xmm0, qword [ecx + 6]
mov word [ebp - 0x173c], ax
movzx eax, word [ecx + 0xe]
mov word [ebp - 0x1732], ax
mov al, byte [ecx + 0x10]
mov byte [ebp - 0x1730], al
movzx eax, word [edi + 8]
mov word [ebp - 0x1727], ax
mov al, byte [edi + 0xa]
movq qword [ebp - 0x173a], xmm0
movq xmm0, qword [edi]
mov byte [ebp - 0x1725], al
xor eax, eax
movq qword [ebp - 0x172f], xmm0
mov cl, byte [eax + edi]
cmp cl, 0x20
je 0x407661
cmp cl, 0x22
je 0x407661
cmp cl, 0x27
je 0x407661
inc eax
cmp eax, 0xb
jl 0x407601
mov esi, dword [0x440a40]
cmp esi, dword [0x440a44]
je 0x407640
push esi
push edi
call fcn.0041ac30
add esp, 8
test eax, eax
jne 0x407661
add esi, 0x20
cmp esi, dword [0x440a44]
jne 0x407627
mov ecx, dword [ebp - 0x1758]
lea eax, [ebp - 0x1740]
push 0x1e
push eax
push ecx
mov byte [ebp - 0x1724], 0
call fcn.00418230
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1758]
lea eax, [ebp - 0x1740]
push 0x1e
push eax
push ecx
mov byte [ebp - 0x1724], 1
call fcn.00418230
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1754]
movq xmm0, qword [ecx + 6]
lea edx, [ecx + 6]
lea esi, [ecx + 0x11]
movq qword [ebp - 0x1742], xmm0
movq xmm0, qword [esi]
lea edi, [ecx + 0x1c]
movzx eax, word [ecx + 4]
mov word [ebp - 0x1744], ax
movzx eax, word [edx + 8]
mov word [ebp - 0x173a], ax
mov al, byte [edx + 0xa]
mov byte [ebp - 0x1738], al
movzx eax, word [esi + 8]
mov word [ebp - 0x172f], ax
mov al, byte [esi + 0xa]
mov byte [ebp - 0x172d], al
movzx eax, word [edi + 8]
mov word [ebp - 0x1724], ax
mov al, byte [edi + 0xa]
movq qword [ebp - 0x1737], xmm0
movq xmm0, qword [edi]
mov byte [ebp - 0x1722], al
xor eax, eax
mov word [ebp - 0x1748], 0x28c1
mov byte [ebp - 0x1746], 0xb
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], esi
movq qword [ebp - 0x172c], xmm0
nop word [eax + eax]
mov cl, byte [edi + eax]
cmp cl, 0x20
je 0x407800
cmp cl, 0x22
je 0x407800
cmp cl, 0x27
je 0x407800
inc eax
cmp eax, 0xb
jl 0x407720
mov esi, dword [0x440a40]
cmp esi, dword [0x440a44]
je 0x407772
push esi
push edi
call fcn.0041ac30
add esp, 8
test eax, eax
jne 0x407800
add esi, 0x20
cmp esi, dword [0x440a44]
jne 0x407752
mov edx, dword [ebp - 0x14]
push edi
push dword [ebp - 0x24]
push edx
push str.EXEC_WZ_RenameCharacter__s__s__s
push 0x440e30
call fcn.00416550
add esp, 0x14
test al, al
je 0x4077e6
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4077e6
push 0x441a62
call fcn.00422137
add esp, 4
mov byte [ebp - 0x1721], al
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1758]
lea eax, [ebp - 0x1748]
push 0x28
push eax
push ecx
call fcn.00418230
jmp case.0x407297.1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1758]
lea eax, [ebp - 0x1748]
push 0x28
push eax
push ecx
mov byte [ebp - 0x1721], 1
call fcn.00418230
jmp case.0x407297.1
mov eax, dword [ebp - 0x1754]
cmp byte [eax], 0xc1
jne 0x407831
mov cl, byte [eax + 3]
jmp 0x407834
mov cl, byte [eax + 4]
test cl, cl
je 0x40793b
cmp cl, 0x30
jne case.0x407297.1
add eax, 0x11
push eax
push str.SELECT_Name_FROM_QuestKillCount_WHERE_Name_s
push 0x440e30
mov dword [ebp - 0x175c], eax
call fcn.00416550
add esp, 0xc
test al, al
je 0x4078d9
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4078d9
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov eax, dword [ebp - 0x1754]
push dword [ebp - 0x175c]
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 0x440e30
call fcn.00416550
add esp, 0x38
jmp 0x40754d
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov eax, dword [ebp - 0x1754]
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 - 0x175c]
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 0x440e30
call fcn.00416550
add esp, 0x38
jmp 0x40754d
push esi
push eax
call fcn.004168e0
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1754]
cmp byte [ecx], 0xc1
jne 0x407957
mov al, byte [ecx + 3]
jmp 0x40795a
mov al, byte [ecx + 4]
test al, al
je 0x407aaa
cmp al, 0x30
jne case.0x407297.1
lea eax, [ecx + 0x13]
push eax
push str.SELECT_Name_FROM_MasterSkillTree_WHERE_Name_s
push 0x440e30
mov dword [ebp - 0x175c], eax
call fcn.00416550
add esp, 0xc
test al, al
je 0x407a27
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407a27
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov eax, dword [ebp - 0x1754]
push 0x5d1bf4
push 0
add eax, 0x30
mov dword [0x5d1bf4], 0xb4
push eax
push 0
push 0xb4
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov eax, dword [ebp - 0x1754]
push dword [ebp - 0x175c]
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 0x440e30
call fcn.00416550
add esp, 0x1c
jmp 0x40754d
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov eax, dword [ebp - 0x1754]
push 0x5d1bf4
push 0
add eax, 0x30
mov dword [0x5d1bf4], 0xb4
push eax
push 0
push 0xb4
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov eax, dword [ebp - 0x1754]
push dword [eax + 0x2c]
push dword [eax + 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
push dword [ebp - 0x175c]
push str.INSERT_INTO_MasterSkillTree__Name_MasterLevel_MasterPoint_MasterExperience_MasterSkill__VALUES___s__d__d__I64d___
push 0x440e30
call fcn.00416550
add esp, 0x1c
jmp 0x40754d
movzx eax, word [ecx + 4]
movq xmm0, qword [ecx + 6]
mov word [ebp - 0x112], ax
movzx eax, word [ecx + 0xe]
mov word [ebp - 0x108], ax
mov al, byte [ecx + 0x10]
add ecx, 0x11
mov byte [ebp - 0x106], al
push ecx
movq qword [ebp - 0x110], xmm0
movzx eax, word [ecx + 8]
movq xmm0, qword [ecx]
mov word [ebp - 0xfd], ax
mov al, byte [ecx + 0xa]
push str.SELECT__FROM_MasterSkillTree_WHERE_Name_s
push 0x440e30
mov dword [ebp - 0x118], 0xde800c2
mov byte [ebp - 0x114], 0
movq qword [ebp - 0x105], xmm0
mov byte [ebp - 0xfb], al
call fcn.00416550
add esp, 0xc
test al, al
je 0x407c09
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407c09
push str.MasterLevel
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x407b4e
or eax, eax
jmp 0x407b5f
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push str.MasterPoint
mov dword [ebp - 0xf8], eax
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x407b78
or eax, eax
jmp 0x407b89
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push str.MasterExperience
mov dword [ebp - 0xf4], eax
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x407ba5
or eax, eax
or edx, 0xffffffff
jmp 0x407bb6
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422114
add esp, 4
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0xe8]
push 0xb4
push eax
push str.MasterSkill
mov dword [ebp - 0xec], edx
call fcn.00416810
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xe8
lea eax, [ebp - 0x118]
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xb4
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xf8], 0
xorps xmm0, xmm0
mov dword [ebp - 0xf4], 0
push 0xff
push eax
movlpd qword [ebp - 0xf0], xmm0
call fcn.0041b490
add esp, 0xc
lea eax, [ebp - 0x118]
push 0xe8
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1754]
cmp byte [ecx], 0xc1
jne 0x407c82
mov al, byte [ecx + 3]
jmp 0x407c85
mov al, byte [ecx + 4]
movzx eax, al
cmp eax, 0x31
ja case.0x407297.1
movzx eax, byte [eax + 0x40caac]
jmp dword [eax*4 + 0x40ca98]
movzx eax, word [ecx + 4]
movq xmm0, qword [ecx + 6]
mov word [ebp - 0x173c], ax
movzx eax, word [ecx + 0xe]
mov word [ebp - 0x1732], ax
mov al, byte [ecx + 0x10]
add ecx, 0x11
mov byte [ebp - 0x1730], al
push ecx
movq qword [ebp - 0x173a], xmm0
movzx eax, word [ecx + 8]
movq xmm0, qword [ecx]
mov word [ebp - 0x1727], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Status_FROM_EventLeoTheHelper_WHERE_Name_s
push 0x440e30
mov dword [ebp - 0x1740], 0xe1ec1
mov dword [ebp - 0x14], ecx
movq qword [ebp - 0x172f], xmm0
mov byte [ebp - 0x1725], al
call fcn.00416550
add esp, 0xc
test al, al
je 0x407d7c
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407d7c
push str.Status
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x407d37
or eax, eax
jmp 0x407d48
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push dword [0x440e3c]
mov byte [ebp - 0x1724], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1e
lea eax, [ebp - 0x1740]
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
push dword [ebp - 0x14]
push str.INSERT_INTO_EventLeoTheHelper__Name_Status__VALUES___s_0_
push 0x440e30
call fcn.00416550
add esp, 0xc
push dword [0x440e3c]
call edi
push 2
push dword [0x440e3c]
call esi
mov esi, dword [ebp - 0x1758]
lea eax, [ebp - 0x1740]
push 0x1e
push eax
push esi
mov byte [ebp - 0x1724], 0
call fcn.00418230
jmp case.0x407297.1
movzx eax, word [ecx + 4]
movq xmm0, qword [ecx + 6]
mov word [ebp - 0x173c], ax
movzx eax, word [ecx + 0xe]
mov word [ebp - 0x1732], ax
mov al, byte [ecx + 0x10]
add ecx, 0x11
mov byte [ebp - 0x1730], al
push ecx
movq qword [ebp - 0x173a], xmm0
movzx eax, word [ecx + 8]
movq xmm0, qword [ecx]
mov word [ebp - 0x1727], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Status_FROM_EventSantaClaus_WHERE_Name_s
push 0x440e30
mov dword [ebp - 0x1740], 0x10e1ec1
mov dword [ebp - 0x14], ecx
movq qword [ebp - 0x172f], xmm0
mov byte [ebp - 0x1725], al
call fcn.00416550
add esp, 0xc
test al, al
je 0x407e6b
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x407d24
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
push dword [ebp - 0x14]
push str.INSERT_INTO_EventSantaClaus__Name_Status__VALUES___s_0_
jmp 0x407da2
lea eax, [ecx + 0x11]
push eax
push str.SELECT_Name_FROM_EventLeoTheHelper_WHERE_Name_s
push 0x440e30
mov dword [ebp - 0x14], eax
call fcn.00416550
add esp, 0xc
test al, al
je 0x407efc
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407efc
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov ecx, dword [ebp - 0x1754]
mov eax, dword [ebp - 0x14]
push eax
movzx eax, byte [ecx + 0x1c]
push eax
push str.UPDATE_EventLeoTheHelper_SET_Status_d_WHERE_Name_s
jmp 0x407540
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov ecx, dword [ebp - 0x1754]
movzx eax, byte [ecx + 0x1c]
push eax
lea eax, [ecx + 0x11]
push eax
push str.INSERT_INTO_EventLeoTheHelper__Name_Status__VALUES___s__d_
jmp 0x407540
lea eax, [ecx + 0x11]
push eax
push str.SELECT_Name_FROM_EventSantaClaus_WHERE_Name_s
push 0x440e30
mov dword [ebp - 0x14], eax
call fcn.00416550
add esp, 0xc
test al, al
je 0x407f99
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407f99
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov ecx, dword [ebp - 0x1754]
mov eax, dword [ebp - 0x14]
push eax
movzx eax, byte [ecx + 0x1c]
push eax
push str.UPDATE_EventSantaClaus_SET_Status_d_WHERE_Name_s
jmp 0x407540
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov ecx, dword [ebp - 0x1754]
movzx eax, byte [ecx + 0x1c]
push eax
lea eax, [ecx + 0x11]
push eax
push str.INSERT_INTO_EventSantaClaus__Name_Status__VALUES___s__d_
jmp 0x407540
mov ecx, dword [ebp - 0x1754]
cmp byte [ecx], 0xc1
jne 0x407fe0
mov al, byte [ecx + 3]
jmp 0x407fe3
mov al, byte [ecx + 4]
movzx eax, al
sub eax, 0
je 0x4080d3
sub eax, 1
jne case.0x407297.1
movzx eax, word [ecx + 4]
lea edx, [ecx + 6]
movq xmm0, qword [edx]
add ecx, 0x11
mov word [ebp - 0x1744], ax
movzx eax, word [edx + 8]
mov word [ebp - 0x173a], ax
mov al, byte [edx + 0xa]
push ecx
mov byte [ebp - 0x1738], al
movzx eax, word [ecx + 8]
push edx
movq qword [ebp - 0x1742], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x172f], ax
mov al, byte [ecx + 0xa]
push str.EXEC_WZ_GetMasterResetInfo__s__s
push 0x440e30
mov dword [ebp - 0x1748], 0x10f28c1
movq qword [ebp - 0x1737], xmm0
mov byte [ebp - 0x172d], al
call fcn.00416550
add esp, 0x10
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.MasterResetDay
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x408086
or eax, eax
jmp 0x408097
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push str.MasterResetWek
mov dword [ebp - 0x172c], eax
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x4080b8
or eax, eax
push str.MasterResetMon
jmp 0x4081a1
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push str.MasterResetMon
jmp 0x4081a1
movzx eax, word [ecx + 4]
lea edx, [ecx + 6]
movq xmm0, qword [edx]
add ecx, 0x11
mov word [ebp - 0x1744], ax
movzx eax, word [edx + 8]
mov word [ebp - 0x173a], ax
mov al, byte [edx + 0xa]
push ecx
mov byte [ebp - 0x1738], al
movzx eax, word [ecx + 8]
push edx
movq qword [ebp - 0x1742], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x172f], ax
mov al, byte [ecx + 0xa]
push str.EXEC_WZ_GetResetInfo__s__s
push 0x440e30
mov dword [ebp - 0x1748], 0xf28c1
movq qword [ebp - 0x1737], xmm0
mov byte [ebp - 0x172d], al
call fcn.00416550
add esp, 0x10
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.ResetDay
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x408161
or eax, eax
jmp 0x408172
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push str.ResetWek
mov dword [ebp - 0x172c], eax
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40818b
or eax, eax
jmp 0x40819c
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push str.ResetMon
mov dword [ebp - 0x1728], eax
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x4081b5
or eax, eax
jmp 0x4081c6
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push dword [0x440e3c]
mov dword [ebp - 0x1724], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x28
lea eax, [ebp - 0x1748]
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1754]
cmp byte [ecx], 0xc1
jne 0x40820a
mov al, byte [ecx + 3]
jmp 0x40820d
mov al, byte [ecx + 4]
test al, al
je 0x408335
cmp al, 0x30
jne case.0x407297.1
lea eax, [ecx + 0x13]
push eax
push str.SELECT_Name_FROM_QuestWorld_WHERE_Name_s
push 0x440e30
mov dword [ebp - 0x175c], eax
call fcn.00416550
add esp, 0xc
test al, al
je 0x4082c4
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4082c4
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov eax, dword [ebp - 0x1754]
push 0x5d1bf4
push 0
add eax, 0x1e
mov dword [0x5d1bf4], 0x190
push eax
push 0
push 0x190
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x175c]
push str.UPDATE_QuestWorld_SET_QuestWorldList__WHERE_Name_s
push 0x440e30
call fcn.00416550
add esp, 0xc
jmp 0x40754d
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov eax, dword [ebp - 0x1754]
push 0x5d1bf4
push 0
add eax, 0x1e
mov dword [0x5d1bf4], 0x190
push eax
push 0
push 0x190
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x175c]
push str.INSERT_INTO_QuestWorld__Name_QuestWorldList__VALUES___s___
push 0x440e30
call fcn.00416550
add esp, 0xc
jmp 0x40754d
movzx eax, word [ecx + 4]
movq xmm0, qword [ecx + 6]
mov word [ebp - 0x1da], ax
movzx eax, word [ecx + 0xe]
mov word [ebp - 0x1d0], ax
mov al, byte [ecx + 0x10]
add ecx, 0x11
mov byte [ebp - 0x1ce], al
push ecx
movq qword [ebp - 0x1d8], xmm0
movzx eax, word [ecx + 8]
movq xmm0, qword [ecx]
mov word [ebp - 0x1c5], ax
mov al, byte [ecx + 0xa]
push str.SELECT_QuestWorldList_FROM_QuestWorld_WHERE_Name_s
push 0x440e30
mov dword [ebp - 0x1e0], 0x10ae01c2
mov byte [ebp - 0x1dc], 0
movq qword [ebp - 0x1cd], xmm0
mov byte [ebp - 0x1c3], al
call fcn.00416550
add esp, 0xc
test al, al
je 0x408405
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408405
push 0x190
lea eax, [ebp - 0x1c2]
push eax
push str.QuestWorldList
call fcn.00416810
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1ae
lea eax, [ebp - 0x1e0]
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x190
lea eax, [ebp - 0x1c2]
push 0xff
push eax
call fcn.0041b490
add esp, 0xc
lea eax, [ebp - 0x1e0]
push 0x1ae
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
mov esi, dword [ebp - 0x1754]
cmp byte [esi], 0xc1
jne 0x40845f
mov al, byte [esi + 3]
jmp 0x408462
mov al, byte [esi + 4]
movzx eax, al
cmp eax, 0x30
ja case.0x407297.1
movzx eax, byte [eax + 0x40cafc]
jmp dword [eax*4 + 0x40cae0]
movzx eax, word [esi + 4]
lea edi, [esi + 0x11]
movq xmm0, qword [esi + 6]
mov word [ebp - 0x1744], ax
movzx eax, word [esi + 0xe]
mov word [ebp - 0x173a], ax
mov al, byte [esi + 0x10]
mov byte [ebp - 0x1738], al
movzx eax, word [edi + 8]
mov word [ebp - 0x172f], ax
mov al, byte [edi + 0xa]
mov byte [ebp - 0x172d], al
movzx eax, byte [esi + 0x1c]
push eax
push edi
movq qword [ebp - 0x1742], xmm0
movq xmm0, qword [edi]
push str.INSERT_INTO_Gens_Rank__Name_Family_Contribution__VALUES___s__d_0_
push 0x440e30
mov dword [ebp - 0x1748], 0x1128c1
movq qword [ebp - 0x1737], xmm0
mov word [ebp - 0x172c], 0
mov dword [ebp - 0x1728], 0
mov dword [ebp - 0x1724], 0
call fcn.00416550
add esp, 0x10
push dword [0x440e3c]
test al, al
jne 0x408549
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1758]
lea eax, [ebp - 0x1748]
push 0x28
push eax
push ecx
mov byte [ebp - 0x172c], 1
call fcn.00418230
jmp case.0x407297.1
mov al, byte [esi + 0x1c]
mov byte [ebp - 0x172b], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, byte [esi + 0x1c]
push eax
push edi
push str.EXEC_WZ_GetCharacterGensInfo__s__d
push 0x440e30
call fcn.00416550
add esp, 0x10
test al, al
je 0x408626
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408626
push str.Rank
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x4085af
or eax, eax
jmp 0x4085c0
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push str.Contribution
mov dword [ebp - 0x1728], eax
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x4085d9
or eax, eax
jmp 0x4085ea
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push dword [0x440e3c]
mov dword [ebp - 0x1724], eax
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call eax
mov ecx, dword [ebp - 0x1758]
lea eax, [ebp - 0x1748]
push 0x28
push eax
push ecx
call fcn.00418230
jmp case.0x407297.1
push dword [0x440e3c]
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call eax
mov ecx, dword [ebp - 0x1758]
lea eax, [ebp - 0x1748]
push 0x28
push eax
push ecx
mov byte [ebp - 0x172c], 1
call fcn.00418230
jmp case.0x407297.1
movzx eax, word [esi + 4]
lea ecx, [esi + 0x11]
movq xmm0, qword [esi + 6]
mov word [ebp - 0x173c], ax
movzx eax, word [esi + 0xe]
mov word [ebp - 0x1732], ax
mov al, byte [esi + 0x10]
mov byte [ebp - 0x1730], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x173a], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x1727], ax
mov al, byte [ecx + 0xa]
push str.DELETE_FROM_Gens_Rank_WHERE_Name_s
push 0x440e30
mov dword [ebp - 0x1740], 0x1111ec1
movq qword [ebp - 0x172f], xmm0
mov byte [ebp - 0x1725], al
call fcn.00416550
add esp, 0xc
push dword [0x440e3c]
test al, al
jne 0x4086f6
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x1724], 1
jmp 0x408711
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x1724], 0
mov ecx, dword [ebp - 0x1758]
lea eax, [ebp - 0x1740]
push 0x1e
push eax
push ecx
call fcn.00418230
mov eax, dword [esi + 0x20]
push 0xffffffffffffffff
inc eax
push eax
movzx eax, byte [esi + 0x1c]
push eax
call fcn.00413650
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1758]
push ecx
push esi
call fcn.004132d0
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1758]
push ecx
push esi
call fcn.00413490
jmp case.0x407297.1
movzx eax, word [esi + 4]
lea ecx, [esi + 0x11]
movq xmm0, qword [esi + 6]
mov word [ebp - 0x1744], ax
movzx eax, word [esi + 0xe]
mov word [ebp - 0x173a], ax
mov al, byte [esi + 0x10]
mov byte [ebp - 0x1738], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x1742], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x172f], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Rank_Status_FROM_Gens_Reward_WHERE_Name_s
push 0x440e30
mov dword [ebp - 0x1748], 0x41128c1
movq qword [ebp - 0x1737], xmm0
mov byte [ebp - 0x172d], al
mov word [ebp - 0x172c], 0
mov dword [ebp - 0x1728], 0
mov dword [ebp - 0x1724], 0
call fcn.00416550
add esp, 0xc
test al, al
je 0x408898
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408898
mov al, byte [esi + 0x1c]
push str.Rank
mov byte [ebp - 0x172b], al
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x408823
or eax, eax
jmp 0x408834
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push str.Status
mov dword [ebp - 0x1728], eax
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40884d
or eax, eax
jmp 0x40885e
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push dword [0x440e3c]
mov dword [ebp - 0x1724], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1758]
lea eax, [ebp - 0x1748]
push 0x28
push eax
push ecx
call fcn.00418230
jmp case.0x407297.1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1758]
lea eax, [ebp - 0x1748]
push 0x28
push eax
push ecx
mov byte [ebp - 0x172c], 1
call fcn.00418230
jmp case.0x407297.1
lea eax, [esi + 0x11]
push eax
push str.SELECT_Name_FROM_Gens_Reward_WHERE_Name_s
push 0x440e30
mov dword [ebp - 0x175c], eax
call fcn.00416550
add esp, 0xc
test al, al
je 0x40893c
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40893c
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov ecx, dword [ebp - 0x1754]
push dword [ebp - 0x175c]
push dword [ecx + 0x24]
push str.UPDATE_Gens_Reward_SET_Status_d_WHERE_Name_s
jmp 0x407540
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov eax, dword [ebp - 0x1754]
push dword [eax + 0x24]
push dword [eax + 0x20]
push dword [ebp - 0x175c]
push str.INSERT_INTO_Gens_Reward__Name_Rank_Status__VALUES___s__d__d_
push 0x440e30
call fcn.00416550
add esp, 0x14
jmp 0x40754d
mov ecx, dword [ebp - 0x1754]
cmp byte [ecx], 0xc1
jne 0x408993
mov al, byte [ecx + 3]
jmp 0x408996
mov al, byte [ecx + 4]
test al, al
je 0x408abe
cmp al, 0x30
jne case.0x407297.1
lea eax, [ecx + 0x13]
push eax
push str.SELECT_Name_FROM_HelperData_WHERE_Name_s
push 0x440e30
mov dword [ebp - 0x175c], eax
call fcn.00416550
add esp, 0xc
test al, al
je 0x408a4d
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408a4d
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov eax, dword [ebp - 0x1754]
push 0x5d1bf4
push 0
add eax, 0x1e
mov dword [0x5d1bf4], 0x100
push eax
push 0
push 0x100
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x175c]
push str.UPDATE_HelperData_SET_Data__WHERE_Name_s
push 0x440e30
call fcn.00416550
add esp, 0xc
jmp 0x40754d
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov eax, dword [ebp - 0x1754]
push 0x5d1bf4
push 0
add eax, 0x1e
mov dword [0x5d1bf4], 0x100
push eax
push 0
push 0x100
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x175c]
push str.INSERT_INTO_HelperData__Name_Data__VALUES___s___
push 0x440e30
call fcn.00416550
add esp, 0xc
jmp 0x40754d
movzx eax, word [ecx + 4]
movq xmm0, qword [ecx + 6]
mov word [ebp - 0x14a], ax
movzx eax, word [ecx + 0xe]
mov word [ebp - 0x140], ax
mov al, byte [ecx + 0x10]
add ecx, 0x11
mov byte [ebp - 0x13e], al
push ecx
movq qword [ebp - 0x148], xmm0
movzx eax, word [ecx + 8]
movq xmm0, qword [ecx]
mov word [ebp - 0x135], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Data_FROM_HelperData_WHERE_Name_s
push 0x440e30
mov dword [ebp - 0x150], 0x172001c2
mov byte [ebp - 0x14c], 0
movq qword [ebp - 0x13d], xmm0
mov byte [ebp - 0x133], al
call fcn.00416550
add esp, 0xc
test al, al
je 0x408b95
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408b95
push 0x100
lea eax, [ebp - 0x131]
mov byte [ebp - 0x132], 0
push eax
push str.Data
call fcn.00416810
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x120
lea eax, [ebp - 0x150]
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x100
lea eax, [ebp - 0x131]
mov byte [ebp - 0x132], 1
push 0xff
push eax
call fcn.0041b490
add esp, 0xc
lea eax, [ebp - 0x150]
push 0x120
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
mov edi, dword [ebp - 0x1754]
cmp byte [edi], 0xc1
jne 0x408bf6
mov al, byte [edi + 3]
jmp 0x408bf9
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x34
ja case.0x407297.1
movzx eax, byte [eax + 0x40cb64]
jmp dword [eax*4 + 0x40cb30]
push esi
push edi
call fcn.00402480
jmp case.0x407297.1
push esi
push edi
call fcn.00402610
jmp case.0x407297.1
push esi
push edi
call fcn.004027d0
jmp case.0x407297.1
push esi
push edi
call fcn.00402ad0
jmp case.0x407297.1
push esi
push edi
call fcn.00402e50
jmp case.0x407297.1
cmp byte [edi + 0x13], 0
mov edx, 0x14
movzx eax, word [edi + 6]
movq xmm0, qword [edi + 8]
mov word [ebp - 0x173a], ax
movzx eax, word [edi + 0x10]
mov word [ebp - 0x1730], ax
mov al, byte [edi + 0x12]
mov byte [ebp - 0x1740], 0xc2
mov word [ebp - 0x173d], 0x518
mov dword [ebp - 0x175c], edx
movq qword [ebp - 0x1738], xmm0
mov byte [ebp - 0x172e], al
mov byte [ebp - 0x172d], 0
mov dword [ebp - 0x14], 0
jbe 0x408df9
lea eax, [ebp - 0x101c]
mov dword [ebp - 0x24], eax
lea esi, [edi + 0x18]
nop word [eax + eax]
push dword [esi]
push str.SELECT_Time_FROM_CashShopPeriodicItem_WHERE_ItemSerial_d
push 0x440e30
call fcn.00416550
add esp, 0xc
test al, al
je 0x408d45
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408d45
mov al, byte [esi - 4]
mov byte [ebp - 0x1768], al
mov eax, dword [esi]
push str.Time
mov dword [ebp - 0x1764], eax
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x408d12
mov dword [ebp - 0x1754], eax
jmp 0x408d29
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
mov dword [ebp - 0x1754], eax
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x408daa
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_CashShopPeriodicItem__ItemSerial_Time__VALUES___d__d_
push 0x440e30
call fcn.00416550
add esp, 0x10
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [ebp - 0x1768], al
mov eax, dword [esi]
mov dword [ebp - 0x1764], eax
mov dword [ebp - 0x1754], 0
mov eax, dword [ebp - 0x24]
add esi, 8
movq xmm0, qword [ebp - 0x1768]
mov ecx, dword [ebp - 0x1754]
mov edx, dword [ebp - 0x175c]
inc byte [ebp - 0x172d]
add edx, 0xc
movq qword [eax], xmm0
mov dword [eax + 8], ecx
add eax, 0xc
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
inc ecx
movzx eax, byte [edi + 0x13]
mov dword [ebp - 0x175c], edx
mov dword [ebp - 0x14], ecx
cmp ecx, eax
jl 0x408cc0
mov esi, dword [ebp - 0x1758]
mov eax, edx
mov byte [ebp - 0x173e], dl
shr eax, 8
mov byte [ebp - 0x173f], al
mov eax, dword [ebp - 0x1730]
movups xmm0, xmmword [ebp - 0x1740]
mov dword [ebp - 0x1020], eax
lea eax, [ebp - 0x1030]
push edx
push eax
push esi
movups xmmword [ebp - 0x1030], xmm0
call fcn.00418230
jmp case.0x407297.1
movzx eax, word [edi + 4]
lea ecx, [edi + 6]
movq xmm0, qword [ecx]
mov word [ebp - 0x1748], ax
movzx eax, word [ecx + 8]
mov word [ebp - 0x173e], ax
mov al, byte [ecx + 0xa]
mov byte [ebp - 0x173c], al
mov eax, dword [edi + 0x14]
push ecx
mov dword [ebp - 0x1738], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x1734], eax
mov eax, dword [edi + 0x1c]
push str.SELECT__FROM_CashShopData_WHERE_AccountID_s
push 0x440e30
mov dword [ebp - 0x174c], 0x6182cc1
movq qword [ebp - 0x1746], xmm0
mov dword [ebp - 0x1730], eax
call fcn.00416550
add esp, 0xc
test al, al
je 0x408f67
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408f67
push str.WCoinC
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x408ece
or eax, eax
jmp 0x408edf
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push str.WCoinP
mov dword [ebp - 0x172c], eax
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x408ef8
or eax, eax
jmp 0x408f09
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push str.GoblinPoint
mov dword [ebp - 0x1728], eax
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x408f22
or eax, eax
jmp 0x408f33
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push dword [0x440e3c]
mov dword [ebp - 0x1724], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x2c
lea eax, [ebp - 0x174c]
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x2c
lea eax, [ebp - 0x174c]
mov dword [ebp - 0x172c], 0
push eax
push esi
mov dword [ebp - 0x1728], 0
mov dword [ebp - 0x1724], 0
call fcn.00418230
jmp case.0x407297.1
push edi
call fcn.00403140
jmp case.0x407297.1
push edi
call fcn.004032f0
jmp case.0x407297.1
cmp byte [edi + 0x13], 0
mov eax, 0x13
mov esi, dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov ecx, 8
cmovne ecx, eax
push 0x5d1bf4
push 0
mov ax, word [ecx + edi + 8]
movq xmm0, qword [ecx + edi]
mov word [ebp - 0x10], ax
mov al, byte [ecx + edi + 0xa]
mov byte [ebp - 0xe], al
lea eax, [edi + 0x39]
push eax
push 0
push 0xb
push 0xc
push 1
push 1
push 1
push dword [0x440e3c]
movq qword [ebp - 0x18], xmm0
mov dword [0x5d1bf4], 0xfffffffd
call esi
push 0x5d1bf8
push 0
lea eax, [edi + 0x44]
mov dword [0x5d1bf8], 0xfffffffd
push eax
push 0
push 0xc8
push 0xc
push 1
push 1
push 2
push dword [0x440e3c]
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 - 0x18]
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 0x440e30
call fcn.00416550
add esp, 0x2c
jmp 0x40a10c
push dword [edi + 0x1c]
push str.DELETE_FROM_CashShopInventory_WHERE_BaseItemCode_d
push 0x440e30
call fcn.00416550
add esp, 0xc
jmp 0x40a10c
cmp byte [edi + 0x13], 0
mov dword [ebp - 0x14], 0
jbe case.0x407297.1
lea esi, [edi + 0x14]
nop word [eax + eax]
push dword [esi]
push str.SELECT_ItemSerial_FROM_CashShopPeriodicItem_WHERE_ItemSerial_d
push 0x440e30
call fcn.00416550
add esp, 0xc
test al, al
je 0x409110
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409110
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
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 0x409134
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
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 0x440e30
call fcn.00416550
add esp, 0x10
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x14]
add esi, 8
movzx eax, byte [edi + 0x13]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, eax
jl 0x4090c0
jmp case.0x407297.1
mov edx, dword [ebp - 0x1754]
cmp byte [edx], 0xc1
jne 0x409186
mov al, byte [edx + 3]
jmp 0x409189
mov al, byte [edx + 4]
movzx eax, al
cmp eax, 0x31
ja case.0x407297.1
movzx eax, byte [eax + 0x40cbb4]
jmp dword [eax*4 + 0x40cb9c]
movzx eax, word [edx + 4]
lea edi, [edx + 6]
movq xmm0, qword [edi]
mov word [ebp - 0x1734], ax
movzx eax, word [edi + 8]
push edi
mov word [ebp - 0x172a], ax
mov al, byte [edi + 0xa]
push str.SELECT__FROM_LuckyCoin_WHERE_AccountID_s
push 0x440e30
mov dword [ebp - 0x1738], 0x1a18c1
movq qword [ebp - 0x1732], xmm0
mov byte [ebp - 0x1728], al
mov byte [ebp - 0x1727], 0
call fcn.00416550
add esp, 0xc
test al, al
je 0x409263
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409263
push str.LuckyCoin
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40921e
or eax, eax
jmp 0x40922f
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push dword [0x440e3c]
mov dword [ebp - 0x1724], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1738]
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push str.INSERT_INTO_LuckyCoin__AccountID_LuckyCoin__VALUES___s_0_
push 0x440e30
call fcn.00416550
add esp, 0xc
test al, al
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push dword [0x440e3c]
jne 0x4092cb
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call eax
push 0x18
lea eax, [ebp - 0x1738]
mov byte [ebp - 0x1727], 1
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call eax
push 0x18
lea eax, [ebp - 0x1738]
mov dword [ebp - 0x1724], 0
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
movzx eax, word [edx + 4]
lea ecx, [edx + 6]
movq xmm0, qword [ecx]
mov word [ebp - 0x1734], ax
movzx eax, word [ecx + 8]
mov word [ebp - 0x172a], ax
mov al, byte [ecx + 0xa]
push ecx
mov byte [ebp - 0x1728], al
mov al, byte [edx + 0x11]
push str.SELECT__FROM_LuckyCoin_WHERE_AccountID_s
push 0x440e30
mov dword [ebp - 0x1738], 0x11a18c1
movq qword [ebp - 0x1732], xmm0
mov byte [ebp - 0x1727], 0
mov byte [ebp - 0x1726], al
call fcn.00416550
add esp, 0xc
test al, al
je 0x4093c3
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4093c3
push str.LuckyCoin
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40937e
or eax, eax
jmp 0x40938f
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push dword [0x440e3c]
mov dword [ebp - 0x1724], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1738]
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1738]
mov byte [ebp - 0x1727], 1
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
movzx eax, word [edx + 4]
lea ecx, [edx + 6]
movq xmm0, qword [ecx]
mov word [ebp - 0x1738], ax
movzx eax, word [ecx + 8]
mov word [ebp - 0x172e], ax
mov al, byte [ecx + 0xa]
push ecx
mov byte [ebp - 0x172c], al
mov eax, dword [edx + 0x14]
push str.SELECT__FROM_LuckyCoin_WHERE_AccountID_s
push 0x440e30
mov dword [ebp - 0x173c], 0x21a1cc1
movq qword [ebp - 0x1736], xmm0
mov byte [ebp - 0x172b], 0
mov dword [ebp - 0x1728], eax
call fcn.00416550
add esp, 0xc
test al, al
je 0x4094c1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4094c1
push str.LuckyCoin
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40947c
or eax, eax
jmp 0x40948d
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push dword [0x440e3c]
mov dword [ebp - 0x1724], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1c
lea eax, [ebp - 0x173c]
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1c
lea eax, [ebp - 0x173c]
mov byte [ebp - 0x172b], 1
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
lea eax, [edx + 6]
push eax
push str.SELECT_LuckyCoin_FROM_LuckyCoin_WHERE_AccountID_s
push 0x440e30
mov dword [ebp - 0x24], eax
call fcn.00416550
add esp, 0xc
test al, al
je 0x409593
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409593
push str.LuckyCoin
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40953d
mov dword [ebp - 0x14], eax
jmp 0x409551
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
mov dword [ebp - 0x14], eax
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov ecx, dword [ebp - 0x1754]
push dword [ebp - 0x24]
mov eax, dword [ecx + 0x14]
mov ecx, closesocket
add eax, dword [ebp - 0x14]
cmp eax, ecx
cmova eax, ecx
push eax
push str.UPDATE_LuckyCoin_SET_LuckyCoin_d_WHERE_AccountID_s
jmp 0x407540
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov ecx, dword [ebp - 0x1754]
push dword [ecx + 0x14]
push dword [ebp - 0x24]
push str.INSERT_INTO_LuckyCoin__AccountID_LuckyCoin__VALUES___s__d_
jmp 0x407540
lea eax, [edx + 6]
push eax
push str.SELECT_LuckyCoin_FROM_LuckyCoin_WHERE_AccountID_s
push 0x440e30
mov dword [ebp - 0x14], eax
call fcn.00416550
add esp, 0xc
test al, al
je 0x409675
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409675
push str.LuckyCoin
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x409615
mov dword [ebp - 0x1758], eax
jmp 0x40962c
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
mov dword [ebp - 0x1758], eax
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov ecx, dword [ebp - 0x1754]
mov edx, dword [ecx + 0x14]
lea eax, [ecx + 6]
mov ecx, dword [ebp - 0x1758]
push eax
sub ecx, edx
xor eax, eax
cmp edx, dword [ebp - 0x1758]
cmovbe eax, ecx
push eax
push str.UPDATE_LuckyCoin_SET_LuckyCoin_d_WHERE_AccountID_s
jmp 0x407540
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov eax, dword [ebp - 0x14]
push 0
push 0
push 0
push eax
push str.INSERT_INTO_LuckyCoin__AccountID_LuckyCoin__VALUES___s__d_
push 0x440e30
call fcn.00416550
add esp, 0x18
jmp 0x40754d
mov ecx, dword [ebp - 0x1754]
cmp byte [ecx], 0xc1
jne 0x4096c4
mov al, byte [ecx + 3]
jmp 0x4096c7
mov al, byte [ecx + 4]
movzx eax, al
sub eax, 0
je 0x4098af
sub eax, 1
je 0x40977a
sub eax, 1
jne case.0x407297.1
mov word [ebp - 0x1723], ax
xorps xmm0, xmm0
mov byte [ebp - 0x1721], al
mov eax, dword [ecx + 4]
add ecx, 8
movups xmmword [ebp - 0x1733], xmm0
push ecx
mov dword [ebp - 0x1730], eax
movq xmm0, qword [ecx]
mov ax, word [ecx + 8]
push str.UPDATE_T_MU2003_EVENT_SET_EventChips__0_WHERE_AccountID___s
push 0x440e30
mov dword [ebp - 0x1734], 0x21b14c1
movq qword [ebp - 0x172c], xmm0
mov word [ebp - 0x1724], ax
mov byte [ebp - 0x1722], 0
call fcn.00416550
add esp, 0xc
test al, al
setne byte [ebp - 0x1721]
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x14
lea eax, [ebp - 0x1734]
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
mov eax, dword [ecx + 4]
lea edi, [ecx + 9]
xorps xmm0, xmm0
mov word [ebp - 0x1723], 0
movups xmmword [ebp - 0x173b], xmm0
mov dword [ebp - 0x1738], eax
mov al, byte [ecx + 8]
movq qword [ebp - 0x172b], xmm0
movq xmm0, qword [edi]
push edi
mov byte [ebp - 0x1734], al
mov ax, word [edi + 8]
push str.UPDATE_T_MU2003_EVENT_SET_EventChips__EventChips__1_WHERE_AccountID___s
push 0x440e30
mov byte [ebp - 0x1721], 0
mov dword [ebp - 0x173c], 0x11b1cc1
movq qword [ebp - 0x1733], xmm0
mov word [ebp - 0x172b], ax
mov word [ebp - 0x1729], 0
call fcn.00416550
add esp, 0xc
test al, al
je 0x409881
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push str.SELECT_EventChips_FROM_T_MU2003_EVENT_WHERE_AccountID_s
push 0x440e30
call fcn.00416550
add esp, 0xc
test al, al
je 0x409881
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409881
push str.EventChips
call fcn.004167c0
cmp eax, 0xffffffff
je 0x409870
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
mov dword [ebp - 0x1724], eax
cmp eax, 0xffffffff
jne 0x40987a
mov dword [ebp - 0x1724], 0xffffffff
mov byte [ebp - 0x1728], 1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1c
lea eax, [ebp - 0x173c]
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
mov eax, dword [ecx + 4]
add ecx, 8
push ecx
mov dword [ebp - 0x1738], eax
push str.SELECT_EventChips__Check_Code__MuttoNumber_FROM_T_MU2003_EVENT_WHERE_AccountID_s
movq xmm0, qword [ecx]
mov ax, word [ecx + 8]
push 0x440e30
mov dword [ebp - 0x173c], 0x1b1cc1
movq qword [ebp - 0x1734], xmm0
mov word [ebp - 0x172c], ax
mov byte [ebp - 0x172a], 0
call fcn.00416550
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
add esp, 0xc
test al, al
je 0x4099fb
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4099b0
push str.Check_Code
call fcn.004167c0
cmp eax, 0xffffffff
je 0x409964
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
test eax, eax
jne 0x409964
push str.EventChips
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x409951
or eax, eax
jmp 0x409966
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
jmp 0x409966
xor eax, eax
push str.MuttonNumber
mov word [ebp - 0x1728], ax
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x409990
or eax, eax
mov byte [ebp - 0x1729], 1
mov dword [ebp - 0x1724], eax
jmp 0x409a02
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
mov dword [ebp - 0x1724], eax
mov byte [ebp - 0x1729], 1
jmp 0x409a02
push dword [0x440e3c]
call edi
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
lea eax, [ebp - 0x1734]
push eax
push str.INSERT_INTO_T_MU2003_EVENT__AccountID__VALUES___s_
push 0x440e30
call fcn.00416550
add esp, 0xc
test al, al
je 0x4099fb
xor eax, eax
mov byte [ebp - 0x1729], 1
mov word [ebp - 0x1728], ax
mov dword [ebp - 0x1724], eax
jmp 0x409a02
mov byte [ebp - 0x1729], 0
push dword [0x440e3c]
call edi
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1c
lea eax, [ebp - 0x173c]
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1754]
xor edi, edi
mov word [ebp - 0x176c], 0x10c1
mov dh, 0x10
mov byte [ebp - 0x176a], 0x1e
xor esi, esi
mov ax, word [ecx + 4]
mov word [ebp - 0x1768], ax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x1764], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x1760], eax
mov eax, dword [esi + 0x5d3a3c]
test eax, eax
js 0x409ad1
cmp eax, 0x14
jge 0x409ad1
cmp dword [esi + 0x5d3a40], 0
je 0x409ad1
cmp dword [esi + 0x5d3a54], 0xffffffff
je 0x409ad1
mov ecx, str.127.0.0.1
lea eax, [esi + 0x5d3a44]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409ab1
test dl, dl
je 0x409aad
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409ab1
add eax, 2
add ecx, 2
test dl, dl
jne 0x409a91
xor eax, eax
jmp 0x409ab6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x409ad1
movzx eax, dh
push eax
lea eax, [ebp - 0x176c]
push eax
push edi
call fcn.00418230
mov dh, byte [ebp - 0x176b]
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x409a65
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1754]
mov word [ebp - 0x176c], 0x10c1
mov byte [ebp - 0x176a], 0x1f
movzx eax, word [ecx + 4]
push eax
push str.EXEC_WZ_CW_InfoLoad__d
push 0x440e30
mov word [ebp - 0x1768], ax
call fcn.00416550
add esp, 0xc
test al, al
je 0x409bb6
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409bb6
push str.CRYWOLF_STATE
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x409b47
or eax, eax
jmp 0x409b58
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push str.CRYWOLF_OCCUFY
mov dword [ebp - 0x1764], eax
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x409b71
or eax, eax
jmp 0x409b82
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push dword [0x440e3c]
mov dword [ebp - 0x1760], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [ebp - 0x176c]
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [ebp - 0x176c]
mov dword [ebp - 0x1764], 0
push eax
push esi
mov dword [ebp - 0x1760], 0
call fcn.00418230
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1754]
lea edi, [ebp - 0x1816]
mov word [ebp - 0x1828], 0x6cc1
mov byte [ebp - 0x1826], 0x20
movzx eax, word [ecx + 4]
lea esi, [ecx + 0x12]
movq xmm0, qword [ecx + 7]
mov word [ebp - 0x1824], ax
mov al, byte [ecx + 6]
mov byte [ebp - 0x1822], al
movzx eax, word [ecx + 0xf]
mov word [ebp - 0x1819], ax
mov al, byte [ecx + 0x11]
mov ecx, 0x16
movq qword [ebp - 0x1821], xmm0
mov byte [ebp - 0x1817], al
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor edi, edi
xor esi, esi
nop dword [eax + eax]
mov eax, dword [esi + 0x5d3a3c]
test eax, eax
js 0x409cce
cmp eax, 0x14
jge 0x409cce
cmp dword [esi + 0x5d3a40], 0
je 0x409cce
cmp dword [esi + 0x5d3a54], 0xffffffff
je 0x409cce
mov ecx, str.127.0.0.1
lea eax, [esi + 0x5d3a44]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409cb0
test dl, dl
je 0x409cac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409cb0
add eax, 2
add ecx, 2
test dl, dl
jne 0x409c90
xor eax, eax
jmp 0x409cb5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x409cce
movzx eax, byte [ebp - 0x1827]
push eax
lea eax, [ebp - 0x1828]
push eax
push edi
call fcn.00418230
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x409c60
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1754]
lea edi, [ebp - 0xaf]
mov word [ebp - 0xc0], 0x94c1
mov byte [ebp - 0xbe], 0x21
movzx eax, word [ecx + 4]
lea esi, [ecx + 0x11]
mov word [ebp - 0xbc], ax
mov al, byte [ecx + 6]
mov byte [ebp - 0xba], al
mov al, byte [ecx + 7]
mov byte [ebp - 0xb9], al
mov al, byte [ecx + 8]
mov byte [ebp - 0xb8], al
movzx eax, word [ecx + 0xa]
mov word [ebp - 0xb6], ax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0xb4], eax
mov al, byte [ecx + 0x10]
mov ecx, 0x20
mov byte [ebp - 0xb0], al
rep movsd dword es:[edi], dword [esi]
xor edi, edi
xor esi, esi
nop dword [eax]
mov eax, dword [esi + 0x5d3a3c]
test eax, eax
js 0x409dbe
cmp eax, 0x14
jge 0x409dbe
cmp dword [esi + 0x5d3a40], 0
je 0x409dbe
cmp dword [esi + 0x5d3a54], 0xffffffff
je 0x409dbe
mov ecx, str.127.0.0.1
lea eax, [esi + 0x5d3a44]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409da0
test dl, dl
je 0x409d9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409da0
add eax, 2
add ecx, 2
test dl, dl
jne 0x409d80
xor eax, eax
jmp 0x409da5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x409dbe
movzx eax, byte [ebp - 0xbf]
push eax
lea eax, [ebp - 0xc0]
push eax
push edi
call fcn.00418230
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x409d50
jmp case.0x407297.1
mov esi, dword [ebp - 0x1754]
cmp byte [esi], 0xc1
jne 0x409ddf
mov al, byte [esi + 3]
jmp 0x409de2
mov al, byte [esi + 4]
test al, al
je 0x409ec6
cmp al, 0x4a
jne case.0x407297.1
cmp byte [esi + 0x13], 0
mov dword [ebp - 0x14], 0
jbe case.0x407297.1
lea edi, [esi + 0x14]
nop word [eax + eax]
push dword [edi]
push str.SELECT_ItemSerial_FROM_LuckyItem_WHERE_ItemSerial_d
push 0x440e30
call fcn.00416550
add esp, 0xc
test al, al
je 0x409e60
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409e60
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [edi]
push dword [edi + 4]
push str.UPDATE_LuckyItem_SET_DurabilitySmall_d_WHERE_ItemSerial_d
jmp 0x409e84
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [edi + 4]
push dword [edi]
push str.INSERT_INTO_LuckyItem__ItemSerial_DurabilitySmall__VALUES___d__d_
push 0x440e30
call fcn.00416550
add esp, 0x10
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x14]
add edi, 8
movzx eax, byte [esi + 0x13]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, eax
jl 0x409e10
jmp case.0x407297.1
cmp byte [esi + 0x13], 0
mov edx, 0x14
movzx eax, word [esi + 6]
movq xmm0, qword [esi + 8]
mov word [ebp - 0x173a], ax
movzx eax, word [esi + 0x10]
mov word [ebp - 0x1730], ax
mov al, byte [esi + 0x12]
mov byte [ebp - 0x1740], 0xc2
mov word [ebp - 0x173d], 0x22
mov dword [ebp - 0x14], edx
movq qword [ebp - 0x1738], xmm0
mov byte [ebp - 0x172e], al
mov byte [ebp - 0x172d], 0
mov dword [ebp - 0x175c], 0
jbe 0x40a068
lea eax, [ebp - 0x101c]
mov dword [ebp - 0x24], eax
lea edi, [esi + 0x18]
push dword [edi]
push str.SELECT_DurabilitySmall_FROM_LuckyItem_WHERE_ItemSerial_d
push 0x440e30
call fcn.00416550
add esp, 0xc
test al, al
je 0x409fba
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409fba
mov al, byte [edi - 4]
mov byte [ebp - 0x1768], al
mov eax, dword [edi]
push str.DurabilitySmall
mov dword [ebp - 0x1764], eax
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x409f87
mov dword [ebp - 0x1754], eax
jmp 0x409f9e
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
mov dword [ebp - 0x1754], eax
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40a01f
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [edi]
push str.INSERT_INTO_LuckyItem__ItemSerial_DurabilitySmall__VALUES___d__d_
push 0x440e30
call fcn.00416550
add esp, 0x10
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [edi - 4]
mov byte [ebp - 0x1768], al
mov eax, dword [edi]
mov dword [ebp - 0x1764], eax
mov dword [ebp - 0x1754], 0
mov eax, dword [ebp - 0x24]
add edi, 8
movq xmm0, qword [ebp - 0x1768]
mov ecx, dword [ebp - 0x1754]
mov edx, dword [ebp - 0x14]
inc byte [ebp - 0x172d]
add edx, 0xc
movq qword [eax], xmm0
mov dword [eax + 8], ecx
add eax, 0xc
mov ecx, dword [ebp - 0x175c]
mov dword [ebp - 0x24], eax
inc ecx
movzx eax, byte [esi + 0x13]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x175c], ecx
cmp ecx, eax
jl 0x409f31
mov ecx, dword [ebp - 0x1758]
mov eax, edx
shr eax, 8
mov byte [ebp - 0x173f], al
mov eax, dword [ebp - 0x1730]
mov dword [ebp - 0x1020], eax
lea eax, [ebp - 0x1030]
push edx
mov byte [ebp - 0x173e], dl
movups xmm0, xmmword [ebp - 0x1740]
push eax
push ecx
movups xmmword [ebp - 0x1030], xmm0
call fcn.00418230
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1754]
call fcn.0040feb0
jmp case.0x407297.1
mov esi, dword [ebp - 0x1754]
push 0x5d1bf4
push 0
mov dword [0x5d1bf4], 0xec0
lea eax, [esi + 0x1c]
push eax
push 0
push 0xec0
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
lea eax, [esi + 0x11]
push eax
lea eax, [esi + 6]
push eax
push str.UPDATE_Character_SET_Inventory__WHERE_AccountID_s_AND_Name_s
push 0x440e30
call fcn.00416550
add esp, 0x10
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1754]
call fcn.004102c0
jmp case.0x407297.1
mov esi, dword [ebp - 0x1754]
mov dword [ebp - 0x14], 0
cmp byte [esi + 0x11], 0
jbe case.0x407297.1
lea edi, [esi + 0x16]
nop word [eax + eax]
push dword [edi - 4]
push str.SELECT_ItemSerial_FROM_T_PetItem_Info_WHERE_ItemSerial_d
push 0x440e30
call fcn.00416550
add esp, 0xc
test al, al
je 0x40a1b6
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a1b6
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [edi - 4]
movzx eax, byte [edi]
push dword [edi + 4]
push eax
push str.UPDATE_T_PetItem_Info_SET_Pet_Level_d_Pet_Exp_d_WHERE_ItemSerial_d
jmp 0x40a1df
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [edi + 4]
movzx eax, byte [edi]
push eax
push dword [edi - 4]
push str.INSERT_INTO_T_PetItem_Info__ItemSerial_Pet_Level_Pet_Exp__VALUES___d__d__d_
push 0x440e30
call fcn.00416550
add esp, 0x14
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x14]
add edi, 0xc
movzx eax, byte [esi + 0x11]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, eax
jl 0x40a160
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1754]
push dword [ecx + 0x28]
lea eax, [ecx + 0x11]
push dword [ecx + 0x24]
push dword [ecx + 0x20]
push dword [ecx + 0x1c]
push eax
lea eax, [ecx + 6]
push eax
push str.EXEC_WZ_SetResetInfo__s__s__d__d__d__d
push 0x440e30
call fcn.00416550
add esp, 0x20
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1754]
push dword [ecx + 0x2c]
lea eax, [ecx + 0x11]
push dword [ecx + 0x28]
push dword [ecx + 0x24]
push dword [ecx + 0x20]
push dword [ecx + 0x1c]
push eax
lea eax, [ecx + 6]
push eax
push str.EXEC_WZ_SetMasterResetInfo__s__s__d__d__d__d__d
push 0x440e30
call fcn.00416550
add esp, 0x24
jmp 0x40a24d
mov eax, dword [ebp - 0x1754]
add eax, 0x11
push eax
push str.SELECT_Name_FROM_RankingDuel_WHERE_Name_s
push 0x440e30
mov dword [ebp - 0x14], eax
call fcn.00416550
add esp, 0xc
test al, al
je 0x40a322
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a322
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov eax, dword [ebp - 0x1754]
push dword [ebp - 0x14]
push dword [eax + 0x20]
push dword [eax + 0x1c]
push str.UPDATE_RankingDuel_SET_WinScoreWinScore_d_LoseScoreLoseScore_d_WHERE_Name_s
push 0x440e30
call fcn.00416550
add esp, 0x14
jmp 0x40754d
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov eax, dword [ebp - 0x1754]
push dword [eax + 0x20]
push dword [eax + 0x1c]
push dword [ebp - 0x14]
push str.INSERT_INTO_RankingDuel__Name_WinScore_LoseScore__VALUES___s__d__d_
push 0x440e30
call fcn.00416550
add esp, 0x14
jmp 0x40754d
mov eax, dword [ebp - 0x1754]
add eax, 0x11
push eax
push str.SELECT_Name_FROM_RankingBloodCastle_WHERE_Name_s
push 0x440e30
mov dword [ebp - 0x14], eax
call fcn.00416550
add esp, 0xc
test al, al
je 0x40a3cf
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a3cf
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov eax, dword [ebp - 0x1754]
push dword [ebp - 0x14]
push dword [eax + 0x1c]
push str.UPDATE_RankingBloodCastle_SET_ScoreScore_d_WHERE_Name_s
jmp 0x407540
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov eax, dword [ebp - 0x1754]
push dword [eax + 0x1c]
push dword [ebp - 0x14]
push str.INSERT_INTO_RankingBloodCastle__Name_Score__VALUES___s__d_
jmp 0x407540
mov eax, dword [ebp - 0x1754]
add eax, 0x11
push eax
push str.SELECT_Name_FROM_RankingChaosCastle_WHERE_Name_s
push 0x440e30
mov dword [ebp - 0x14], eax
call fcn.00416550
add esp, 0xc
test al, al
je 0x40a46c
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a46c
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov eax, dword [ebp - 0x1754]
push dword [ebp - 0x14]
push dword [eax + 0x1c]
push str.UPDATE_RankingChaosCastle_SET_ScoreScore_d_WHERE_Name_s
jmp 0x407540
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov eax, dword [ebp - 0x1754]
push dword [eax + 0x1c]
push dword [ebp - 0x14]
push str.INSERT_INTO_RankingChaosCastle__Name_Score__VALUES___s__d_
jmp 0x407540
mov eax, dword [ebp - 0x1754]
add eax, 0x11
push eax
push str.SELECT_Name_FROM_RankingDevilSquare_WHERE_Name_s
push 0x440e30
mov dword [ebp - 0x14], eax
call fcn.00416550
add esp, 0xc
test al, al
je 0x40a509
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a509
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov eax, dword [ebp - 0x1754]
push dword [ebp - 0x14]
push dword [eax + 0x1c]
push str.UPDATE_RankingDevilSquare_SET_ScoreScore_d_WHERE_Name_s
jmp 0x407540
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov eax, dword [ebp - 0x1754]
push dword [eax + 0x1c]
push dword [ebp - 0x14]
push str.INSERT_INTO_RankingDevilSquare__Name_Score__VALUES___s__d_
jmp 0x407540
mov eax, dword [ebp - 0x1754]
add eax, 0x11
push eax
push str.SELECT_Name_FROM_RankingIllusionTemple_WHERE_Name_s
push 0x440e30
mov dword [ebp - 0x14], eax
call fcn.00416550
add esp, 0xc
test al, al
je 0x40a5a6
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a5a6
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov eax, dword [ebp - 0x1754]
push dword [ebp - 0x14]
push dword [eax + 0x1c]
push str.UPDATE_RankingIllusionTemple_SET_ScoreScore_d_WHERE_Name_s
jmp 0x407540
push dword [0x440e3c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
mov eax, dword [ebp - 0x1754]
push dword [eax + 0x1c]
push dword [ebp - 0x14]
push str.INSERT_INTO_RankingIllusionTemple__Name_Score__VALUES___s__d_
jmp 0x407540
mov ecx, dword [ebp - 0x1754]
lea eax, [ecx + 6]
push eax
movzx eax, byte [ecx + 0x11]
push eax
push str.UPDATE_AccountCharacter_SET_ExtClass_d_WHERE_Id_s
jmp 0x40a0ff
mov eax, dword [ebp - 0x1754]
push dword [eax + 0xc]
push dword [eax + 8]
movzx eax, word [eax + 4]
push eax
push str.EXEC_WZ_CW_InfoSave__d__d__d
push 0x440e30
call fcn.00416550
add esp, 0x14
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40a10c
mov ecx, dword [ebp - 0x1754]
push dword [ecx + 0x28]
lea eax, [ecx + 0x11]
push dword [ecx + 0x24]
push dword [ecx + 0x20]
push dword [ecx + 0x1c]
push eax
lea eax, [ecx + 6]
push eax
push str.EXEC_WZ_CustomMonsterReward__s__s__d__d__d__d
push 0x440e30
call fcn.00416550
add esp, 0x20
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40a10c
mov ecx, dword [ebp - 0x1754]
push dword [ecx + 0x24]
lea eax, [ecx + 0x11]
push dword [ecx + 0x20]
push dword [ecx + 0x1c]
push eax
lea eax, [ecx + 6]
push eax
push str.EXEC_WZ_CustomArenaRanking__s__s__d__d__d
push 0x440e30
call fcn.00416550
add esp, 0x1c
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40a10c
mov ecx, dword [ebp - 0x1754]
push dword [ecx + 0x24]
lea eax, [ecx + 0x11]
push dword [ecx + 0x20]
push dword [ecx + 0x1c]
push eax
lea eax, [ecx + 6]
push eax
push str.EXEC_WZ_TvTRanking__s__s__d__d__d
jmp 0x40a680
mov esi, dword [ebp - 0x1754]
lea eax, [esi + 0x11]
push eax
lea eax, [ebp - 0x1740]
push eax
call fcn.004046c0
test al, al
jne case.0x407297.1
lea eax, [esi + 0x11]
push eax
lea eax, [ebp - 0x1740]
push 0xb
push eax
call fcn.0041ce7d
add esp, 0xc
lea eax, [esi + 6]
push eax
lea eax, [ebp - 0x1735]
push 0xb
push eax
call fcn.0041ce7d
mov ax, word [esi + 4]
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x1740]
mov dx, word [edi + 0x5d3a94]
mov word [ebp - 0x172a], ax
mov eax, esp
mov word [ebp - 0x1728], dx
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x1730]
movq qword [eax + 0x10], xmm0
mov word [eax + 0x18], dx
call fcn.00404800
xor dl, dl
lea ecx, [esi + 0x11]
call fcn.00406610
jmp case.0x407297.1
mov esi, dword [ebp - 0x1754]
lea eax, [esi + 0x11]
push eax
lea eax, [ebp - 0x1740]
push eax
call fcn.004046c0
test al, al
je case.0x407297.1
mov ax, word [ebp - 0x172a]
cmp ax, word [esi + 4]
jne case.0x407297.1
mov dx, word [ebp - 0x1728]
cmp dx, word [edi + 0x5d3a94]
jne case.0x407297.1
movups xmm0, xmmword [ebp - 0x1740]
sub esp, 0x1c
mov eax, esp
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x1730]
movq qword [eax + 0x10], xmm0
mov word [eax + 0x18], dx
call fcn.00404be0
mov dl, 1
lea ecx, [esi + 0x11]
call fcn.00406610
jmp case.0x407297.1
mov esi, dword [ebp - 0x1754]
mov word [ebp - 0xb0], 0x82c1
mov byte [ebp - 0xae], 0x72
movzx eax, word [esi + 4]
lea edi, [esi + 0x1c]
movq xmm0, qword [esi + 6]
mov word [ebp - 0xac], ax
movzx eax, word [esi + 0xe]
mov word [ebp - 0xa2], ax
mov al, byte [esi + 0x10]
mov byte [ebp - 0xa0], al
movzx eax, word [esi + 0x19]
mov word [ebp - 0x97], ax
mov al, byte [esi + 0x1b]
mov byte [ebp - 0x95], al
lea eax, [ebp - 0x173c]
movq qword [ebp - 0xaa], xmm0
movq xmm0, qword [esi + 0x11]
push edi
push eax
movq qword [ebp - 0x9f], xmm0
mov dword [ebp - 0x14], edi
call fcn.004046c0
test al, al
jne 0x40a84a
mov byte [ebp - 0x94], al
jmp 0x40a921
movzx eax, word [ebp - 0x1726]
lea edi, [ebp - 0x1811]
movq xmm0, qword [ebp - 0x1731]
mov ecx, 0x16
mov word [ebp - 0x1834], ax
movzx eax, word [ebp - 0x1729]
mov word [ebp - 0x182a], ax
mov al, byte [ebp - 0x1727]
mov byte [ebp - 0x1828], al
movzx eax, word [ebp - 0x1734]
mov word [ebp - 0x181f], ax
mov al, byte [ebp - 0x1732]
mov byte [ebp - 0x181d], al
movzx eax, word [esi + 0x19]
movq qword [ebp - 0x1832], xmm0
movq xmm0, qword [ebp - 0x173c]
mov word [ebp - 0x1814], ax
mov al, byte [esi + 0x1b]
movq qword [ebp - 0x1827], xmm0
movq xmm0, qword [esi + 0x11]
add esi, 0x27
mov byte [ebp - 0x1812], al
mov word [ebp - 0x1838], 0x80c1
mov byte [ebp - 0x1836], 0x73
movq qword [ebp - 0x181c], xmm0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x1724]
mov byte [ebp - 0x94], 1
movsb byte es:[edi], byte [esi]
call fcn.00419120
test eax, eax
je 0x40a918
push 0x80
lea ecx, [ebp - 0x1838]
push ecx
push dword [eax + 4]
call fcn.00418230
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1754]
mov ax, word [edi + 8]
add esi, 0x27
movq xmm0, qword [edi]
mov ecx, 0x16
mov word [ebp - 0x8b], ax
mov al, byte [edi + 0xa]
lea edi, [ebp - 0x88]
mov byte [ebp - 0x89], al
lea eax, [ebp - 0xb0]
movq qword [ebp - 0x93], xmm0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x1758]
push 0x82
push eax
push ecx
movsb byte es:[edi], byte [esi]
call fcn.00418230
jmp case.0x407297.1
mov edi, dword [ebp - 0x1754]
cmp byte [edi], 0xc1
jne 0x40a97f
mov al, byte [edi + 3]
jmp 0x40a982
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x1b
ja case.0x407297.1
jmp dword [eax*4 + 0x40cbe8]
movzx eax, word [edi + 4]
lea ecx, [ebp - 0x1750]
push ecx
push dword [edi + 8]
mov dword [ebp - 0x17f0], 0x8038c1
push eax
mov word [ebp - 0x17e8], ax
call fcn.004038e0
test eax, eax
je 0x40a9dc
push 0x38
lea eax, [ebp - 0x17f0]
mov dword [ebp - 0x17ec], 0
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
movzx eax, word [ebp - 0x1750]
xorps xmm0, xmm0
mov word [ebp - 0x17e6], ax
mov al, byte [ebp - 0x174e]
mov byte [ebp - 0x17e4], al
mov al, byte [ebp - 0x174d]
mov byte [ebp - 0x17e3], al
movzx eax, word [ebp - 0x174c]
mov word [ebp - 0x17e2], ax
mov al, byte [ebp - 0x174a]
mov byte [ebp - 0x17e0], al
mov al, byte [ebp - 0x1749]
mov byte [ebp - 0x17df], al
mov al, byte [ebp - 0x1748]
mov ecx, dword [ebp - 0x1734]
mov byte [ebp - 0x17de], al
mov al, byte [ebp - 0x1747]
mov byte [ebp - 0x17dd], al
mov al, byte [ebp - 0x1746]
mov byte [ebp - 0x17dc], al
mov eax, dword [ebp - 0x1738]
mov dword [ebp - 0x17d0], eax
mov eax, dword [ebp - 0x1730]
mov dword [ebp - 0x17c8], eax
mov eax, dword [ebp - 0x172c]
mov dword [ebp - 0x17c4], eax
mov eax, dword [ebp - 0x1728]
mov dword [ebp - 0x17c0], eax
mov eax, dword [ebp - 0x1724]
mov dword [ebp - 0x17bc], eax
mov eax, dword [ebp - 0x1745]
movq qword [ebp - 0x17db], xmm0
mov dword [ebp - 0x17db], eax
lea eax, [ebp - 0x17f0]
push 0x38
push eax
mov dword [ebp - 0x17cc], ecx
mov ecx, dword [ebp - 0x1741]
push esi
mov dword [ebp - 0x17ec], 1
mov dword [ebp - 0x17d7], ecx
call fcn.00418230
jmp case.0x407297.1
mov edx, esi
mov ecx, edi
call fcn.00410410
jmp case.0x407297.1
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
movzx esi, word [edi + 4]
mov dword [ebp - 0x1730], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x1724], 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 - 0x173c], 0x3801cc1
push dword [edi + 0x1c]
mov word [ebp - 0x1734], si
push dword [edi + 0x18]
mov dword [ebp - 0x172c], edx
push dword [edi + 0x14]
mov dword [ebp - 0x1728], ecx
push ecx
push edx
push esi
push str.EXEC_WZ_CS_ReqNpcBuy__d___d___d___d___d___d___d___d___d___d
push 0x440e30
call fcn.00416550
add esp, 0x30
push dword [0x440e3c]
test al, al
je 0x40abd5
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40abcf
cmp ax, 0xffff
je 0x40abcf
push str.QueryResult
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40ab82
or esi, eax
jmp 0x40ab95
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
mov esi, eax
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1758]
lea eax, [ebp - 0x173c]
push 0x1c
push eax
push ecx
mov dword [ebp - 0x1738], esi
call fcn.00418230
jmp case.0x407297.1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1758]
lea eax, [ebp - 0x173c]
push 0x1c
push eax
push ecx
mov dword [ebp - 0x1738], 0
call fcn.00418230
jmp case.0x407297.1
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
movzx esi, word [edi + 4]
mov eax, dword [edi + 8]
push ecx
push edx
push esi
mov dword [ebp - 0x1850], eax
mov eax, dword [edi + 0x14]
push str.EXEC_WZ_CS_ReqNpcRepair__d___d___d
push 0x440e30
mov dword [ebp - 0x185c], 0x48024c1
mov word [ebp - 0x1854], si
mov dword [ebp - 0x184c], edx
mov dword [ebp - 0x1848], ecx
mov dword [ebp - 0x183c], eax
call fcn.00416550
add esp, 0x14
push dword [0x440e3c]
test al, al
je 0x40ad40
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40ad3a
cmp ax, 0xffff
je 0x40ad3a
push str.QueryResult
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40ac99
or esi, eax
jmp 0x40acac
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
mov esi, eax
push str.NPC_HP
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40acbf
or eax, eax
jmp 0x40acd0
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push str.NPC_MAXHP
mov dword [ebp - 0x1840], eax
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40ace9
or eax, eax
jmp 0x40acfa
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push dword [0x440e3c]
mov dword [ebp - 0x1844], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1758]
lea eax, [ebp - 0x185c]
push 0x24
push eax
push ecx
mov dword [ebp - 0x1858], esi
call fcn.00418230
jmp case.0x407297.1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1758]
lea eax, [ebp - 0x185c]
push 0x24
push eax
push ecx
mov dword [ebp - 0x1858], 0
call fcn.00418230
jmp case.0x407297.1
movzx eax, word [edi + 4]
mov word [ebp - 0x173c], ax
mov eax, dword [edi + 8]
mov edi, dword [edi + 0xc]
mov dword [ebp - 0x1738], eax
mov eax, dword [ebp - 0x1754]
mov dword [ebp - 0x1744], 0x58024c1
mov dword [ebp - 0x1734], edi
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 - 0x1728], ecx
mov ecx, dword [ebp - 0x1754]
push esi
mov dword [ebp - 0x1724], eax
push edi
movzx eax, word [ecx + 4]
push eax
push str.EXEC_WZ_CS_ReqNpcUpgrade__d___d___d___d___d
push 0x440e30
mov dword [ebp - 0x1730], esi
mov dword [ebp - 0x172c], edx
call fcn.00416550
add esp, 0x1c
push dword [0x440e3c]
test al, al
je 0x40ae75
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40ae6f
cmp ax, 0xffff
je 0x40ae6f
push str.QueryResult
call fcn.004167c0
cmp eax, 0xffffffff
je 0x40ae31
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
test eax, eax
je 0x40ae6f
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1758]
lea eax, [ebp - 0x1744]
push 0x24
push eax
push ecx
mov dword [ebp - 0x1740], 1
call fcn.00418230
jmp case.0x407297.1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1758]
lea eax, [ebp - 0x1744]
push 0x24
push eax
push ecx
mov dword [ebp - 0x1740], 0
call fcn.00418230
jmp case.0x407297.1
mov edx, esi
mov ecx, edi
call fcn.00410580
jmp case.0x407297.1
push dword [edi + 0x10]
movzx ecx, word [edi + 4]
push dword [edi + 0xc]
mov eax, dword [edi + 8]
push ecx
push str.EXEC_WZ_CS_ModifyTaxRate__d___d___d
push 0x440e30
mov dword [ebp - 0x1788], 0x78018c1
mov word [ebp - 0x1780], cx
mov dword [ebp - 0x177c], eax
call fcn.00416550
add esp, 0x14
push dword [0x440e3c]
test al, al
je 0x40afd1
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40afcb
cmp ax, 0xffff
je 0x40afcb
push str.QueryResult
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40af30
or edi, eax
jmp 0x40af43
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
mov edi, eax
push str.TaxKind
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40af56
or eax, eax
jmp 0x40af67
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push str.TaxRate
mov dword [ebp - 0x1778], eax
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40af80
or eax, eax
jmp 0x40af91
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push dword [0x440e3c]
mov dword [ebp - 0x1774], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1788]
mov dword [ebp - 0x1784], edi
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1788]
mov dword [ebp - 0x1784], 0
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
mov eax, dword [edi + 8]
lea edx, [ebp - 0x14]
movzx ecx, word [edi + 4]
xorps xmm0, xmm0
push edx
lea edx, [ebp - 0x28]
mov dword [ebp - 0x1734], eax
mov eax, dword [edi + 0xc]
push edx
push eax
push ecx
mov dword [ebp - 0x1740], 0x88020c1
mov word [ebp - 0x1738], cx
mov dword [ebp - 0x1730], eax
mov dword [ebp - 0x14], 0
movlpd qword [ebp - 0x28], xmm0
call fcn.00403be0
push 0x20
test eax, eax
je 0x40b06a
lea eax, [ebp - 0x1740]
mov dword [ebp - 0x173c], 0
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x173c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1728], eax
lea eax, [ebp - 0x1740]
push eax
push esi
mov dword [ebp - 0x1724], ecx
call fcn.00418230
jmp case.0x407297.1
mov eax, dword [edi + 8]
movzx ecx, word [edi + 4]
mov dword [ebp - 0x172c], eax
movzx eax, byte [edi + 0x13]
push eax
movzx eax, byte [edi + 0x12]
push eax
movzx eax, word [edi + 0x10]
push eax
movzx eax, byte [edi + 0xf]
push eax
movzx eax, byte [edi + 0xe]
push eax
movzx eax, word [edi + 0xc]
push eax
push ecx
push str.EXEC_WZ_CS_ModifyCastleSchedule__d___d__d__d_00:00:00___d__d__d_00:00:00
push 0x440e30
mov dword [ebp - 0x1738], 0x98018c1
mov word [ebp - 0x1730], cx
call fcn.00416550
add esp, 0x24
push dword [0x440e3c]
test al, al
je 0x40b1b0
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b1aa
cmp ax, 0xffff
je 0x40b1aa
push str.QueryResult
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40b125
mov dword [ebp - 0x14], eax
jmp 0x40b139
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
mov dword [ebp - 0x14], eax
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1734], eax
movzx eax, word [edi + 0xc]
mov word [ebp - 0x1728], ax
mov al, byte [edi + 0xe]
mov byte [ebp - 0x1726], al
mov al, byte [edi + 0xf]
mov byte [ebp - 0x1725], al
movzx eax, word [edi + 0x10]
mov word [ebp - 0x1724], ax
mov al, byte [edi + 0x12]
mov byte [ebp - 0x1722], al
mov al, byte [edi + 0x13]
mov byte [ebp - 0x1721], al
lea eax, [ebp - 0x1738]
push 0x18
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1738]
mov dword [ebp - 0x1734], 0
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
mov eax, dword [edi + 8]
movzx edx, word [edi + 4]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x1734], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1740]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1740], 0xa8020c1
push eax
push edx
mov word [ebp - 0x1738], dx
mov byte [ebp - 0x20], 0
mov dword [ebp - 0x24], ecx
call fcn.00403cd0
mov ecx, dword [ebp - 0x14]
xor edx, edx
test eax, eax
lea eax, [ebp - 0x1740]
push 0x20
push eax
cmovne ecx, edx
push esi
mov dword [ebp - 0x173c], ecx
call fcn.00418230
jmp case.0x407297.1
push dword [edi + 8]
movzx eax, word [edi + 4]
push eax
push str.EXEC_WZ_CS_ModifySiegeEnd__d___d
push 0x440e30
mov dword [ebp - 0x176c], 0xb8010c1
mov word [ebp - 0x1764], ax
call fcn.00416550
add esp, 0x10
push dword [0x440e3c]
test al, al
je 0x40b2fe
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b2f8
cmp ax, 0xffff
je 0x40b2f8
push str.QueryResult
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40b2b1
or edi, eax
jmp 0x40b2c4
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
mov edi, eax
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [ebp - 0x176c]
mov dword [ebp - 0x1768], edi
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [ebp - 0x176c]
mov dword [ebp - 0x1768], 0
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
movzx eax, word [edi + 4]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x28]
mov word [ebp - 0x1798], ax
lea edx, [ecx + 1]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x17a0], 0xc8018c1
mov byte [ebp - 0x20], 0
mov dword [ebp - 0x28], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b360
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x40b394
nop
mov dl, byte [ebp + eax - 0x28]
cmp dl, 0x20
je 0x40b460
cmp dl, 0x22
je 0x40b460
cmp dl, 0x27
je 0x40b460
inc eax
cmp eax, ecx
jl 0x40b370
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov dword [ebp - 0x1790], ecx
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x178c], ecx
lea ecx, [ebp - 0x28]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x1794], eax
push str.EXEC_WZ_CS_ModifyCastleOwnerInfo__d___d___s
push 0x440e30
call fcn.00416550
add esp, 0x14
push dword [0x440e3c]
test al, al
je 0x40b44c
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b446
cmp ax, 0xffff
je 0x40b446
push str.QueryResult
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40b3ff
or edi, eax
jmp 0x40b412
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
mov edi, eax
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x17a0]
mov dword [ebp - 0x179c], edi
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x17a0]
mov dword [ebp - 0x179c], 0
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
movzx ecx, word [edi + 4]
mov eax, dword [edi + 8]
mov word [ebp - 0x17b0], cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x17ac], eax
lea edx, [ecx + 1]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x17b8], 0xd8018c1
mov byte [ebp - 0x20], 0
mov dword [ebp - 0x28], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b4b5
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x40b4f4
nop dword [eax]
nop dword [eax + eax]
mov dl, byte [ebp + eax - 0x28]
cmp dl, 0x20
je 0x40b5b6
cmp dl, 0x22
je 0x40b5b6
cmp dl, 0x27
je 0x40b5b6
inc eax
cmp eax, ecx
jl 0x40b4d0
mov eax, dword [ebp - 0x17a8]
mov ecx, dword [ebp - 0x17a4]
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x14]
mov dword [edi + 0x10], ecx
push str.EXEC_WZ_CS_ReqRegAttackGuild__d___s
push 0x440e30
call fcn.00416550
add esp, 0x10
push dword [0x440e3c]
test al, al
je 0x40b5a2
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b59c
cmp ax, 0xffff
je 0x40b59c
push str.QueryResult
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40b555
or edi, eax
jmp 0x40b568
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
mov edi, eax
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x17b8]
mov dword [ebp - 0x17b4], edi
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x17b8]
mov dword [ebp - 0x17b4], 0
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
movzx eax, word [edi + 4]
push eax
push str.EXEC_WZ_CS_ResetCastleSiege__d
push 0x440e30
mov dword [ebp - 0x1768], 0xe800cc1
mov word [ebp - 0x1760], ax
call fcn.00416550
add esp, 0xc
push dword [0x440e3c]
test al, al
je 0x40b9b4
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b9ae
cmp ax, 0xffff
je 0x40b9ae
push str.QueryResult
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40b63a
or edi, eax
jmp 0x40b64d
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
mov edi, eax
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [ebp - 0x1768]
mov dword [ebp - 0x1764], edi
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
mov ax, word [edi + 4]
lea esi, [edi + 6]
mov ecx, 0x20
mov dword [ebp - 0xb8], 0xf8086c1
lea edi, [ebp - 0xb2]
mov word [ebp - 0xb4], ax
rep movsd dword es:[edi], dword [esi]
xor edi, edi
xor esi, esi
nop word [eax + eax]
mov eax, dword [esi + 0x5d3a3c]
test eax, eax
js 0x40b71b
cmp eax, 0x14
jge 0x40b71b
cmp dword [esi + 0x5d3a40], 0
je 0x40b71b
cmp dword [esi + 0x5d3a54], 0xffffffff
je 0x40b71b
mov ecx, str.127.0.0.1
lea eax, [esi + 0x5d3a44]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b700
test dl, dl
je 0x40b6fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b700
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b6e0
xor eax, eax
jmp 0x40b705
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40b71b
push 0x86
lea eax, [ebp - 0xb8]
push eax
push edi
call fcn.00418230
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x40b6b0
jmp case.0x407297.1
mov edx, esi
mov ecx, edi
call fcn.004106f0
jmp case.0x407297.1
mov edx, esi
mov ecx, edi
call fcn.00410870
jmp case.0x407297.1
mov edx, esi
mov ecx, edi
call fcn.004109e0
jmp case.0x407297.1
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
movzx edx, word [edi + 4]
push eax
push ecx
push edx
push str.EXEC_WZ_CS_ReqNpcRemove__d___d___d
push 0x440e30
mov dword [ebp - 0x1734], 0x168014c1
mov word [ebp - 0x172c], dx
mov dword [ebp - 0x1728], ecx
mov dword [ebp - 0x1724], eax
call fcn.00416550
add esp, 0x14
push dword [0x440e3c]
test al, al
je 0x40b811
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b80b
cmp ax, 0xffff
je 0x40b80b
push str.QueryResult
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40b7c4
or edi, eax
jmp 0x40b7d7
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
mov edi, eax
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x14
lea eax, [ebp - 0x1734]
mov dword [ebp - 0x1730], edi
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x14
lea eax, [ebp - 0x1734]
mov dword [ebp - 0x1730], 0
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
mov ax, word [edi + 4]
mov ecx, dword [edi + 0x1c]
mov word [ebp - 0x173c], ax
mov eax, dword [edi + 8]
mov dword [ebp - 0x1738], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x1734], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x1730], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x172c], eax
mov eax, dword [edi + 0x18]
xor edi, edi
mov dword [ebp - 0x1740], 0x178020c1
xor esi, esi
mov dword [ebp - 0x1728], eax
mov dword [ebp - 0x1724], ecx
mov eax, dword [esi + 0x5d3a3c]
test eax, eax
js 0x40b8f8
cmp eax, 0x14
jge 0x40b8f8
cmp dword [esi + 0x5d3a40], 0
je 0x40b8f8
cmp dword [esi + 0x5d3a54], 0xffffffff
je 0x40b8f8
mov ecx, str.127.0.0.1
lea eax, [esi + 0x5d3a44]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b8e0
test dl, dl
je 0x40b8dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b8e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b8c0
xor eax, eax
jmp 0x40b8e5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40b8f8
push 0x20
lea eax, [ebp - 0x1740]
push eax
push edi
call fcn.00418230
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x40b892
jmp case.0x407297.1
movzx eax, word [edi + 4]
xorps xmm0, xmm0
mov ecx, dword [edi + 8]
mov dword [ebp - 0x1768], 0x18800cc1
mov word [ebp - 0x1760], ax
mov dword [ebp - 0x14], 0
movlpd qword [ebp - 0x28], xmm0
test ecx, ecx
jns 0x40b952
push 0xc
lea eax, [ebp - 0x1768]
mov dword [ebp - 0x1764], 0
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x28]
push edx
push ecx
push eax
call fcn.00403be0
test eax, eax
jne 0x40b9c8
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1764], eax
lea eax, [ebp - 0x1768]
push 0xc
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
movzx eax, word [edi + 4]
push eax
mov dword [ebp - 0x1768], 0x19800cc1
push str.EXEC_WZ_CS_ResetCastleTaxInfo__d
jmp 0x40b9fa
movzx eax, word [edi + 4]
push eax
mov dword [ebp - 0x1768], 0x1a800cc1
push str.EXEC_WZ_CS_ResetSiegeGuildInfo__d
jmp 0x40b9fa
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [ebp - 0x1768]
mov dword [ebp - 0x1764], 0
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
movzx eax, word [edi + 4]
push eax
mov dword [ebp - 0x1768], 0x1b800cc1
push str.EXEC_WZ_CS_ResetRegSiegeInfo__d
push 0x440e30
mov word [ebp - 0x1760], ax
call fcn.00416550
add esp, 0xc
push dword [0x440e3c]
test al, al
je 0x40b9b4
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b9ae
cmp ax, 0xffff
je 0x40b9ae
push str.QueryResult
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40ba40
or edi, eax
jmp 0x40ba53
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
mov edi, eax
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [ebp - 0x1768]
mov dword [ebp - 0x1764], edi
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1754]
mov edx, esi
call fcn.00410b60
jmp case.0x407297.1
mov eax, dword [ebp - 0x1754]
test eax, eax
je case.0x407297.1
movzx eax, word [eax + 4]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x170c]
mov word [ebp - 0x1718], ax
push ecx
push eax
mov dword [ebp - 0x14], 0xc8
mov dword [ebp - 0x1710], 0
call fcn.00403e30
mov byte [ebp - 0x1720], 0xc2
mov byte [ebp - 0x171d], 0x82
test eax, eax
je 0x40baf8
mov edx, dword [ebp - 0x1710]
mov dword [ebp - 0x171c], 0
jmp 0x40bb0b
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x171c], 1
mov dword [ebp - 0x1710], edx
lea eax, [edx*8]
sub eax, edx
lea eax, [eax*4 + 0x14]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0x171e], cl
shr eax, 8
mov byte [ebp - 0x171f], al
lea eax, [edx*8]
sub eax, edx
lea eax, [eax*4 + 0x14]
push eax
lea eax, [ebp - 0x1720]
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
mov eax, dword [ebp - 0x1754]
test eax, eax
je case.0x407297.1
movzx ecx, word [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x774], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x76c]
mov word [ebp - 0x778], cx
push eax
push ecx
mov dword [ebp - 0x14], 0x64
mov dword [ebp - 0x770], 0
call fcn.004040e0
mov byte [ebp - 0x780], 0xc2
mov byte [ebp - 0x77d], 0x83
test eax, eax
je 0x40bbed
mov edx, dword [ebp - 0x770]
mov eax, edx
shl eax, 4
add eax, 0x14
shl edx, 4
movzx ecx, ax
add edx, 0x14
mov eax, ecx
mov dword [ebp - 0x77c], 0
shr eax, 8
mov byte [ebp - 0x77f], al
lea eax, [ebp - 0x780]
push edx
push eax
push esi
mov byte [ebp - 0x77e], cl
call fcn.00418230
jmp case.0x407297.1
mov edx, dword [ebp - 0x14]
mov eax, edx
shl eax, 4
add eax, 0x14
mov dword [ebp - 0x770], edx
movzx ecx, ax
mov eax, ecx
shl edx, 4
shr eax, 8
add edx, 0x14
mov byte [ebp - 0x77f], al
lea eax, [ebp - 0x780]
push edx
push eax
push esi
mov dword [ebp - 0x77c], 1
mov byte [ebp - 0x77e], cl
call fcn.00418230
jmp case.0x407297.1
mov esi, dword [ebp - 0x1754]
test esi, esi
je case.0x407297.1
movzx eax, word [esi + 4]
push eax
push str.DELETE_MuCastle_NPC_WHERE_MAP_SVR_GROUP___d
push 0x440e30
mov word [ebp - 0x1768], 0xcc1
mov byte [ebp - 0x1766], 0x84
mov word [ebp - 0x1760], ax
mov dword [ebp - 0x24], eax
call fcn.00416550
add esp, 0xc
push dword [0x440e3c]
test al, al
je 0x40bd2c
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp dword [esi + 8], 0
mov dword [ebp - 0x14], 0
jle 0x40bd08
lea edi, [esi + 0x25]
movzx eax, byte [edi + 1]
push eax
movzx eax, byte [edi]
push eax
movzx eax, byte [edi - 1]
push eax
push dword [edi - 5]
push dword [edi - 9]
push dword [edi - 0xd]
push dword [edi - 0x11]
push dword [edi - 0x15]
push dword [edi - 0x19]
push dword [ebp - 0x24]
push str.EXEC_WZ_CS_ReqNpcBuy__d___d___d___d___d___d___d___d___d___d
push 0x440e30
call fcn.00416550
add esp, 0x30
push dword [0x440e3c]
test al, al
je 0x40bd2c
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x14]
add edi, 0x1c
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [esi + 8]
jl 0x40bca6
mov ecx, dword [ebp - 0x1758]
lea eax, [ebp - 0x1768]
push 0xc
push eax
push ecx
mov dword [ebp - 0x1764], 1
call fcn.00418230
jmp case.0x407297.1
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1758]
lea eax, [ebp - 0x1768]
push 0xc
push eax
push ecx
mov dword [ebp - 0x1764], 0
call fcn.00418230
jmp case.0x407297.1
mov eax, dword [ebp - 0x1754]
test eax, eax
je case.0x407297.1
movzx eax, word [eax + 4]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xa90]
mov word [ebp - 0xa98], ax
push ecx
push eax
mov dword [ebp - 0x14], 0x64
mov dword [ebp - 0xa94], 0
call fcn.00404290
mov byte [ebp - 0xaa0], 0xc2
mov byte [ebp - 0xa9d], 0x85
test eax, eax
je 0x40bdfc
mov edx, dword [ebp - 0xa94]
mov dword [ebp - 0xa9c], 0
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0xa9e], cl
shr eax, 8
mov byte [ebp - 0xa9f], al
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
push eax
lea eax, [ebp - 0xaa0]
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xa9c], 1
mov dword [ebp - 0xa94], edx
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0xa9e], cl
shr eax, 8
mov byte [ebp - 0xa9f], al
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
push eax
lea eax, [ebp - 0xaa0]
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1754]
mov edx, esi
call fcn.00410d60
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1754]
mov edx, esi
call fcn.00410f80
jmp case.0x407297.1
mov eax, dword [ebp - 0x1754]
test eax, eax
je case.0x407297.1
movzx eax, word [eax + 4]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x900]
mov word [ebp - 0x908], ax
push ecx
push eax
mov dword [ebp - 0x14], 0x64
mov dword [ebp - 0x904], 0
call fcn.00404490
mov byte [ebp - 0x910], 0xc2
mov byte [ebp - 0x90d], 0x88
test eax, eax
je 0x40bf06
mov edx, dword [ebp - 0x904]
mov dword [ebp - 0x90c], 0
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0x90e], cl
shr eax, 8
mov byte [ebp - 0x90f], al
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
push eax
lea eax, [ebp - 0x910]
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x90c], 1
mov dword [ebp - 0x904], edx
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0x90e], cl
shr eax, 8
mov byte [ebp - 0x90f], al
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
push eax
lea eax, [ebp - 0x910]
push eax
push esi
call fcn.00418230
jmp case.0x407297.1
mov esi, dword [ebp - 0x1754]
test esi, esi
je case.0x407297.1
movzx eax, word [esi + 4]
push eax
push str.DELETE_MuCastle_NPC_WHERE_MAP_SVR_GROUP___d
push 0x440e30
mov word [ebp - 0x1768], 0xcc1
mov byte [ebp - 0x1766], 0x89
mov word [ebp - 0x1760], ax
mov dword [ebp - 0x24], eax
call fcn.00416550
add esp, 0xc
push dword [0x440e3c]
test al, al
je 0x40c037
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp dword [esi + 8], 0
mov dword [ebp - 0x14], 0
jle 0x40bd08
lea edi, [esi + 0x25]
nop dword [eax]
movzx eax, byte [edi + 1]
push eax
movzx eax, byte [edi]
push eax
movzx eax, byte [edi - 1]
push eax
push dword [edi - 5]
push dword [edi - 9]
push dword [edi - 0xd]
push dword [edi - 0x11]
push dword [edi - 0x15]
push dword [edi - 0x19]
push dword [ebp - 0x24]
push str.EXEC_WZ_CS_ReqNpcUpdate__d___d___d___d___d___d___d___d___d___d
push 0x440e30
call fcn.00416550
add esp, 0x30
push dword [0x440e3c]
test al, al
je 0x40c037
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x14]
add edi, 0x1c
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [esi + 8]
jl 0x40bfd0
jmp 0x40bd08
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1758]
lea eax, [ebp - 0x1768]
push 0xc
push eax
push ecx
mov dword [ebp - 0x1764], 0
call fcn.00418230
jmp case.0x407297.1
push dword [ebx + 0xc]
mov ecx, esi
push dword [ebp - 0x1754]
call fcn.004115e0
add esp, 8
jmp case.0x407297.1
push dword [ebx + 0xc]
mov ecx, esi
push dword [ebp - 0x1754]
call fcn.00405400
add esp, 8
jmp case.0x407297.1
mov esi, dword [ebp - 0x1754]
cmp byte [esi], 0xc1
lea ecx, [esi + 4]
jne 0x40c0b2
mov al, byte [esi + 3]
jmp 0x40c0b4
mov al, byte [ecx]
movzx eax, al
cmp eax, 0x11
ja case.0x407297.1
jmp dword [eax*4 + 0x40cc58]
mov ecx, dword [ebp - 0x1758]
push ecx
call fcn.004111a0
jmp case.0x407297.1
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
push str.EXEC_LTP_Diablo_ChangeDate__d___d___d___d___d___d___d___d___d
push 0x440e30
call fcn.00416550
add esp, 0x2c
test al, al
jne case.0x407297.1
jmp 0x40a10c
mov ecx, dword [ebp - 0x1758]
push ecx
push esi
call fcn.004034d0
jmp case.0x407297.1
lea edi, [esi + 6]
push edi
push 0x440a94
push dword [esi + 0x14]
push 0x440a74
push 0x440a54
push str.UPDATE__s_SET__s___d_WHERE__s___s
push 0x440e30
call fcn.00416550
add esp, 0x1c
test al, al
jne 0x40c165
push edi
push str.CCashShop::BankExSavePoint
push str.__s__Cant_save_credits__Account:__s
push 1
call fcn.00419050
add esp, 0x10
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0x44]
push dword [esi + 0x40]
push dword [esi + 0x3c]
push dword [esi + 0x38]
push dword [esi + 0x34]
push dword [esi + 0x30]
push dword [esi + 0x2c]
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [esi + 0x20]
push str.UPDATE_BankEx_SET_Bless___d__Soul___d__Chaos___d__Creation___d__Life___d__Harmony___d__Guardian___d__LowStone___d__HighStone___d__GemStone___d__Money___I64d_WHERE_AccountID___s
push 0x440e30
call fcn.00416550
add esp, 0x3c
test al, al
jne 0x40a10c
push edi
push str.CCashShop::BankExSavePoint
push str.__s__Cant_save_BankEx__Account:__s
push 1
call fcn.00419050
jmp 0x40a109
mov ecx, dword [ebp - 0x1758]
push ecx
push esi
call fcn.00414c50
jmp case.0x407297.1
cmp byte [esi + 0xc], 0
mov dword [ebp - 0x14], 0
jbe case.0x407297.1
lea edi, [esi + 0x10]
nop dword [eax + eax]
movzx eax, byte [edi + 0xc]
push edi
push eax
push str.UPDATE_GuildMember_SET_G_WareStatus_d_WHERE_Name_s
push 0x440e30
call fcn.00416550
add esp, 0x10
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x14]
add edi, 0xd
movzx eax, byte [esi + 0xc]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, eax
jl 0x40c200
jmp case.0x407297.1
lea eax, [esi + 8]
mov dword [ebp - 0x1734], 0x3fb14c1
push eax
push str.SELECT__from_GuildMember_where_Name___s
push 0x440e30
call fcn.00416550
add esp, 0xc
test al, al
je 0x40c2cc
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40c2cc
push str.G_WareStatus
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40c299
or eax, eax
mov dword [ebp - 0x14], 0xffffffff
jmp 0x40c2aa
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422114
add esp, 4
push dword [0x440e3c]
mov byte [ebp - 0x172c], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40c2ed
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x172c], 0
mov eax, dword [esi + 4]
movq xmm0, qword [esi + 0x13]
mov ecx, dword [ebp - 0x1758]
mov dword [ebp - 0x1730], eax
mov ax, word [esi + 0x1b]
mov word [ebp - 0x1723], ax
mov al, byte [esi + 0x1d]
mov byte [ebp - 0x1721], al
lea eax, [ebp - 0x1734]
push 0x14
push eax
push ecx
movq qword [ebp - 0x172b], xmm0
call fcn.00418230
jmp case.0x407297.1
lea eax, [esi + 0xf]
push eax
movzx eax, byte [esi + 0x1a]
push ecx
push eax
push str.UPDATE_Character_SET_IsStartItem___d_WHERE_AccountID___s_and_Name___s
push 0x440e30
call fcn.00416550
add esp, 0x14
jmp 0x40a10c
mov eax, dword [esi + 4]
mov dword [ebp - 0xfc], eax
lea eax, [esi + 8]
push eax
push str.EXEC_ACHIEVEMENTS_LOAD__s
push 0x440e30
mov dword [ebp - 0x100], 0x4fbd4c1
mov byte [ebp - 0xf8], 1
call fcn.00416550
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
add esp, 0xc
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
test al, al
jne 0x40c3ab
push dword [0x440e3c]
call esi
push 2
push dword [0x440e3c]
call edi
mov byte [ebp - 0xf8], 0
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40c466
cmp ax, 0xffff
je 0x40c466
cmp byte [ebp - 0xf8], 0
je 0x40c47f
xor esi, esi
nop dword [eax]
lea edi, [esi + 1]
push edi
lea eax, [ebp - 0x1734]
push str.count__d
push eax
call fcn.00411130
add esp, 0xc
lea eax, [ebp - 0x1734]
push eax
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40c40d
or eax, eax
jmp 0x40c41e
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
mov dword [ebp + esi*4 - 0xf4], eax
mov esi, edi
cmp esi, 0x32
jl 0x40c3e0
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, byte [ebp - 0xff]
mov ecx, dword [ebp - 0x1758]
push eax
lea eax, [ebp - 0x100]
push eax
push ecx
call fcn.00418230
jmp case.0x407297.1
push dword [0x440e3c]
call esi
push 2
push dword [0x440e3c]
call edi
mov byte [ebp - 0xf8], 0
movzx eax, byte [ebp - 0xff]
mov ecx, dword [ebp - 0x1758]
push eax
lea eax, [ebp - 0x100]
push eax
push ecx
call fcn.00418230
jmp case.0x407297.1
push dword [esi + 0xd4]
push dword [esi + 0xd0]
push dword [esi + 0xcc]
push dword [esi + 0xc8]
push dword [esi + 0xc4]
push dword [esi + 0xc0]
push dword [esi + 0xbc]
push dword [esi + 0xb8]
push dword [esi + 0xb4]
push dword [esi + 0xb0]
push dword [esi + 0xac]
push dword [esi + 0xa8]
push dword [esi + 0xa4]
push dword [esi + 0xa0]
push dword [esi + 0x9c]
push dword [esi + 0x98]
push dword [esi + 0x94]
push dword [esi + 0x90]
push dword [esi + 0x8c]
push dword [esi + 0x88]
push dword [esi + 0x84]
push dword [esi + 0x80]
push dword [esi + 0x7c]
push dword [esi + 0x78]
push dword [esi + 0x74]
push dword [esi + 0x70]
push dword [esi + 0x6c]
push dword [esi + 0x68]
push dword [esi + 0x64]
push dword [esi + 0x60]
push dword [esi + 0x5c]
push dword [esi + 0x58]
push dword [esi + 0x54]
push dword [esi + 0x50]
push dword [esi + 0x4c]
push dword [esi + 0x48]
push dword [esi + 0x44]
push dword [esi + 0x40]
push dword [esi + 0x3c]
push dword [esi + 0x38]
push dword [esi + 0x34]
push dword [esi + 0x30]
push dword [esi + 0x2c]
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0x14]
push dword [esi + 0x10]
push ecx
push str.EXEC_ACHIEVEMENTS_SAVE__s__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d
push 0x440e30
call fcn.00416550
add esp, 0xd4
jmp 0x40a10c
mov ecx, dword [ebp - 0x1758]
push ecx
push esi
call fcn.00416f40
jmp case.0x407297.1
mov ecx, dword [ebp - 0x1758]
push ecx
push esi
call fcn.00417240
jmp case.0x407297.1
lea eax, [esi + 0xf]
push eax
movzx eax, byte [esi + 0x1a]
push ecx
push eax
push str.UPDATE_Character_SET_CtlCode___d_WHERE_AccountID___s_and_Name___s
push 0x440e30
call fcn.00416550
add esp, 0x14
jmp 0x40a10c
mov eax, dword [esi + 0x1c]
lea ecx, [esi + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x1730], 0
mov dword [ebp - 0x1730], eax
mov al, byte [esi + 4]
add esi, 5
movaps xmmword [ebp - 0x1750], xmm0
test al, al
push ecx
mov byte [ebp - 0x174c], al
lea eax, [ebp - 0x130]
movaps xmmword [ebp - 0x1740], xmm0
mov dword [ebp - 0x1750], 0x7fb24c1
push esi
jne 0x40c627
push str.EXEC_WZ_GetBloodCastleEntryCount__s__s
jmp 0x40c62c
push str.EXEC_WZ_GetDevilSquareEntryCount__s__s
push eax
call fcn.00411130
add esp, 0x10
lea eax, [ebp - 0x130]
push eax
push 0x440e30
call fcn.00416550
add esp, 8
test al, al
je 0x40c70c
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40c70c
push str.EntryCount
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40c67a
or eax, eax
jmp 0x40c68b
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push str.LastEntry
mov dword [ebp - 0x1748], eax
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x40c6b6
xorps xmm0, xmm0
mov dword [ebp - 0x1734], 0
movups xmmword [ebp - 0x1744], xmm0
jmp 0x40c6d2
shl eax, 0xe
push 0x13
add eax, 0x441a62
push eax
lea eax, [ebp - 0x1744]
push 0x14
push eax
call fcn.00422930
add esp, 0x10
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, byte [ebp - 0x174f]
mov ecx, dword [ebp - 0x1758]
push eax
lea eax, [ebp - 0x1750]
push eax
push ecx
call fcn.00418230
jmp case.0x407297.1
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, byte [ebp - 0x174f]
mov ecx, dword [ebp - 0x1758]
push eax
lea eax, [ebp - 0x1750]
mov dword [ebp - 0x1748], 0
push eax
push ecx
call fcn.00418230
jmp case.0x407297.1
cmp byte [esi + 4], 0
lea eax, [esi + 0x10]
lea ecx, [esi + 5]
push eax
push ecx
jne 0x40c775
push str.update_Character_set_BCEntryCount__BCEntryCount__1__BCLastEntry__getdate___where_AccountID___s_and_Name___s
push 0x440e30
call fcn.00416550
add esp, 0x10
jmp case.0x407297.1
push str.update_Character_set_DSEntryCount__DSEntryCount__1__DSLastEntry__getdate___where_AccountID___s_and_Name___s
push 0x440e30
call fcn.00416550
add esp, 0x10
jmp case.0x407297.1
mov esi, dword [ebp - 0x1754]
cmp dword [esi + 0x4b4], 0
jle case.0x407297.1
push str.DELETE_FROM_MuDiablo_GUILDLIST
push 0x440e30
call fcn.00416550
add esp, 8
test al, al
je 0x40a10c
xor edi, edi
cmp dword [esi + 0x4b4], edi
jle 0x40a10c
lea eax, [esi + 4]
lea ecx, [esi + 0x324]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ecx
push dword [ecx]
push eax
push str.INSERT_INTO_MuDiablo_GUILDLIST__GUILD_NAME_RENA_COUNT__VALUES___s__d_
push 0x440e30
call fcn.00416550
add esp, 0x10
test al, al
je 0x40a10c
mov ecx, dword [ebp - 0x14]
inc edi
mov eax, dword [ebp - 0x24]
add ecx, 4
add eax, 8
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x24], eax
cmp edi, dword [esi + 0x4b4]
jl 0x40c7d6
jmp 0x40a10c
mov ecx, dword [ebp - 0x1754]
mov edx, esi
call fcn.0040cca0
jmp case.0x407297.1
mov eax, dword [ebp - 0x1754]
push esi
push eax
movzx eax, byte [eax + 3]
push eax
call fcn.00414e30
jmp 0x40c844
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
pop esi
call fcn.004197fb
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret