Function at 0x4073d0
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, 0x1844
call fcn.00418d20
mov eax, dword [0x422008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x1770], ecx
mov ecx, dword [ebx + 8]
push edi
mov byte [ebp - 0x1759], dl
mov dword [ebp - 0x1754], ecx
jmp 0x407421
mov esi, dword [ebp - 0x1770]
imul edi, esi, 0x68
mov dword [ebp - 0x1758], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x4ec590], 0
mov cl, byte [ebp - 0x1759]
mov dword [edi + 0x4ec714], eax
mov edi, dword [ebp - 0x1754]
je 0x40748c
test cl, cl
je 0x40748c
cmp cl, 7
je 0x40748c
movzx eax, byte [edi + 5]
push eax
movzx eax, byte [edi + 4]
push eax
movzx eax, byte [edi + 3]
push eax
movzx eax, byte [edi + 2]
push eax
movzx eax, byte [edi + 1]
push eax
movzx eax, cl
push eax
push str.DSPROTOCOL:_Head:__x__1:__x__2:__x__3:__x__4:__x__5:__x
push 0
call fcn.004170d0
mov cl, byte [ebp - 0x1759]
add esp, 0x20
movzx eax, cl
cmp eax, 0xfb
ja case.0x40763b.1
movzx eax, byte [eax + 0x40d168]
jmp dword [eax*4 + 0x40d044]
push str.SELECT_ItemCount_FROM_GameServerInfo_WHERE_Number0
push 0x422408
mov dword [ebp - 0x1748], 0x10008c1
mov dword [ebp - 0x1744], 0
call fcn.00414eb0
add esp, 8
test al, al
je 0x40752b
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40752b
push str.ItemCount
call fcn.00415100
cmp eax, 0xffffffff
jne 0x4074f7
or eax, eax
jmp 0x407509
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
push dword [0x422414]
mov dword [ebp - 0x1744], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x407573
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
push str.INSERT_INTO_GameServerInfo__Number_ItemCount_ZenCount_AceItemCount__VALUES__0_0_0_0_
push 0x422408
call fcn.00414eb0
add esp, 8
push dword [0x422414]
call edi
push 2
push dword [0x422414]
call esi
mov esi, dword [ebp - 0x1770]
push 8
lea eax, [ebp - 0x1748]
push eax
push esi
call fcn.004163f0
mov eax, dword [ebp - 0x1754]
mov ecx, dword [ebp - 0x1758]
movzx esi, word [eax + 0x38]
movzx edi, word [eax + 4]
lea ecx, [ecx + 0x4ec6d8]
add eax, 6
push eax
push 0x32
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov ecx, dword [ebp - 0x1758]
add esp, 0xc
push esi
push edi
lea eax, [ecx + 0x4ec6d8]
mov word [ecx + 0x4ec70a], di
push eax
push dword [ecx + 0x4ec6b4]
mov word [ecx + 0x4ec70c], si
push str._ServerManager___d__ServerInfo___s____d____d_
push 0
call fcn.004170d0
add esp, 0x18
jmp case.0x40763b.1
mov edx, esi
mov ecx, edi
call fcn.0040d550
jmp case.0x40763b.1
mov edx, esi
mov ecx, edi
call fcn.0040dda0
jmp case.0x40763b.1
mov edx, esi
mov ecx, edi
call fcn.0040e340
jmp case.0x40763b.1
mov edx, esi
mov ecx, edi
call fcn.0040e7a0
jmp case.0x40763b.1
cmp byte [edi], 0xc1
jne 0x407625
mov al, byte [edi + 3]
jmp 0x407628
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x75
ja case.0x40763b.1
movzx eax, byte [eax + 0x40d27c]
jmp dword [eax*4 + 0x40d264]
push esi
push edi
call fcn.004171f0
jmp case.0x40763b.1
push esi
push edi
call fcn.00417960
jmp case.0x40763b.1
cmp dword [edi + 0xf1c], 0
lea eax, [edi + 0x13]
push 0x4eb1c8
push 0
push eax
push 0
push 0xf00
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
lea esi, [edi + 8]
mov dword [0x4eb1c8], 0xf00
push 1
push dword [0x422414]
mov dword [ebp - 0x1758], esi
jne 0x4076ef
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push esi
push dword [edi + 0xf14]
push str.UPDATE_warehouse_SET_Items__Money_d_WHERE_AccountID_s
push 0x422408
call fcn.00414eb0
add esp, 0x10
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov ecx, dword [ebp - 0x1754]
push dword [ebp - 0x1758]
push dword [ecx + 0xf18]
push str.UPDATE_warehouse_SET_pw_d_WHERE_AccountID_s
jmp 0x4077a1
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [edi + 0xf1c]
push esi
push dword [edi + 0xf14]
push str.UPDATE_ExtWarehouse_SET_Items__Money_d_WHERE_AccountID_s_AND_Number_d
push 0x422408
call fcn.00414eb0
add esp, 0x14
jmp 0x4076b5
push esi
push edi
call fcn.004176e0
jmp case.0x40763b.1
push 0x4eb1c8
push 0
lea eax, [edi + 0x13]
mov dword [0x4eb1c8], 0xf00
push eax
push 0
push 0xf00
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
lea eax, [edi + 8]
push eax
push dword [edi + 0xf14]
push str.UPDATE_WarehouseGuild_SET_Items__Money_d_WHERE_Guild_s
push 0x422408
call fcn.00414eb0
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
add esp, 0x10
push dword [0x422414]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov ecx, dword [ebp - 0x1754]
lea eax, [ecx + 8]
push eax
push dword [ecx + 0xf18]
push str.UPDATE_WarehouseGuild_SET_pw_d_WHERE_Guild_s
push 0x422408
call fcn.00414eb0
add esp, 0x10
push dword [0x422414]
call edi
push 2
push dword [0x422414]
call esi
jmp case.0x40763b.1
mov edx, esi
mov ecx, edi
call fcn.0040f380
jmp case.0x40763b.1
mov edx, esi
mov ecx, edi
call fcn.0040f540
jmp case.0x40763b.1
mov edx, esi
mov ecx, edi
call fcn.0040f760
jmp case.0x40763b.1
movzx eax, word [edi + 4]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x172c], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x1722], ax
mov al, byte [edi + 0x10]
add edi, 0x11
mov byte [ebp - 0x1720], al
movq qword [ebp - 0x172a], xmm0
mov word [ebp - 0x1730], 0x1ec1
movzx eax, word [edi + 8]
movq xmm0, qword [edi]
mov word [ebp - 0x1717], ax
mov al, byte [edi + 0xa]
mov byte [ebp - 0x1715], al
xor eax, eax
mov byte [ebp - 0x172e], 0xa
movq qword [ebp - 0x171f], xmm0
mov cl, byte [edi + eax]
cmp cl, 0x20
je 0x4078ac
cmp cl, 0x22
je 0x4078ac
cmp cl, 0x27
je 0x4078ac
inc eax
cmp eax, 0xb
jl 0x407850
mov esi, dword [0x422028]
cmp esi, dword [0x42202c]
je 0x407890
push esi
push edi
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 8
test eax, eax
jne 0x4078ac
add esi, 0x20
cmp esi, dword [0x42202c]
jne 0x407876
mov ecx, dword [ebp - 0x1770]
lea eax, [ebp - 0x1730]
push 0x1e
push eax
mov byte [ebp - 0x1714], 0
push ecx
jmp 0x40d019
mov ecx, dword [ebp - 0x1770]
lea eax, [ebp - 0x1730]
push 0x1e
push eax
mov byte [ebp - 0x1714], 1
push ecx
jmp 0x40d019
movzx eax, word [edi + 4]
lea ecx, [edi + 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]
mov byte [ebp - 0x1728], al
movzx eax, word [edi + 0x19]
mov dword [ebp - 0x14], ecx
lea ecx, [edi + 0x11]
add edi, 0x1c
mov word [ebp - 0x171f], ax
mov al, byte [ecx + 0xa]
mov byte [ebp - 0x171d], al
movq qword [ebp - 0x1732], xmm0
movzx eax, word [edi + 8]
movq xmm0, qword [ecx]
mov word [ebp - 0x1714], ax
mov al, byte [edi + 0xa]
movq qword [ebp - 0x1727], xmm0
movq xmm0, qword [edi]
mov byte [ebp - 0x1712], al
xor eax, eax
mov word [ebp - 0x1738], 0x28c1
mov byte [ebp - 0x1736], 0xb
mov dword [ebp - 0x1744], ecx
movq qword [ebp - 0x171c], xmm0
nop word [eax + eax]
mov cl, byte [edi + eax]
cmp cl, 0x20
je 0x407a3f
cmp cl, 0x22
je 0x407a3f
cmp cl, 0x27
je 0x407a3f
inc eax
cmp eax, 0xb
jl 0x407960
mov esi, dword [0x422028]
cmp esi, dword [0x42202c]
je 0x4079b0
push esi
push edi
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 8
test eax, eax
jne 0x407a3f
add esi, 0x20
cmp esi, dword [0x42202c]
jne 0x407992
push edi
push dword [ebp - 0x1744]
push dword [ebp - 0x14]
push str.EXEC_WZ_RenameCharacter__s__s__s
push 0x422408
call fcn.00414eb0
add esp, 0x14
test al, al
je 0x407a25
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407a25
push 0x423036
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov byte [ebp - 0x1711], al
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1770]
lea eax, [ebp - 0x1738]
push 0x28
push eax
push ecx
jmp 0x40d019
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1770]
lea eax, [ebp - 0x1738]
push 0x28
push eax
mov byte [ebp - 0x1711], 1
push ecx
jmp 0x40d019
cmp byte [edi], 0xc1
jne 0x407a65
mov al, byte [edi + 3]
jmp 0x407a68
mov al, byte [edi + 4]
test al, al
je 0x407b6e
cmp al, 0x30
jne case.0x40763b.1
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_QuestKillCount_WHERE_Name_s
push 0x422408
mov dword [ebp - 0x1758], eax
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x407b0c
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407b0c
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov eax, dword [ebp - 0x1754]
push dword [ebp - 0x1758]
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 0x422408
call fcn.00414eb0
add esp, 0x38
jmp 0x4077ae
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
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 - 0x1758]
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 0x422408
call fcn.00414eb0
add esp, 0x38
jmp 0x4077ae
push esi
push edi
call fcn.00415230
jmp case.0x40763b.1
cmp byte [edi], 0xc1
jne 0x407b84
mov al, byte [edi + 3]
jmp 0x407b87
mov al, byte [edi + 4]
test al, al
je 0x407cd7
cmp al, 0x30
jne case.0x40763b.1
lea eax, [edi + 0x13]
push eax
push str.SELECT_Name_FROM_MasterSkillTree_WHERE_Name_s
push 0x422408
mov dword [ebp - 0x1758], eax
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x407c54
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407c54
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov eax, dword [ebp - 0x1754]
push 0x4eb1c8
push 0
add eax, 0x30
mov dword [0x4eb1c8], 0xb4
push eax
push 0
push 0xb4
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov eax, dword [ebp - 0x1754]
push dword [ebp - 0x1758]
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 0x422408
call fcn.00414eb0
add esp, 0x1c
jmp 0x4077ae
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov eax, dword [ebp - 0x1754]
push 0x4eb1c8
push 0
add eax, 0x30
mov dword [0x4eb1c8], 0xb4
push eax
push 0
push 0xb4
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x422414]
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 - 0x1758]
push str.INSERT_INTO_MasterSkillTree__Name_MasterLevel_MasterPoint_MasterExperience_MasterSkill__VALUES___s__d__d__I64d___
push 0x422408
call fcn.00414eb0
add esp, 0x1c
jmp 0x4077ae
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x102], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0xf8], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0xf6], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x100], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0xed], ax
mov al, byte [ecx + 0xa]
push str.SELECT__FROM_MasterSkillTree_WHERE_Name_s
push 0x422408
mov dword [ebp - 0x108], 0xde800c2
mov byte [ebp - 0x104], 0
movq qword [ebp - 0xf5], xmm0
mov byte [ebp - 0xeb], al
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x407e31
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407e31
push str.MasterLevel
call fcn.00415100
mov edi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp eax, 0xffffffff
jne 0x407d82
or eax, 0xffffffff
jmp 0x407d90
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push str.MasterPoint
mov dword [ebp - 0xe8], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x407da9
or eax, eax
jmp 0x407db7
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push str.MasterExperience
mov dword [ebp - 0xe4], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x407dd3
or eax, eax
or edx, 0xffffffff
jmp 0x407de5
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__atoi64]
add esp, 4
mov dword [ebp - 0xe0], eax
lea eax, [ebp - 0xd8]
push 0xb4
push eax
push str.MasterSkill
mov dword [ebp - 0xdc], edx
call fcn.00415160
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xe8
lea eax, [ebp - 0x108]
jmp 0x40d017
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xb4
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xe8], 0
xorps xmm0, xmm0
mov dword [ebp - 0xe4], 0
push 0xff
push eax
movlpd qword [ebp - 0xe0], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x108]
push 0xe8
jmp 0x40d017
cmp byte [edi], 0xc1
jne 0x407e9d
mov al, byte [edi + 3]
jmp 0x407ea0
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x31
ja case.0x40763b.1
movzx eax, byte [eax + 0x40d308]
jmp dword [eax*4 + 0x40d2f4]
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x172c], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x1722], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x1720], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x172a], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x1717], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Status_FROM_EventLeoTheHelper_WHERE_Name_s
push 0x422408
mov dword [ebp - 0x1730], 0xe1ec1
mov dword [ebp - 0x1744], ecx
movq qword [ebp - 0x171f], xmm0
mov byte [ebp - 0x1715], al
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x407f94
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407f94
push str.Status
call fcn.00415100
cmp eax, 0xffffffff
jne 0x407f55
or eax, eax
jmp 0x407f67
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
push dword [0x422414]
mov byte [ebp - 0x1714], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1e
lea eax, [ebp - 0x1730]
jmp 0x40d017
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
push dword [ebp - 0x1744]
push str.INSERT_INTO_EventLeoTheHelper__Name_Status__VALUES___s_0_
push 0x422408
call fcn.00414eb0
add esp, 0xc
push dword [0x422414]
call edi
push 2
push dword [0x422414]
call esi
mov esi, dword [ebp - 0x1770]
lea eax, [ebp - 0x1730]
mov byte [ebp - 0x1714], 0
push 0x1e
jmp 0x40d017
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x172c], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x1722], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x1720], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x172a], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x1717], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Status_FROM_EventSantaClaus_WHERE_Name_s
push 0x422408
mov dword [ebp - 0x1730], 0x10e1ec1
mov dword [ebp - 0x1744], ecx
movq qword [ebp - 0x171f], xmm0
mov byte [ebp - 0x1715], al
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x408082
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x407f42
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
push dword [ebp - 0x1744]
push str.INSERT_INTO_EventSantaClaus__Name_Status__VALUES___s_0_
jmp 0x407fbd
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_EventLeoTheHelper_WHERE_Name_s
push 0x422408
mov dword [ebp - 0x1744], eax
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40811c
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40811c
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov ecx, dword [ebp - 0x1754]
mov eax, dword [ebp - 0x1744]
push eax
movzx eax, byte [ecx + 0x1c]
push eax
push str.UPDATE_EventLeoTheHelper_SET_Status_d_WHERE_Name_s
jmp 0x4077a1
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
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 0x4077a1
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_EventSantaClaus_WHERE_Name_s
push 0x422408
mov dword [ebp - 0x1744], eax
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x4081bf
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4081bf
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov ecx, dword [ebp - 0x1754]
mov eax, dword [ebp - 0x1744]
push eax
movzx eax, byte [ecx + 0x1c]
push eax
push str.UPDATE_EventSantaClaus_SET_Status_d_WHERE_Name_s
jmp 0x4077a1
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
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 0x4077a1
cmp byte [edi], 0xc1
jne 0x408200
mov al, byte [edi + 3]
jmp 0x408203
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0xa
ja case.0x40763b.1
jmp dword [eax*4 + 0x40d33c]
movzx eax, word [edi + 4]
lea edx, [edi + 6]
movq xmm0, qword [edx]
lea ecx, [edi + 0x11]
mov word [ebp - 0x1734], ax
movzx eax, word [edx + 8]
mov word [ebp - 0x172a], ax
mov al, byte [edx + 0xa]
push ecx
mov byte [ebp - 0x1728], al
movzx eax, word [ecx + 8]
push edx
movq qword [ebp - 0x1732], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x171f], ax
mov al, byte [ecx + 0xa]
push str.EXEC_WZ_GetResetInfo__s__s
push 0x422408
mov dword [ebp - 0x1738], 0xf28c1
movq qword [ebp - 0x1727], xmm0
mov byte [ebp - 0x171d], al
call fcn.00414eb0
add esp, 0x10
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.ResetDay
call fcn.00415100
mov edi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp eax, 0xffffffff
jne 0x4082ab
or eax, 0xffffffff
jmp 0x4082b9
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push str.ResetWek
mov dword [ebp - 0x171c], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x4082d2
or eax, eax
jmp 0x4082e0
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push str.ResetMon
mov dword [ebp - 0x1718], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x4082f9
or eax, eax
jmp 0x408307
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push dword [0x422414]
mov dword [ebp - 0x1714], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x28
lea eax, [ebp - 0x1738]
jmp 0x40d017
movzx eax, word [edi + 4]
lea edx, [edi + 6]
movq xmm0, qword [edx]
lea ecx, [edi + 0x11]
mov word [ebp - 0x1734], ax
movzx eax, word [edx + 8]
mov word [ebp - 0x172a], ax
mov al, byte [edx + 0xa]
push ecx
mov byte [ebp - 0x1728], al
movzx eax, word [ecx + 8]
push edx
movq qword [ebp - 0x1732], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x171f], ax
mov al, byte [ecx + 0xa]
push str.EXEC_WZ_GetMasterResetInfo__s__s
push 0x422408
mov dword [ebp - 0x1738], 0x10f28c1
movq qword [ebp - 0x1727], xmm0
mov byte [ebp - 0x171d], al
call fcn.00414eb0
add esp, 0x10
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.MasterResetDay
call fcn.00415100
mov edi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp eax, 0xffffffff
jne 0x4083c9
or eax, 0xffffffff
jmp 0x4083d7
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push str.MasterResetWek
mov dword [ebp - 0x171c], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x4083f8
or eax, eax
push str.MasterResetMon
jmp 0x4082e5
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push str.MasterResetMon
jmp 0x4082e5
push esi
push edi
call fcn.004051d0
jmp case.0x40763b.1
push dword [edi + 0x38]
lea eax, [edi + 0x27]
push dword [edi + 0x34]
push eax
lea eax, [edi + 0x1c]
push eax
lea eax, [edi + 0x11]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_SetReward__s__s__s__s__d__d
push 0x422408
call fcn.00414eb0
add esp, 0x20
jmp 0x40cee5
push dword [edi + 0x20]
lea eax, [edi + 0x11]
push dword [edi + 0x1c]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_SetRewardAll__s__s__d__d
push 0x422408
call fcn.00414eb0
add esp, 0x18
jmp 0x40cee5
movzx eax, word [edi + 4]
lea esi, [edi + 6]
movq xmm0, qword [esi]
lea edx, [edi + 0x11]
mov word [ebp - 0x1734], ax
lea ecx, [edi + 0x1c]
movzx eax, word [esi + 8]
mov word [ebp - 0x172a], ax
mov al, byte [esi + 0xa]
mov byte [ebp - 0x1728], al
movzx eax, word [edx + 8]
push ecx
mov word [ebp - 0x171f], ax
mov al, byte [edx + 0xa]
push edx
movq qword [ebp - 0x1732], xmm0
movq xmm0, qword [edx]
mov byte [ebp - 0x171d], al
movzx eax, word [ecx + 8]
push esi
movq qword [ebp - 0x1727], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x1714], ax
mov al, byte [ecx + 0xa]
push str.EXEC_WZ_RenameCharacter__s__s__s
push 0x422408
mov dword [ebp - 0x1738], 0x50f28c1
movq qword [ebp - 0x171c], xmm0
mov byte [ebp - 0x1712], al
call fcn.00414eb0
add esp, 0x14
test al, al
je 0x40855a
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40855a
push 0x423036
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov byte [ebp - 0x1711], al
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1770]
lea eax, [ebp - 0x1738]
push 0x28
push eax
push ecx
jmp 0x40d019
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1770]
lea eax, [ebp - 0x1738]
push 0x28
push eax
mov byte [ebp - 0x1711], 2
push ecx
jmp 0x40d019
mov ax, word [edi + 4]
mov word [ebp - 0x1744], ax
lea eax, [edi + 6]
push eax
push str.SELECT__FROM_Character_WHERE_Name_s
push 0x422408
mov dword [ebp - 0x1748], 0x60f08c1
mov byte [ebp - 0x1742], 0
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x408667
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408667
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
lea eax, [edi + 6]
push eax
movzx eax, word [edi + 0x12]
push eax
push str.UPDATE_MEMB_INFO_SET_BLOC_CODE1_BLOC_EXPIRE_getdate___d__WHERE_MEMB___ID_SELECT_TOP_1_AccountID_FROM_Character_WHERE_Name___s_
push 0x422408
call fcn.00414eb0
add esp, 0x10
test al, al
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push dword [0x422414]
jne 0x408642
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call eax
push 8
lea eax, [ebp - 0x1748]
jmp 0x40d017
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call eax
mov byte [ebp - 0x1742], 1
lea eax, [ebp - 0x1748]
push 8
jmp 0x40d017
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 8
lea eax, [ebp - 0x1748]
jmp 0x40d017
mov ax, word [edi + 4]
mov word [ebp - 0x1744], ax
lea eax, [edi + 6]
push eax
push str.SELECT__FROM_Character_WHERE_Name_s
push 0x422408
mov dword [ebp - 0x1748], 0x70f08c1
mov byte [ebp - 0x1742], 0
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x408667
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408667
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
lea eax, [edi + 6]
push eax
movzx eax, word [edi + 0x12]
push eax
push str.UPDATE_CHARACTER_SET_CTLCODE1_BLOC_EXPIRE_getdate___d__WHERE_NAME_s
jmp 0x408608
mov ax, word [edi + 4]
mov word [ebp - 0x1744], ax
lea eax, [edi + 6]
push eax
push str.SELECT__FROM_CustomGift_WHERE_AccountID_s
push 0x422408
mov dword [ebp - 0x1748], 0x80f08c1
mov dword [ebp - 0x1758], eax
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x4087da
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4087da
push str.Quantity
call fcn.00415100
cmp eax, 0xffffffff
jne 0x408765
or eax, eax
jmp 0x408777
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
inc al
mov byte [ebp - 0x1742], al
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
push dword [ebp - 0x1758]
push str.UPDATE_CustomGift_SET_QuantityQuantity1_WHERE_AccountID_s
push 0x422408
call fcn.00414eb0
add esp, 0xc
push dword [0x422414]
call edi
push 2
push dword [0x422414]
call esi
mov esi, dword [ebp - 0x1770]
lea eax, [ebp - 0x1748]
push 8
jmp 0x40d017
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [ebp - 0x1758]
push str.INSERT_INTO_CustomGift__AccountID_Quantity__VALUES___s_1_
push 0x422408
call fcn.00414eb0
add esp, 0xc
push dword [0x422414]
test al, al
jne 0x40883d
call edi
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call eax
mov byte [ebp - 0x1742], 0
lea eax, [ebp - 0x1748]
push 8
jmp 0x40d017
call edi
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call eax
mov byte [ebp - 0x1742], 1
lea eax, [ebp - 0x1748]
push 8
jmp 0x40d017
mov ax, word [edi + 4]
mov edx, 0x3e7
movzx ecx, word [edi + 6]
mov word [ebp - 0x1766], ax
movzx eax, word [edi + 8]
mov byte [ebp - 0x176c], 0xc2
mov word [ebp - 0x1769], 0x90f
mov dword [ebp - 0x1758], 0xe
mov word [ebp - 0x1764], cx
mov word [ebp - 0x1762], ax
mov byte [ebp - 0x1760], 0
cmp ax, dx
jne 0x4088b1
or eax, 0xffffffff
push eax
push ecx
push str.EXEC_WZ_CustomTop__d__d
push 0x422408
call fcn.00414eb0
add esp, 0x10
test al, al
je 0x408994
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408994
lea edi, [ebp - 0x1012]
nop dword [eax]
push str.VALUE1
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40891c
xorps xmm0, xmm0
mov word [ebp - 0x1748], 0
movq qword [ebp - 0x1750], xmm0
mov byte [ebp - 0x1746], 0
jmp 0x408939
shl eax, 0xd
push 0xa
add eax, 0x423036
push eax
lea eax, [ebp - 0x1750]
push 0xb
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
add esp, 0x10
push str.VALUE2
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40894c
or eax, eax
jmp 0x40895e
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
push dword [0x422414]
add dword [ebp - 0x1758], 0x10
inc byte [ebp - 0x1760]
mov dword [ebp - 0x1744], eax
movups xmm0, xmmword [ebp - 0x1750]
movups xmmword [edi], xmm0
add edi, 0x10
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x4088f0
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1758]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x176b], al
mov eax, dword [ebp - 0x1764]
mov dword [ebp - 0x1018], eax
mov ax, word [ebp - 0x1760]
mov byte [ebp - 0x176a], cl
movq xmm0, qword [ebp - 0x176c]
mov word [ebp - 0x1014], ax
lea eax, [ebp - 0x1020]
movq qword [ebp - 0x1020], xmm0
push ecx
jmp 0x40d017
movzx eax, word [edi + 4]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x172c], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x1722], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x1720], al
movzx eax, word [edi + 0x19]
mov word [ebp - 0x1717], ax
mov al, byte [edi + 0x1b]
movq qword [ebp - 0x172a], xmm0
movq xmm0, qword [edi + 0x11]
mov byte [ebp - 0x1715], al
lea eax, [ebp - 0x1730]
mov dword [ebp - 0x1730], 0xa0f1ec1
movq qword [ebp - 0x171f], xmm0
push 0x1e
jmp 0x40d017
cmp byte [edi], 0xc1
jne 0x408a69
mov al, byte [edi + 3]
jmp 0x408a6c
mov al, byte [edi + 4]
test al, al
je 0x408b94
cmp al, 0x30
jne case.0x40763b.1
lea eax, [edi + 0x13]
push eax
push str.SELECT_Name_FROM_QuestWorld_WHERE_Name_s
push 0x422408
mov dword [ebp - 0x1758], eax
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x408b23
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408b23
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov eax, dword [ebp - 0x1754]
push 0x4eb1c8
push 0
add eax, 0x1e
mov dword [0x4eb1c8], 0x190
push eax
push 0
push 0x190
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x1758]
push str.UPDATE_QuestWorld_SET_QuestWorldList__WHERE_Name_s
push 0x422408
call fcn.00414eb0
add esp, 0xc
jmp 0x4077ae
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov eax, dword [ebp - 0x1754]
push 0x4eb1c8
push 0
add eax, 0x1e
mov dword [0x4eb1c8], 0x190
push eax
push 0
push 0x190
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x1758]
push str.INSERT_INTO_QuestWorld__Name_QuestWorldList__VALUES___s___
push 0x422408
call fcn.00414eb0
add esp, 0xc
jmp 0x4077ae
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x1ca], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x1c0], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x1be], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x1c8], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x1b5], ax
mov al, byte [ecx + 0xa]
push str.SELECT_QuestWorldList_FROM_QuestWorld_WHERE_Name_s
push 0x422408
mov dword [ebp - 0x1d0], 0x10ae01c2
mov byte [ebp - 0x1cc], 0
movq qword [ebp - 0x1bd], xmm0
mov byte [ebp - 0x1b3], al
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x408c5d
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408c5d
push 0x190
lea eax, [ebp - 0x1b2]
push eax
push str.QuestWorldList
call fcn.00415160
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1ae
lea eax, [ebp - 0x1d0]
jmp 0x40d017
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x190
lea eax, [ebp - 0x1b2]
push 0xff
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1d0]
push 0x1ae
jmp 0x40d017
cmp byte [edi], 0xc1
jne 0x408caa
mov al, byte [edi + 3]
jmp 0x408cad
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x30
ja case.0x40763b.1
movzx eax, byte [eax + 0x40d384]
jmp dword [eax*4 + 0x40d368]
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x1734], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x172a], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x1728], al
movzx eax, word [ecx + 8]
mov word [ebp - 0x171f], ax
mov al, byte [ecx + 0xa]
mov byte [ebp - 0x171d], al
movzx eax, byte [edi + 0x1c]
push eax
push ecx
movq qword [ebp - 0x1732], xmm0
movq xmm0, qword [ecx]
push str.INSERT_INTO_Gens_Rank__Name_Family_Contribution__VALUES___s__d_0_
push 0x422408
mov dword [ebp - 0x1738], 0x1128c1
movq qword [ebp - 0x1727], xmm0
mov word [ebp - 0x171c], 0
mov dword [ebp - 0x1718], 0
mov dword [ebp - 0x1714], 0
call fcn.00414eb0
add esp, 0x10
push dword [0x422414]
test al, al
jne 0x408d87
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x171c], 1
lea eax, [ebp - 0x1738]
push 0x28
jmp 0x40d017
mov al, byte [edi + 0x1c]
mov byte [ebp - 0x171b], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, byte [edi + 0x1c]
push eax
lea eax, [edi + 0x11]
push eax
push str.EXEC_WZ_GetCharacterGensInfo__s__d
push 0x422408
call fcn.00414eb0
add esp, 0x10
test al, al
je 0x408e57
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408e57
push str.Rank
call fcn.00415100
mov edi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp eax, 0xffffffff
jne 0x408df3
or eax, 0xffffffff
jmp 0x408e01
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push str.Contribution
mov dword [ebp - 0x1718], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x408e1a
or eax, eax
jmp 0x408e28
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push dword [0x422414]
mov dword [ebp - 0x1714], eax
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call eax
push 0x28
lea eax, [ebp - 0x1738]
jmp 0x40d017
push dword [0x422414]
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call eax
mov byte [ebp - 0x171c], 1
lea eax, [ebp - 0x1738]
push 0x28
jmp 0x40d017
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x172c], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x1722], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x1720], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x172a], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x1717], ax
mov al, byte [ecx + 0xa]
push str.DELETE_FROM_Gens_Rank_WHERE_Name_s
push 0x422408
mov dword [ebp - 0x1730], 0x1111ec1
movq qword [ebp - 0x171f], xmm0
mov byte [ebp - 0x1715], al
call fcn.00414eb0
add esp, 0xc
push dword [0x422414]
test al, al
jne 0x408f1a
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x1714], 1
jmp 0x408f35
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x1714], 0
push 0x1e
lea eax, [ebp - 0x1730]
push eax
push esi
call fcn.004163f0
mov eax, dword [edi + 0x20]
push 0xffffffffffffffff
inc eax
push eax
movzx eax, byte [edi + 0x1c]
push eax
call fcn.00412c20
jmp case.0x40763b.1
push esi
push edi
call fcn.00412890
jmp case.0x40763b.1
push esi
push edi
call fcn.00412a60
jmp case.0x40763b.1
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x1734], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x172a], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x1728], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x1732], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x171f], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Rank_Status_FROM_Gens_Reward_WHERE_Name_s
push 0x422408
mov dword [ebp - 0x1738], 0x41128c1
movq qword [ebp - 0x1727], xmm0
mov byte [ebp - 0x171d], al
mov word [ebp - 0x171c], 0
mov dword [ebp - 0x1718], 0
mov dword [ebp - 0x1714], 0
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40909e
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40909e
mov al, byte [edi + 0x1c]
push str.Rank
mov byte [ebp - 0x171b], al
call fcn.00415100
mov edi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp eax, 0xffffffff
jne 0x40903c
or eax, 0xffffffff
jmp 0x40904a
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push str.Status
mov dword [ebp - 0x1718], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x409063
or eax, eax
jmp 0x409071
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push dword [0x422414]
mov dword [ebp - 0x1714], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x28
lea eax, [ebp - 0x1738]
jmp 0x40d017
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x171c], 1
lea eax, [ebp - 0x1738]
push 0x28
jmp 0x40d017
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_Gens_Reward_WHERE_Name_s
push 0x422408
mov dword [ebp - 0x1744], eax
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x409136
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409136
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov ecx, dword [ebp - 0x1754]
mov eax, dword [ebp - 0x1744]
push eax
push dword [ecx + 0x24]
push str.UPDATE_Gens_Reward_SET_Status_d_WHERE_Name_s
jmp 0x4077a1
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov ecx, dword [ebp - 0x1754]
push dword [ecx + 0x24]
lea eax, [ecx + 0x11]
push dword [ecx + 0x20]
push eax
push str.INSERT_INTO_Gens_Reward__Name_Rank_Status__VALUES___s__d__d_
push 0x422408
call fcn.00414eb0
add esp, 0x14
jmp 0x4077ae
cmp byte [edi], 0xc1
jne 0x409185
mov al, byte [edi + 3]
jmp 0x409188
mov al, byte [edi + 4]
test al, al
je 0x4092b0
cmp al, 0x30
jne case.0x40763b.1
lea eax, [edi + 0x13]
push eax
push str.SELECT_Name_FROM_HelperData_WHERE_Name_s
push 0x422408
mov dword [ebp - 0x1758], eax
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40923f
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40923f
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov eax, dword [ebp - 0x1754]
push 0x4eb1c8
push 0
add eax, 0x1e
mov dword [0x4eb1c8], 0x100
push eax
push 0
push pe_nt_image_headers32
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x1758]
push str.UPDATE_HelperData_SET_Data__WHERE_Name_s
push 0x422408
call fcn.00414eb0
add esp, 0xc
jmp 0x4077ae
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov eax, dword [ebp - 0x1754]
push 0x4eb1c8
push 0
add eax, 0x1e
mov dword [0x4eb1c8], 0x100
push eax
push 0
push pe_nt_image_headers32
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x1758]
push str.INSERT_INTO_HelperData__Name_Data__VALUES___s___
push 0x422408
call fcn.00414eb0
add esp, 0xc
jmp 0x4077ae
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x13a], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x130], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x12e], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x138], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x125], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Data_FROM_HelperData_WHERE_Name_s
push 0x422408
mov dword [ebp - 0x140], 0x172001c2
mov byte [ebp - 0x13c], 0
movq qword [ebp - 0x12d], xmm0
mov byte [ebp - 0x123], al
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x409380
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409380
push pe_nt_image_headers32
lea eax, [ebp - 0x121]
mov byte [ebp - 0x122], 0
push eax
push str.Data
call fcn.00415160
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x120
lea eax, [ebp - 0x140]
jmp 0x40d017
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push pe_nt_image_headers32
lea eax, [ebp - 0x121]
mov byte [ebp - 0x122], 1
push 0xff
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x140]
push 0x120
jmp 0x40d017
cmp byte [edi], 0xc1
jne 0x4093d4
mov al, byte [edi + 3]
jmp 0x4093d7
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x34
ja case.0x40763b.1
movzx eax, byte [eax + 0x40d3ec]
jmp dword [eax*4 + 0x40d3b8]
push esi
push edi
call fcn.00402410
jmp case.0x40763b.1
push esi
push edi
call fcn.00402590
jmp case.0x40763b.1
push esi
push edi
call fcn.00402750
jmp case.0x40763b.1
push esi
push edi
call fcn.00402a50
jmp case.0x40763b.1
push esi
push edi
call fcn.00402df0
jmp case.0x40763b.1
cmp byte [edi + 0x13], 0
mov edx, 0x14
movzx eax, word [edi + 6]
movq xmm0, qword [edi + 8]
mov word [ebp - 0x172a], ax
movzx eax, word [edi + 0x10]
mov word [ebp - 0x1720], ax
mov al, byte [edi + 0x12]
mov byte [ebp - 0x1730], 0xc2
mov word [ebp - 0x172d], 0x518
mov dword [ebp - 0x1754], edx
movq qword [ebp - 0x1728], xmm0
mov byte [ebp - 0x171e], al
mov byte [ebp - 0x171d], 0
mov dword [ebp - 0x1744], 0
jbe 0x4095d4
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x14], eax
lea esi, [edi + 0x18]
nop dword [eax + eax]
push dword [esi]
push str.SELECT_Time_FROM_CashShopPeriodicItem_WHERE_ItemSerial_d
push 0x422408
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x409528
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409528
mov al, byte [esi - 4]
mov byte [ebp - 0x1768], al
mov eax, dword [esi]
push str.Time
mov dword [ebp - 0x1764], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x4094ee
or eax, eax
jmp 0x409500
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
push dword [0x422414]
mov dword [ebp - 0x1758], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x1758]
jmp 0x409585
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_CashShopPeriodicItem__ItemSerial_Time__VALUES___d__d_
push 0x422408
call fcn.00414eb0
add esp, 0x10
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [ebp - 0x1768], al
mov eax, dword [esi]
mov dword [ebp - 0x1764], eax
xor eax, eax
mov ecx, dword [ebp - 0x14]
add esi, 8
movq xmm0, qword [ebp - 0x1768]
mov edx, dword [ebp - 0x1754]
inc byte [ebp - 0x171d]
add edx, 0xc
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
add ecx, 0xc
movzx eax, byte [edi + 0x13]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x1744]
inc ecx
mov dword [ebp - 0x1754], edx
mov dword [ebp - 0x1744], ecx
cmp ecx, eax
jl 0x4094a0
mov esi, dword [ebp - 0x1770]
mov eax, edx
mov byte [ebp - 0x172e], dl
shr eax, 8
mov byte [ebp - 0x172f], al
movups xmm0, xmmword [ebp - 0x1730]
mov eax, dword [ebp - 0x1720]
mov dword [ebp - 0x1010], eax
lea eax, [ebp - 0x1020]
movups xmmword [ebp - 0x1020], xmm0
push edx
jmp 0x40d017
movzx eax, word [edi + 4]
lea ecx, [edi + 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]
mov byte [ebp - 0x172c], al
mov eax, dword [edi + 0x14]
push ecx
mov dword [ebp - 0x1728], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x1724], eax
mov eax, dword [edi + 0x1c]
push str.SELECT__FROM_CashShopData_WHERE_AccountID_s
push 0x422408
mov dword [ebp - 0x173c], 0x6182cc1
movq qword [ebp - 0x1736], xmm0
mov dword [ebp - 0x1720], eax
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x409732
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409732
push str.WCoinC
call fcn.00415100
mov edi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp eax, 0xffffffff
jne 0x4096a9
or eax, 0xffffffff
jmp 0x4096b7
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push str.WCoinP
mov dword [ebp - 0x171c], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x4096d0
or eax, eax
jmp 0x4096de
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push str.GoblinPoint
mov dword [ebp - 0x1718], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x4096f7
or eax, eax
jmp 0x409705
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push dword [0x422414]
mov dword [ebp - 0x1714], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x2c
lea eax, [ebp - 0x173c]
jmp 0x40d017
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x171c], 0
lea eax, [ebp - 0x173c]
mov dword [ebp - 0x1718], 0
mov dword [ebp - 0x1714], 0
push 0x2c
jmp 0x40d017
push edi
call fcn.004030d0
jmp case.0x40763b.1
push edi
call fcn.00403280
jmp case.0x40763b.1
cmp byte [edi + 0x13], 0
mov eax, 0x13
mov esi, dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov ecx, 8
cmovne ecx, eax
push 0x4eb1c8
push 0
mov ax, word [ecx + edi + 8]
movq xmm0, qword [ecx + edi]
mov word [ebp - 0x1744], ax
mov al, byte [ecx + edi + 0xa]
mov byte [ebp - 0x1742], al
lea eax, [edi + 0x39]
push eax
push 0
push 0xb
push 0xc
push 1
push 1
push 1
push dword [0x422414]
movq qword [ebp - 0x174c], xmm0
mov dword [0x4eb1c8], 0xfffffffd
call esi
push 0x4eb1cc
push 0
lea eax, [edi + 0x44]
mov dword [0x4eb1cc], 0xfffffffd
push eax
push 0
push 0xc8
push 0xc
push 1
push 1
push 2
push dword [0x422414]
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 - 0x174c]
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 0x422408
call fcn.00414eb0
add esp, 0x2c
jmp 0x40cee5
push dword [edi + 0x1c]
push str.DELETE_FROM_CashShopInventory_WHERE_BaseItemCode_d
push 0x422408
call fcn.00414eb0
add esp, 0xc
jmp 0x40cee5
cmp byte [edi + 0x13], 0
mov dword [ebp - 0x1744], 0
jbe case.0x40763b.1
lea esi, [edi + 0x14]
nop dword [eax]
push dword [esi]
push str.SELECT_ItemSerial_FROM_CashShopPeriodicItem_WHERE_ItemSerial_d
push 0x422408
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x4098e0
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4098e0
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
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 0x409904
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
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 0x422408
call fcn.00414eb0
add esp, 0x10
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1744]
add esi, 8
movzx eax, byte [edi + 0x13]
inc ecx
mov dword [ebp - 0x1744], ecx
cmp ecx, eax
jl 0x409890
jmp case.0x40763b.1
cmp byte [edi], 0xc1
jne 0x409956
mov al, byte [edi + 3]
jmp 0x409959
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x31
ja case.0x40763b.1
movzx eax, byte [eax + 0x40d43c]
jmp dword [eax*4 + 0x40d424]
movzx eax, word [edi + 4]
add edi, 6
mov word [ebp - 0x1724], ax
push edi
push str.SELECT__FROM_PcPointData_WHERE_AccountID_s
movzx eax, word [edi + 8]
movq xmm0, qword [edi]
mov word [ebp - 0x171a], ax
mov al, byte [edi + 0xa]
push 0x422408
mov dword [ebp - 0x1728], 0x1918c1
movq qword [ebp - 0x1722], xmm0
mov byte [ebp - 0x1718], al
mov byte [ebp - 0x1717], 0
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x409a2d
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409a2d
push str.PcPoint
call fcn.00415100
cmp eax, 0xffffffff
jne 0x4099ee
or eax, eax
jmp 0x409a00
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
push dword [0x422414]
mov dword [ebp - 0x1714], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1728]
jmp 0x40d017
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push str.INSERT_INTO_PcPointData__AccountID_PcPoint__VALUES___s_0_
push 0x422408
call fcn.00414eb0
add esp, 0xc
test al, al
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push dword [0x422414]
jne 0x409a8e
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call eax
mov byte [ebp - 0x1717], 1
lea eax, [ebp - 0x1728]
push 0x18
jmp 0x40d017
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call eax
mov dword [ebp - 0x1714], 0
lea eax, [ebp - 0x1728]
push 0x18
jmp 0x40d017
movzx eax, word [edi + 4]
lea ecx, [edi + 6]
movq xmm0, qword [ecx]
mov word [ebp - 0x1724], ax
movzx eax, word [ecx + 8]
mov word [ebp - 0x171a], ax
mov al, byte [ecx + 0xa]
push ecx
mov byte [ebp - 0x1718], al
mov al, byte [edi + 0x11]
push str.SELECT__FROM_PcPointData_WHERE_AccountID_s
push 0x422408
mov dword [ebp - 0x1728], 0x11918c1
movq qword [ebp - 0x1722], xmm0
mov byte [ebp - 0x1717], 0
mov byte [ebp - 0x1716], al
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x409b79
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409b79
push str.PcPoint
call fcn.00415100
cmp eax, 0xffffffff
jne 0x409b3a
or eax, eax
jmp 0x409b4c
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
push dword [0x422414]
mov dword [ebp - 0x1714], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1728]
jmp 0x40d017
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x1717], 1
lea eax, [ebp - 0x1728]
push 0x18
jmp 0x40d017
movzx eax, word [edi + 4]
lea ecx, [edi + 6]
movq xmm0, qword [ecx]
mov word [ebp - 0x1730], ax
movzx eax, word [ecx + 8]
mov word [ebp - 0x1726], ax
mov al, byte [ecx + 0xa]
mov byte [ebp - 0x1724], al
mov eax, dword [edi + 0x14]
push ecx
mov dword [ebp - 0x1720], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x171c], eax
mov eax, dword [edi + 0x1c]
push str.SELECT__FROM_PcPointData_WHERE_AccountID_s
push 0x422408
mov dword [ebp - 0x1734], 0x21924c1
movq qword [ebp - 0x172e], xmm0
mov dword [ebp - 0x1718], eax
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x409c75
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409c75
push str.PcPoint
call fcn.00415100
cmp eax, 0xffffffff
jne 0x409c36
or eax, eax
jmp 0x409c48
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
push dword [0x422414]
mov dword [ebp - 0x1714], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x24
lea eax, [ebp - 0x1734]
jmp 0x40d017
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x1714], 0
lea eax, [ebp - 0x1734]
push 0x24
jmp 0x40d017
lea eax, [edi + 6]
push eax
push str.SELECT_PcPoint_FROM_PcPointData_WHERE_AccountID_s
push 0x422408
mov dword [ebp - 0x1744], eax
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x409d0f
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409d0f
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov ecx, dword [ebp - 0x1754]
push dword [ebp - 0x1744]
push dword [ecx + 0x14]
push str.UPDATE_PcPointData_SET_PcPointPcPoint_d_WHERE_AccountID_s
jmp 0x4077a1
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov ecx, dword [ebp - 0x1754]
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
cmp eax, ecx
cmovbe ecx, eax
push ecx
push dword [ebp - 0x1744]
push str.INSERT_INTO_PcPointData__AccountID_PcPoint__VALUES___s__d_
jmp 0x4077a1
lea eax, [edi + 6]
push eax
push str.SELECT_PcPoint_FROM_PcPointData_WHERE_AccountID_s
push 0x422408
mov dword [ebp - 0x1744], eax
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x409dfd
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409dfd
push str.PcPoint
call fcn.00415100
cmp eax, 0xffffffff
jne 0x409d9c
mov dword [ebp - 0x1758], eax
jmp 0x409db4
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov dword [ebp - 0x1758], eax
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
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_PcPointData_SET_PcPoint_d_WHERE_AccountID_s
jmp 0x4077a1
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov eax, dword [ebp - 0x1744]
push 0
push 0
push 0
push eax
push str.INSERT_INTO_PcPointData__AccountID_PcPoint__VALUES___s__d_
push 0x422408
call fcn.00414eb0
add esp, 0x18
jmp 0x4077ae
cmp byte [edi], 0xc1
jne 0x409e49
mov al, byte [edi + 3]
jmp 0x409e4c
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x31
ja case.0x40763b.1
movzx eax, byte [eax + 0x40d488]
jmp dword [eax*4 + 0x40d470]
movzx eax, word [edi + 4]
add edi, 6
mov word [ebp - 0x1724], ax
push edi
push str.SELECT__FROM_LuckyCoin_WHERE_AccountID_s
movzx eax, word [edi + 8]
movq xmm0, qword [edi]
mov word [ebp - 0x171a], ax
mov al, byte [edi + 0xa]
push 0x422408
mov dword [ebp - 0x1728], 0x1a18c1
movq qword [ebp - 0x1722], xmm0
mov byte [ebp - 0x1718], al
mov byte [ebp - 0x1717], 0
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x409ed8
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409ed8
push str.LuckyCoin
jmp 0x4099e0
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push str.INSERT_INTO_LuckyCoin__AccountID_LuckyCoin__VALUES___s_0_
jmp 0x409a4d
movzx eax, word [edi + 4]
lea ecx, [edi + 6]
movq xmm0, qword [ecx]
mov word [ebp - 0x1724], ax
movzx eax, word [ecx + 8]
mov word [ebp - 0x171a], ax
mov al, byte [ecx + 0xa]
push ecx
mov byte [ebp - 0x1718], al
mov al, byte [edi + 0x11]
push str.SELECT__FROM_LuckyCoin_WHERE_AccountID_s
push 0x422408
mov dword [ebp - 0x1728], 0x11a18c1
movq qword [ebp - 0x1722], xmm0
mov byte [ebp - 0x1717], 0
mov byte [ebp - 0x1716], al
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x409b79
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409b79
push str.LuckyCoin
jmp 0x409b2c
movzx eax, word [edi + 4]
lea ecx, [edi + 6]
movq xmm0, qword [ecx]
mov word [ebp - 0x1728], ax
movzx eax, word [ecx + 8]
mov word [ebp - 0x171e], ax
mov al, byte [ecx + 0xa]
push ecx
mov byte [ebp - 0x171c], al
mov eax, dword [edi + 0x14]
push str.SELECT__FROM_LuckyCoin_WHERE_AccountID_s
push 0x422408
mov dword [ebp - 0x172c], 0x21a1cc1
movq qword [ebp - 0x1726], xmm0
mov byte [ebp - 0x171b], 0
mov dword [ebp - 0x1718], eax
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40a043
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a043
push str.LuckyCoin
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40a004
or eax, eax
jmp 0x40a016
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
push dword [0x422414]
mov dword [ebp - 0x1714], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1c
lea eax, [ebp - 0x172c]
jmp 0x40d017
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x171b], 1
lea eax, [ebp - 0x172c]
push 0x1c
jmp 0x40d017
lea eax, [edi + 6]
push eax
push str.SELECT_LuckyCoin_FROM_LuckyCoin_WHERE_AccountID_s
push 0x422408
mov dword [ebp - 0x14], eax
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40a118
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a118
push str.LuckyCoin
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40a0bb
mov dword [ebp - 0x1744], eax
jmp 0x40a0d3
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov dword [ebp - 0x1744], eax
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov ecx, dword [ebp - 0x1754]
push dword [ebp - 0x14]
mov eax, dword [ecx + 0x14]
mov ecx, bind
add eax, dword [ebp - 0x1744]
cmp eax, ecx
cmova eax, ecx
push eax
push str.UPDATE_LuckyCoin_SET_LuckyCoin_d_WHERE_AccountID_s
jmp 0x4077a1
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov ecx, dword [ebp - 0x1754]
push dword [ecx + 0x14]
push dword [ebp - 0x14]
push str.INSERT_INTO_LuckyCoin__AccountID_LuckyCoin__VALUES___s__d_
jmp 0x4077a1
lea eax, [edi + 6]
push eax
push str.SELECT_LuckyCoin_FROM_LuckyCoin_WHERE_AccountID_s
push 0x422408
mov dword [ebp - 0x1744], eax
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40a1fa
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a1fa
push str.LuckyCoin
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40a199
mov dword [ebp - 0x1758], eax
jmp 0x40a1b1
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov dword [ebp - 0x1758], eax
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
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 0x4077a1
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov eax, dword [ebp - 0x1744]
push 0
push 0
push 0
push eax
push str.INSERT_INTO_LuckyCoin__AccountID_LuckyCoin__VALUES___s__d_
push 0x422408
call fcn.00414eb0
add esp, 0x18
jmp 0x4077ae
mov ax, word [edi + 4]
mov cl, 0x10
mov word [ebp - 0x1768], ax
mov eax, dword [edi + 8]
mov dword [ebp - 0x1764], eax
mov eax, dword [edi + 0xc]
xor edi, edi
mov word [ebp - 0x176c], 0x10c1
xor esi, esi
mov byte [ebp - 0x176a], 0x1e
mov dword [ebp - 0x1760], eax
nop
mov eax, dword [esi + 0x4ec6b4]
test eax, eax
js 0x40a2a8
cmp eax, 0x14
jge 0x40a2a8
cmp dword [esi + 0x4ec6b8], 0
je 0x40a2a8
cmp dword [esi + 0x4ec6cc], 0xffffffff
je 0x40a2a8
movzx eax, cl
push eax
lea eax, [ebp - 0x176c]
push eax
push edi
call fcn.004163f0
mov cl, byte [ebp - 0x176b]
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x40a270
jmp case.0x40763b.1
movzx eax, word [edi + 4]
push eax
push str.EXEC_WZ_CW_InfoLoad__d
push 0x422408
mov word [ebp - 0x176c], 0x10c1
mov byte [ebp - 0x176a], 0x1f
mov word [ebp - 0x1768], ax
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40a37d
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a37d
push str.CRYWOLF_STATE
call fcn.00415100
mov edi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp eax, 0xffffffff
jne 0x40a31b
or eax, 0xffffffff
jmp 0x40a329
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push str.CRYWOLF_OCCUFY
mov dword [ebp - 0x1764], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40a342
or eax, eax
jmp 0x40a350
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push dword [0x422414]
mov dword [ebp - 0x1760], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [ebp - 0x176c]
jmp 0x40d017
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x1764], 0
lea eax, [ebp - 0x176c]
mov dword [ebp - 0x1760], 0
push 0x10
jmp 0x40d017
movq xmm0, qword [edi + 7]
mov cl, 0x80
movzx eax, word [edi + 4]
movq qword [ebp - 0x99], xmm0
movups xmm0, xmmword [edi + 0x12]
mov word [ebp - 0x9c], ax
mov al, byte [edi + 6]
movups xmmword [ebp - 0x8e], xmm0
mov byte [ebp - 0x9a], al
movups xmm0, xmmword [edi + 0x22]
movzx eax, word [edi + 0xf]
mov word [ebp - 0x91], ax
mov al, byte [edi + 0x11]
movups xmmword [ebp - 0x7e], xmm0
mov byte [ebp - 0x8f], al
movups xmm0, xmmword [edi + 0x32]
mov eax, dword [edi + 0x4a]
mov dword [ebp - 0x56], eax
movzx eax, word [edi + 0x7e]
movups xmmword [ebp - 0x6e], xmm0
mov word [ebp - 0xa0], 0x80c1
movq xmm0, qword [edi + 0x42]
movq qword [ebp - 0x5e], xmm0
movups xmm0, xmmword [edi + 0x4e]
mov byte [ebp - 0x9e], 0x20
mov word [ebp - 0x22], ax
movups xmmword [ebp - 0x52], xmm0
movups xmm0, xmmword [edi + 0x5e]
movups xmmword [ebp - 0x42], xmm0
movups xmm0, xmmword [edi + 0x6e]
xor edi, edi
xor esi, esi
movups xmmword [ebp - 0x32], xmm0
nop
mov eax, dword [esi + 0x4ec6b4]
test eax, eax
js 0x40a488
cmp eax, 0x14
jge 0x40a488
cmp dword [esi + 0x4ec6b8], 0
je 0x40a488
cmp dword [esi + 0x4ec6cc], 0xffffffff
je 0x40a488
movzx eax, cl
push eax
lea eax, [ebp - 0xa0]
push eax
push edi
call fcn.004163f0
mov cl, byte [ebp - 0x9f]
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x40a450
jmp case.0x40763b.1
movzx eax, word [edi + 4]
lea esi, [edi + 0x11]
mov word [ebp - 0xac], ax
mov ecx, 0x20
mov al, byte [edi + 6]
mov byte [ebp - 0xaa], al
mov al, byte [edi + 7]
mov byte [ebp - 0xa9], al
mov al, byte [edi + 8]
mov byte [ebp - 0xa8], al
movzx eax, word [edi + 0xa]
mov word [ebp - 0xa6], ax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0xa4], eax
mov al, byte [edi + 0x10]
lea edi, [ebp - 0x9f]
mov word [ebp - 0xb0], 0x94c1
mov byte [ebp - 0xae], 0x21
mov byte [ebp - 0xa0], al
rep movsd dword es:[edi], dword [esi]
xor edi, edi
xor esi, esi
mov eax, dword [esi + 0x4ec6b4]
test eax, eax
js 0x40a536
cmp eax, 0x14
jge 0x40a536
cmp dword [esi + 0x4ec6b8], 0
je 0x40a536
cmp dword [esi + 0x4ec6cc], 0xffffffff
je 0x40a536
movzx eax, byte [ebp - 0xaf]
push eax
lea eax, [ebp - 0xb0]
push eax
push edi
call fcn.004163f0
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x40a500
jmp case.0x40763b.1
cmp byte [edi], 0xc1
jne 0x40a551
mov al, byte [edi + 3]
jmp 0x40a554
mov al, byte [edi + 4]
test al, al
je 0x40a63c
cmp al, 0x4a
jne case.0x40763b.1
cmp byte [edi + 0x13], 0
mov dword [ebp - 0x1744], 0
jbe case.0x40763b.1
lea esi, [edi + 0x14]
nop dword [eax + eax]
push dword [esi]
push str.SELECT_ItemSerial_FROM_LuckyItem_WHERE_ItemSerial_d
push 0x422408
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40a5d0
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a5d0
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [esi]
push dword [esi + 4]
push str.UPDATE_LuckyItem_SET_DurabilitySmall_d_WHERE_ItemSerial_d
jmp 0x40a5f4
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [esi + 4]
push dword [esi]
push str.INSERT_INTO_LuckyItem__ItemSerial_DurabilitySmall__VALUES___d__d_
push 0x422408
call fcn.00414eb0
add esp, 0x10
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1744]
add esi, 8
movzx eax, byte [edi + 0x13]
inc ecx
mov dword [ebp - 0x1744], ecx
cmp ecx, eax
jl 0x40a580
jmp case.0x40763b.1
cmp byte [edi + 0x13], 0
mov edx, 0x14
movzx eax, word [edi + 6]
movq xmm0, qword [edi + 8]
mov word [ebp - 0x172a], ax
movzx eax, word [edi + 0x10]
mov word [ebp - 0x1720], ax
mov al, byte [edi + 0x12]
mov byte [ebp - 0x1730], 0xc2
mov word [ebp - 0x172d], 0x22
mov dword [ebp - 0x14], edx
movq qword [ebp - 0x1728], xmm0
mov byte [ebp - 0x171e], al
mov byte [ebp - 0x171d], 0
mov dword [ebp - 0x1754], 0
jbe 0x4095d4
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x1758], eax
lea esi, [edi + 0x18]
nop word [eax + eax]
push dword [esi]
push str.SELECT_DurabilitySmall_FROM_LuckyItem_WHERE_ItemSerial_d
push 0x422408
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40a738
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a738
mov al, byte [esi - 4]
mov byte [ebp - 0x1768], al
mov eax, dword [esi]
push str.DurabilitySmall
mov dword [ebp - 0x1764], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40a6fe
or eax, eax
jmp 0x40a710
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
push dword [0x422414]
mov dword [ebp - 0x1744], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x1744]
jmp 0x40a795
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_LuckyItem__ItemSerial_DurabilitySmall__VALUES___d__d_
push 0x422408
call fcn.00414eb0
add esp, 0x10
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [ebp - 0x1768], al
mov eax, dword [esi]
mov dword [ebp - 0x1764], eax
xor eax, eax
mov ecx, dword [ebp - 0x1758]
add esi, 8
movq xmm0, qword [ebp - 0x1768]
mov edx, dword [ebp - 0x14]
inc byte [ebp - 0x171d]
add edx, 0xc
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
add ecx, 0xc
movzx eax, byte [edi + 0x13]
mov dword [ebp - 0x1758], ecx
mov ecx, dword [ebp - 0x1754]
inc ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1754], ecx
cmp ecx, eax
jl 0x40a6b0
jmp 0x4095ce
mov ecx, edi
call fcn.0040f9a0
jmp case.0x40763b.1
push 0x4eb1c8
push 0
lea eax, [edi + 0x1c]
mov dword [0x4eb1c8], 0xf90
push eax
push 0
push 0xf90
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
lea eax, [edi + 0x11]
push eax
lea eax, [edi + 6]
push eax
push str.UPDATE_Character_SET_Inventory__WHERE_AccountID_s_AND_Name_s
push 0x422408
call fcn.00414eb0
jmp 0x40cee2
mov ecx, edi
call fcn.0040fd40
jmp case.0x40763b.1
cmp byte [edi + 0x11], 0
mov dword [ebp - 0x1744], 0
jbe case.0x40763b.1
lea esi, [edi + 0x16]
nop
push dword [esi - 4]
push str.SELECT_ItemSerial_FROM_T_PetItem_Info_WHERE_ItemSerial_d
push 0x422408
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40a8b6
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a8b6
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [esi - 4]
movzx eax, byte [esi]
push dword [esi + 4]
push eax
push str.UPDATE_T_PetItem_Info_SET_Pet_Level_d_Pet_Exp_d_WHERE_ItemSerial_d
jmp 0x40a8df
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [esi + 4]
movzx eax, byte [esi]
push eax
push dword [esi - 4]
push str.INSERT_INTO_T_PetItem_Info__ItemSerial_Pet_Level_Pet_Exp__VALUES___d__d__d_
push 0x422408
call fcn.00414eb0
add esp, 0x14
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1744]
add esi, 0xc
movzx eax, byte [edi + 0x11]
inc ecx
mov dword [ebp - 0x1744], ecx
cmp ecx, eax
jl 0x40a860
jmp case.0x40763b.1
push dword [edi + 0x28]
lea eax, [edi + 0x11]
push dword [edi + 0x24]
push dword [edi + 0x20]
push dword [edi + 0x1c]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_SetResetInfo__s__s__d__d__d__d
push 0x422408
call fcn.00414eb0
add esp, 0x20
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40cee5
push dword [edi + 0x2c]
lea eax, [edi + 0x11]
push dword [edi + 0x28]
push dword [edi + 0x24]
push dword [edi + 0x20]
push dword [edi + 0x1c]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_SetMasterResetInfo__s__s__d__d__d__d__d
push 0x422408
call fcn.00414eb0
add esp, 0x24
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40cee5
push dword [edi + 0x1c]
lea eax, [edi + 0x11]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_RankingKillvsKill__s__s__d
push 0x422408
call fcn.00414eb0
add esp, 0x14
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40cee5
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingDuel_WHERE_Name_s
push 0x422408
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40aa39
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40aa39
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov ecx, dword [ebp - 0x1754]
mov eax, dword [ecx + 0x1c]
lea edx, [ecx + 0x11]
push edx
push dword [ecx + 0x20]
push eax
push eax
push str.UPDATE_RankingDuel_SET_WinScoreWinScore_d_WinScore_semanalWinScore_semanal_d_LoseScoreLoseScore_d_WHERE_Name_s
push 0x422408
call fcn.00414eb0
add esp, 0x18
jmp 0x4077ae
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov ecx, dword [ebp - 0x1754]
mov eax, dword [ecx + 0x1c]
lea edx, [ecx + 0x11]
push eax
push dword [ecx + 0x20]
push eax
push edx
push str.INSERT_INTO_RankingDuel__Name_WinScore_LoseScore_WinScore_semanal__VALUES___s__d__d__d_
push 0x422408
call fcn.00414eb0
add esp, 0x18
jmp 0x4077ae
push dword [edi + 0x1c]
lea eax, [edi + 0x11]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_RankingBloodCastle__s__s__d
jmp 0x40a9a8
push dword [edi + 0x1c]
lea eax, [edi + 0x11]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_RankingChaosCastle__s__s__d
jmp 0x40a9a8
push dword [edi + 0x1c]
lea eax, [edi + 0x11]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_RankingDevilSquare__s__s__d
jmp 0x40a9a8
push dword [edi + 0x1c]
lea eax, [edi + 0x11]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_RankingIllusionTemple__s__s__d
jmp 0x40a9a8
lea eax, [edi + 6]
push eax
movzx eax, byte [edi + 0x11]
push eax
push str.UPDATE_AccountCharacter_SET_ExtClass_d_WHERE_Id_s
push 0x422408
call fcn.00414eb0
jmp 0x40cee2
lea eax, [edi + 6]
push eax
push dword [edi + 0x14]
push str.UPDATE_AccountCharacter_SET_Slot__Slot___d_WHERE_Id___s
push 0x422408
call fcn.00414eb0
jmp 0x40cee2
push dword [edi + 0xc]
movzx eax, word [edi + 4]
push dword [edi + 8]
push eax
push str.EXEC_WZ_CW_InfoSave__d__d__d
jmp 0x40a9a8
push dword [edi + 0x28]
lea eax, [edi + 0x11]
push dword [edi + 0x24]
push dword [edi + 0x20]
push dword [edi + 0x1c]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_CustomMonsterReward__s__s__d__d__d__d
jmp 0x40a940
push dword [edi + 0x24]
lea eax, [edi + 0x11]
push dword [edi + 0x20]
push dword [edi + 0x1c]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_CustomArenaRanking__s__s__d__d__d
push 0x422408
call fcn.00414eb0
add esp, 0x1c
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40cee5
push dword [edi + 0x20]
lea eax, [edi + 0x11]
push dword [edi + 0x1c]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_TvTRanking__s__s__d__d
push 0x422408
call fcn.00414eb0
add esp, 0x18
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40cee5
lea esi, [edi + 0x11]
push esi
lea eax, [ebp - 0x1730]
push eax
call fcn.00404510
test al, al
jne case.0x40763b.1
push esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea eax, [ebp - 0x1730]
push 0xb
push eax
call esi
add esp, 0xc
lea eax, [edi + 6]
push eax
lea eax, [ebp - 0x1725]
push 0xb
push eax
call esi
mov ax, word [edi + 4]
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x1730]
mov ecx, dword [ebp - 0x1758]
mov word [ebp - 0x171a], ax
mov eax, esp
mov dx, word [ecx + 0x4ec70c]
movups xmmword [eax], xmm0
mov word [ebp - 0x1718], dx
movq xmm0, qword [ebp - 0x1720]
movq qword [eax + 0x10], xmm0
mov word [eax + 0x18], dx
call fcn.004046a0
xor dl, dl
lea ecx, [edi + 0x11]
call fcn.00406870
jmp case.0x40763b.1
lea esi, [edi + 0x11]
push esi
lea eax, [ebp - 0x1730]
push eax
call fcn.00404510
test al, al
je case.0x40763b.1
mov ax, word [ebp - 0x171a]
cmp ax, word [edi + 4]
jne case.0x40763b.1
mov ecx, dword [ebp - 0x1758]
mov dx, word [ebp - 0x1718]
cmp dx, word [ecx + 0x4ec70c]
jne case.0x40763b.1
movups xmm0, xmmword [ebp - 0x1730]
sub esp, 0x1c
mov eax, esp
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x1720]
movq qword [eax + 0x10], xmm0
mov word [eax + 0x18], dx
call fcn.00404a80
mov dl, 1
mov ecx, esi
call fcn.00406870
jmp case.0x40763b.1
movzx eax, word [edi + 4]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x17d4], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x17ca], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x17c8], al
movzx eax, word [edi + 0x19]
mov word [ebp - 0x17bf], ax
mov al, byte [edi + 0x1b]
mov byte [ebp - 0x17bd], al
lea eax, [edi + 0x1c]
push eax
movq qword [ebp - 0x17d2], xmm0
lea eax, [ebp - 0x172c]
movq xmm0, qword [edi + 0x11]
push eax
mov word [ebp - 0x17d8], 0x64c1
mov byte [ebp - 0x17d6], 0x72
movq qword [ebp - 0x17c7], xmm0
call fcn.00404510
test al, al
jne 0x40ad25
mov byte [ebp - 0x17bc], al
jmp 0x40ae26
movq xmm0, qword [ebp - 0x1721]
xor edx, edx
movzx eax, word [ebp - 0x1716]
movq qword [ebp - 0x7a], xmm0
movq xmm0, qword [ebp - 0x172c]
mov word [ebp - 0x7c], ax
movzx eax, word [ebp - 0x1719]
movq qword [ebp - 0x6f], xmm0
movq xmm0, qword [edi + 0x11]
mov word [ebp - 0x72], ax
mov al, byte [ebp - 0x1717]
movq qword [ebp - 0x64], xmm0
movups xmm0, xmmword [edi + 0x27]
mov byte [ebp - 0x70], al
movzx eax, word [ebp - 0x1724]
mov word [ebp - 0x67], ax
mov al, byte [ebp - 0x1722]
movups xmmword [ebp - 0x59], xmm0
mov byte [ebp - 0x65], al
movups xmm0, xmmword [edi + 0x37]
movzx eax, word [edi + 0x19]
mov word [ebp - 0x5c], ax
mov al, byte [edi + 0x1b]
movups xmmword [ebp - 0x49], xmm0
mov byte [ebp - 0x5a], al
movups xmm0, xmmword [edi + 0x47]
mov eax, dword [edi + 0x5f]
mov dword [ebp - 0x21], eax
xor eax, eax
movups xmmword [ebp - 0x39], xmm0
mov byte [ebp - 0x17bc], 1
movq xmm0, qword [edi + 0x57]
mov word [ebp - 0x80], 0x64c1
mov byte [ebp - 0x7e], 0x73
movq qword [ebp - 0x29], xmm0
nop word [eax + eax]
mov ecx, dword [eax + 0x4ec6b4]
test ecx, ecx
js 0x40ae01
cmp ecx, 0x14
jge 0x40ae01
cmp dword [eax + 0x4ec6b8], 0
je 0x40ae01
cmp dword [eax + 0x4ec6cc], 0xffffffff
je 0x40ae01
mov cx, word [ebp - 0x1714]
cmp word [eax + 0x4ec70c], cx
je 0x40ae0e
add eax, 0x68
inc edx
cmp eax, 0x820
jl 0x40add0
jmp 0x40ae26
imul eax, edx, 0x68
add eax, 0x4ec6b0
je 0x40ae26
push 0x64
lea ecx, [ebp - 0x80]
push ecx
push dword [eax + 4]
call fcn.004163f0
movq xmm0, qword [edi + 0x1c]
mov ax, word [edi + 0x24]
movq qword [ebp - 0x17bb], xmm0
movups xmm0, xmmword [edi + 0x27]
mov word [ebp - 0x17b3], ax
mov al, byte [edi + 0x26]
movups xmmword [ebp - 0x17b0], xmm0
mov byte [ebp - 0x17b1], al
movups xmm0, xmmword [edi + 0x37]
mov eax, dword [edi + 0x5f]
mov dword [ebp - 0x1778], eax
lea eax, [ebp - 0x17d8]
movups xmmword [ebp - 0x17a0], xmm0
push 0x64
movups xmm0, xmmword [edi + 0x47]
movups xmmword [ebp - 0x1790], xmm0
movq xmm0, qword [edi + 0x57]
movq qword [ebp - 0x1780], xmm0
jmp 0x40d017
lea eax, [edi + 3]
push eax
push str.SELECT_Name_FROM_RankingKingGuild_WHERE_Name_s
push 0x422408
mov dword [ebp - 0x1744], eax
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40af03
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40af03
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov ecx, dword [ebp - 0x1754]
push dword [ebp - 0x1744]
mov eax, dword [ecx + 0xc]
push eax
push eax
push str.UPDATE_RankingKingGuild_SET_ScoreScore_d_Score_semanalScore_semanal_d_WHERE_Name_s
push 0x422408
call fcn.00414eb0
add esp, 0x14
jmp 0x4077ae
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov ecx, dword [ebp - 0x1754]
mov eax, dword [ecx + 0xc]
push eax
push eax
push dword [ebp - 0x1744]
push str.INSERT_INTO_RankingKingGuild__Name_Score_Score_semanal__VALUES___s__d__d_
push 0x422408
call fcn.00414eb0
add esp, 0x14
jmp 0x4077ae
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingKingPlayer_WHERE_Name_s
push 0x422408
mov dword [ebp - 0x1744], eax
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40afc1
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40afc1
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov ecx, dword [ebp - 0x1754]
push dword [ebp - 0x1744]
mov eax, dword [ecx + 0x1c]
push eax
push eax
push str.UPDATE_RankingKingPlayer_SET_ScoreScore_d_Score_semanalScore_semanal_d_WHERE_Name_s
push 0x422408
call fcn.00414eb0
add esp, 0x14
jmp 0x4077ae
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov ecx, dword [ebp - 0x1754]
mov eax, dword [ecx + 0x1c]
push eax
push eax
push dword [ebp - 0x1744]
push str.INSERT_INTO_RankingKingPlayer__Name_Score_Score_semanal__VALUES___s__d__d_
push 0x422408
call fcn.00414eb0
add esp, 0x14
jmp 0x4077ae
cmp byte [edi], 0xc1
jne 0x40b011
mov al, byte [edi + 3]
jmp 0x40b014
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x1b
ja case.0x40763b.1
jmp dword [eax*4 + 0x40d4bc]
movzx eax, word [edi + 4]
lea ecx, [ebp - 0x1740]
push ecx
push dword [edi + 8]
mov dword [ebp - 0x17b0], 0x8038c1
push eax
mov word [ebp - 0x17a8], ax
call fcn.00403730
test eax, eax
je 0x40b067
mov dword [ebp - 0x17ac], 0
lea eax, [ebp - 0x17b0]
push 0x38
jmp 0x40d017
movzx eax, word [ebp - 0x1740]
xorps xmm0, xmm0
mov word [ebp - 0x17a6], ax
mov al, byte [ebp - 0x173e]
mov byte [ebp - 0x17a4], al
mov al, byte [ebp - 0x173d]
mov byte [ebp - 0x17a3], al
movzx eax, word [ebp - 0x173c]
mov word [ebp - 0x17a2], ax
mov al, byte [ebp - 0x173a]
mov ecx, dword [ebp - 0x1724]
mov byte [ebp - 0x17a0], al
mov al, byte [ebp - 0x1739]
mov byte [ebp - 0x179f], al
mov al, byte [ebp - 0x1738]
mov byte [ebp - 0x179e], al
mov al, byte [ebp - 0x1737]
mov byte [ebp - 0x179d], al
mov al, byte [ebp - 0x1736]
mov byte [ebp - 0x179c], al
mov eax, dword [ebp - 0x1728]
mov dword [ebp - 0x1790], eax
mov eax, dword [ebp - 0x1720]
mov dword [ebp - 0x1788], eax
mov eax, dword [ebp - 0x171c]
mov dword [ebp - 0x1784], eax
mov eax, dword [ebp - 0x1718]
mov dword [ebp - 0x1780], eax
mov eax, dword [ebp - 0x1714]
mov dword [ebp - 0x177c], eax
mov eax, dword [ebp - 0x1735]
movq qword [ebp - 0x179b], xmm0
mov dword [ebp - 0x178c], ecx
mov ecx, dword [ebp - 0x1731]
mov dword [ebp - 0x179b], eax
lea eax, [ebp - 0x17b0]
mov dword [ebp - 0x17ac], 1
mov dword [ebp - 0x1797], ecx
push 0x38
jmp 0x40d017
mov edx, esi
mov ecx, edi
call fcn.0040fe90
jmp case.0x40763b.1
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
movzx esi, word [edi + 4]
mov dword [ebp - 0x1720], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x1714], 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 - 0x172c], 0x3801cc1
push dword [edi + 0x1c]
mov word [ebp - 0x1724], si
push dword [edi + 0x18]
mov dword [ebp - 0x171c], edx
push dword [edi + 0x14]
mov dword [ebp - 0x1718], ecx
push ecx
push edx
push esi
push str.EXEC_WZ_CS_ReqNpcBuy__d___d___d___d___d___d___d___d___d___d
push 0x422408
call fcn.00414eb0
add esp, 0x30
push dword [0x422414]
test al, al
je 0x40b251
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b24b
cmp ax, 0xffff
je 0x40b24b
push str.QueryResult
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40b202
or esi, eax
jmp 0x40b216
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov esi, eax
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1770]
lea eax, [ebp - 0x172c]
push 0x1c
push eax
mov dword [ebp - 0x1728], esi
push ecx
jmp 0x40d019
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1770]
lea eax, [ebp - 0x172c]
push 0x1c
push eax
mov dword [ebp - 0x1728], 0
push ecx
jmp 0x40d019
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 - 0x1838], eax
mov eax, dword [edi + 0x14]
push str.EXEC_WZ_CS_ReqNpcRepair__d___d___d
push 0x422408
mov dword [ebp - 0x1844], 0x48024c1
mov word [ebp - 0x183c], si
mov dword [ebp - 0x1834], edx
mov dword [ebp - 0x1830], ecx
mov dword [ebp - 0x1824], eax
call fcn.00414eb0
add esp, 0x14
push dword [0x422414]
test al, al
je 0x40b3b0
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b3aa
cmp ax, 0xffff
je 0x40b3aa
push str.QueryResult
call fcn.00415100
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp eax, 0xffffffff
jne 0x40b317
or edi, 0xffffffff
jmp 0x40b327
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
mov edi, eax
push str.NPC_HP
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40b33a
or eax, eax
jmp 0x40b348
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.NPC_MAXHP
mov dword [ebp - 0x1828], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40b361
or eax, eax
jmp 0x40b36f
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push dword [0x422414]
mov dword [ebp - 0x182c], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1770]
lea eax, [ebp - 0x1844]
push 0x24
push eax
mov dword [ebp - 0x1840], edi
push ecx
jmp 0x40d019
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1770]
lea eax, [ebp - 0x1844]
push 0x24
push eax
mov dword [ebp - 0x1840], 0
push ecx
jmp 0x40d019
movzx eax, word [edi + 4]
mov word [ebp - 0x172c], ax
mov eax, dword [edi + 8]
mov edi, dword [edi + 0xc]
mov dword [ebp - 0x1728], eax
mov eax, dword [ebp - 0x1754]
mov dword [ebp - 0x1734], 0x58024c1
mov dword [ebp - 0x1724], 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 - 0x1718], ecx
mov ecx, dword [ebp - 0x1754]
push esi
mov dword [ebp - 0x1714], eax
push edi
movzx eax, word [ecx + 4]
push eax
push str.EXEC_WZ_CS_ReqNpcUpgrade__d___d___d___d___d
push 0x422408
mov dword [ebp - 0x1720], esi
mov dword [ebp - 0x171c], edx
call fcn.00414eb0
add esp, 0x1c
push dword [0x422414]
test al, al
je 0x40b4d8
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b4d2
cmp ax, 0xffff
je 0x40b4d2
push str.QueryResult
call fcn.00415100
cmp eax, 0xffffffff
je 0x40b499
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x40b4d2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1770]
lea eax, [ebp - 0x1734]
push 0x24
push eax
mov dword [ebp - 0x1730], 1
push ecx
jmp 0x40d019
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1770]
lea eax, [ebp - 0x1734]
push 0x24
push eax
mov dword [ebp - 0x1730], 0
push ecx
jmp 0x40d019
mov edx, esi
mov ecx, edi
call fcn.00410000
jmp case.0x40763b.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 0x422408
mov dword [ebp - 0x17f0], 0x78018c1
mov word [ebp - 0x17e8], cx
mov dword [ebp - 0x17e4], eax
call fcn.00414eb0
add esp, 0x14
push dword [0x422414]
test al, al
je 0x40b637
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b631
cmp ax, 0xffff
je 0x40b631
push str.QueryResult
call fcn.00415100
mov edi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp eax, 0xffffffff
jne 0x40b59c
mov dword [ebp - 0x1744], 0xffffffff
jmp 0x40b5b0
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
mov dword [ebp - 0x1744], eax
push str.TaxKind
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40b5c3
or eax, eax
jmp 0x40b5d1
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push str.TaxRate
mov dword [ebp - 0x17e0], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40b5ea
or eax, eax
jmp 0x40b5f8
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push dword [0x422414]
mov dword [ebp - 0x17dc], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x1744]
mov dword [ebp - 0x17ec], eax
lea eax, [ebp - 0x17f0]
push 0x18
jmp 0x40d017
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x17ec], 0
lea eax, [ebp - 0x17f0]
push 0x18
jmp 0x40d017
mov eax, dword [edi + 8]
lea edx, [ebp - 0x1744]
movzx ecx, word [edi + 4]
xorps xmm0, xmm0
push edx
lea edx, [ebp - 0x18]
mov dword [ebp - 0x1724], eax
mov eax, dword [edi + 0xc]
push edx
push eax
push ecx
mov dword [ebp - 0x1730], 0x88020c1
mov word [ebp - 0x1728], cx
mov dword [ebp - 0x1720], eax
mov dword [ebp - 0x1744], 0
movlpd qword [ebp - 0x18], xmm0
call fcn.00403a10
push 0x20
test eax, eax
je 0x40b6c8
mov dword [ebp - 0x172c], 0
lea eax, [ebp - 0x1730]
jmp 0x40d017
mov eax, dword [ebp - 0x1744]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x172c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1718], eax
lea eax, [ebp - 0x1730]
mov dword [ebp - 0x1714], ecx
jmp 0x40d017
mov eax, dword [edi + 8]
movzx ecx, word [edi + 4]
mov dword [ebp - 0x171c], 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 0x422408
mov dword [ebp - 0x1728], 0x98018c1
mov word [ebp - 0x1720], cx
call fcn.00414eb0
add esp, 0x24
push dword [0x422414]
test al, al
je 0x40b80d
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b807
cmp ax, 0xffff
je 0x40b807
push str.QueryResult
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40b782
mov dword [ebp - 0x1744], eax
jmp 0x40b79a
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov dword [ebp - 0x1744], eax
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x1744]
mov dword [ebp - 0x1724], eax
movzx eax, word [edi + 0xc]
mov word [ebp - 0x1718], ax
mov al, byte [edi + 0xe]
mov byte [ebp - 0x1716], al
mov al, byte [edi + 0xf]
mov byte [ebp - 0x1715], al
movzx eax, word [edi + 0x10]
mov word [ebp - 0x1714], ax
mov al, byte [edi + 0x12]
mov byte [ebp - 0x1712], al
mov al, byte [edi + 0x13]
mov byte [ebp - 0x1711], al
lea eax, [ebp - 0x1728]
push 0x18
jmp 0x40d017
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x1724], 0
lea eax, [ebp - 0x1728]
push 0x18
jmp 0x40d017
mov eax, dword [edi + 8]
movzx edx, word [edi + 4]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x1724], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1744]
push eax
lea eax, [ebp - 0x1730]
mov dword [ebp - 0x1744], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1730], 0xa8020c1
push eax
push edx
mov word [ebp - 0x1728], dx
mov byte [ebp - 0x10], 0
mov dword [ebp - 0x14], ecx
call fcn.00403b10
mov ecx, dword [ebp - 0x1744]
xor edx, edx
test eax, eax
lea eax, [ebp - 0x1730]
push 0x20
cmovne ecx, edx
mov dword [ebp - 0x172c], ecx
jmp 0x40d017
push dword [edi + 8]
movzx eax, word [edi + 4]
push eax
push str.EXEC_WZ_CS_ModifySiegeEnd__d___d
push 0x422408
mov dword [ebp - 0x176c], 0xb8010c1
mov word [ebp - 0x1764], ax
call fcn.00414eb0
add esp, 0x10
push dword [0x422414]
test al, al
je 0x40b94c
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b946
cmp ax, 0xffff
je 0x40b946
push str.QueryResult
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40b905
or edi, eax
jmp 0x40b919
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov edi, eax
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x1768], edi
lea eax, [ebp - 0x176c]
push 0x10
jmp 0x40d017
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x1768], 0
lea eax, [ebp - 0x176c]
push 0x10
jmp 0x40d017
movzx eax, word [edi + 4]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x18]
mov word [ebp - 0x1800], ax
lea edx, [ecx + 1]
mov dword [ebp - 0x1744], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x1808], 0xc8018c1
mov byte [ebp - 0x10], 0
mov dword [ebp - 0x18], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b9a8
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x40b9e4
nop word [eax + eax]
mov dl, byte [ebp + eax - 0x18]
cmp dl, 0x20
je 0x40baa9
cmp dl, 0x22
je 0x40baa9
cmp dl, 0x27
je 0x40baa9
inc eax
cmp eax, ecx
jl 0x40b9c0
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov dword [ebp - 0x17f8], ecx
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x17f4], ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
push dword [ebp - 0x1744]
mov dword [ebp - 0x17fc], eax
push str.EXEC_WZ_CS_ModifyCastleOwnerInfo__d___d___s
push 0x422408
call fcn.00414eb0
add esp, 0x14
push dword [0x422414]
test al, al
je 0x40ba95
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40ba8f
cmp ax, 0xffff
je 0x40ba8f
push str.QueryResult
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40ba4e
or edi, eax
jmp 0x40ba62
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov edi, eax
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x1804], edi
lea eax, [ebp - 0x1808]
push 0x18
jmp 0x40d017
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x1804], 0
lea eax, [ebp - 0x1808]
push 0x18
jmp 0x40d017
movzx ecx, word [edi + 4]
mov eax, dword [edi + 8]
mov word [ebp - 0x1818], cx
mov dword [ebp - 0x1744], ecx
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1814], eax
lea edx, [ecx + 1]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x1820], 0xd8018c1
mov byte [ebp - 0x10], 0
mov dword [ebp - 0x18], eax
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bb00
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x40bb34
nop
mov dl, byte [ebp + eax - 0x18]
cmp dl, 0x20
je 0x40bbef
cmp dl, 0x22
je 0x40bbef
cmp dl, 0x27
je 0x40bbef
inc eax
cmp eax, ecx
jl 0x40bb10
mov eax, dword [ebp - 0x1810]
mov ecx, dword [ebp - 0x180c]
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1744]
mov dword [edi + 0x10], ecx
push str.EXEC_WZ_CS_ReqRegAttackGuild__d___s
push 0x422408
call fcn.00414eb0
add esp, 0x10
push dword [0x422414]
test al, al
je 0x40bbdb
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40bbd5
cmp ax, 0xffff
je 0x40bbd5
push str.QueryResult
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40bb94
or edi, eax
jmp 0x40bba8
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov edi, eax
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x181c], edi
lea eax, [ebp - 0x1820]
push 0x18
jmp 0x40d017
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x181c], 0
lea eax, [ebp - 0x1820]
push 0x18
jmp 0x40d017
movzx eax, word [edi + 4]
push eax
push str.EXEC_WZ_CS_ResetCastleSiege__d
push 0x422408
mov dword [ebp - 0x1768], 0xe800cc1
mov word [ebp - 0x1760], ax
call fcn.00414eb0
add esp, 0xc
push dword [0x422414]
test al, al
je 0x40bca7
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40bca1
cmp ax, 0xffff
je 0x40bca1
push str.QueryResult
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40bc60
or edi, eax
jmp 0x40bc74
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov edi, eax
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x1764], edi
lea eax, [ebp - 0x1768]
push 0xc
jmp 0x40d017
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x1764], 0
lea eax, [ebp - 0x1768]
push 0xc
jmp 0x40d017
mov ax, word [edi + 4]
lea esi, [edi + 6]
mov ecx, 0x20
mov dword [ebp - 0xa8], 0xf8086c1
lea edi, [ebp - 0xa2]
mov word [ebp - 0xa4], ax
rep movsd dword es:[edi], dword [esi]
xor edi, edi
xor esi, esi
nop dword [eax + eax]
mov eax, dword [esi + 0x4ec6b4]
test eax, eax
js 0x40bd33
cmp eax, 0x14
jge 0x40bd33
cmp dword [esi + 0x4ec6b8], 0
je 0x40bd33
cmp dword [esi + 0x4ec6cc], 0xffffffff
je 0x40bd33
push 0x86
lea eax, [ebp - 0xa8]
push eax
push edi
call fcn.004163f0
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x40bd00
jmp case.0x40763b.1
mov edx, esi
mov ecx, edi
call fcn.00410170
jmp case.0x40763b.1
mov edx, esi
mov ecx, edi
call fcn.004102f0
jmp case.0x40763b.1
mov edx, esi
mov ecx, edi
call fcn.00410460
jmp case.0x40763b.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 0x422408
mov dword [ebp - 0x1724], 0x168014c1
mov word [ebp - 0x171c], dx
mov dword [ebp - 0x1718], ecx
mov dword [ebp - 0x1714], eax
call fcn.00414eb0
add esp, 0x14
push dword [0x422414]
test al, al
je 0x40be23
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40be1d
cmp ax, 0xffff
je 0x40be1d
push str.QueryResult
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40bddc
or edi, eax
jmp 0x40bdf0
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov edi, eax
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x1720], edi
lea eax, [ebp - 0x1724]
push 0x14
jmp 0x40d017
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x1720], 0
lea eax, [ebp - 0x1724]
push 0x14
jmp 0x40d017
mov ax, word [edi + 4]
mov ecx, dword [edi + 0x1c]
mov word [ebp - 0x172c], ax
mov eax, dword [edi + 8]
mov dword [ebp - 0x1728], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x1724], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x1720], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x171c], eax
mov eax, dword [edi + 0x18]
xor edi, edi
mov dword [ebp - 0x1730], 0x178020c1
xor esi, esi
mov dword [ebp - 0x1718], eax
mov dword [ebp - 0x1714], ecx
nop dword [eax]
mov eax, dword [esi + 0x4ec6b4]
test eax, eax
js 0x40bed0
cmp eax, 0x14
jge 0x40bed0
cmp dword [esi + 0x4ec6b8], 0
je 0x40bed0
cmp dword [esi + 0x4ec6cc], 0xffffffff
je 0x40bed0
push 0x20
lea eax, [ebp - 0x1730]
push eax
push edi
call fcn.004163f0
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x40bea0
jmp case.0x40763b.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 - 0x1744], 0
movlpd qword [ebp - 0x18], xmm0
test ecx, ecx
jns 0x40bf26
mov dword [ebp - 0x1764], 0
lea eax, [ebp - 0x1768]
push 0xc
jmp 0x40d017
lea edx, [ebp - 0x1744]
push edx
lea edx, [ebp - 0x18]
push edx
push ecx
push eax
call fcn.00403a10
test eax, eax
jne 0x40bcbb
mov eax, dword [ebp - 0x1744]
mov dword [ebp - 0x1764], eax
lea eax, [ebp - 0x1768]
push 0xc
jmp 0x40d017
movzx eax, word [edi + 4]
push eax
mov dword [ebp - 0x1768], 0x19800cc1
push str.EXEC_WZ_CS_ResetCastleTaxInfo__d
push 0x422408
mov word [ebp - 0x1760], ax
call fcn.00414eb0
add esp, 0xc
push dword [0x422414]
test al, al
je 0x40bca7
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40bca1
cmp ax, 0xffff
je 0x40bca1
push str.QueryResult
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40bfbf
or edi, eax
jmp 0x40bfd3
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov edi, eax
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x1764], edi
lea eax, [ebp - 0x1768]
push 0xc
jmp 0x40d017
movzx eax, word [edi + 4]
push eax
mov dword [ebp - 0x1768], 0x1a800cc1
push str.EXEC_WZ_CS_ResetSiegeGuildInfo__d
jmp 0x40bf6d
movzx eax, word [edi + 4]
push eax
mov dword [ebp - 0x1768], 0x1b800cc1
push str.EXEC_WZ_CS_ResetRegSiegeInfo__d
jmp 0x40bf6d
mov edx, esi
mov ecx, edi
call fcn.004105e0
jmp case.0x40763b.1
test edi, edi
je case.0x40763b.1
movzx eax, word [edi + 4]
lea ecx, [ebp - 0x1744]
push ecx
lea ecx, [ebp - 0x16fc]
mov word [ebp - 0x1708], ax
push ecx
push eax
mov dword [ebp - 0x1744], 0xc8
mov dword [ebp - 0x1700], 0
call fcn.00403c70
mov byte [ebp - 0x1710], 0xc2
mov byte [ebp - 0x170d], 0x82
test eax, eax
je 0x40c0dd
mov edx, dword [ebp - 0x1700]
mov dword [ebp - 0x170c], 0
lea eax, [edx*8]
sub eax, edx
lea eax, [eax*4 + 0x14]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0x170e], cl
shr eax, 8
mov byte [ebp - 0x170f], al
lea eax, [edx*8]
sub eax, edx
lea eax, [eax*4 + 0x14]
push eax
lea eax, [ebp - 0x1710]
jmp 0x40d017
mov edx, dword [ebp - 0x1744]
mov dword [ebp - 0x170c], 1
mov dword [ebp - 0x1700], edx
jmp 0x40c09d
test edi, edi
je case.0x40763b.1
mov eax, dword [edi + 8]
movzx ecx, word [edi + 4]
mov dword [ebp - 0x764], eax
lea eax, [ebp - 0x1744]
push eax
lea eax, [ebp - 0x75c]
mov word [ebp - 0x768], cx
push eax
push ecx
mov dword [ebp - 0x1744], 0x64
mov dword [ebp - 0x760], 0
call fcn.00403f10
mov byte [ebp - 0x770], 0xc2
mov byte [ebp - 0x76d], 0x83
test eax, eax
je 0x40c189
mov edx, dword [ebp - 0x760]
mov dword [ebp - 0x76c], 0
mov eax, edx
shl edx, 4
shl eax, 4
add eax, 0x14
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0x76e], cl
shr eax, 8
add edx, 0x14
mov byte [ebp - 0x76f], al
lea eax, [ebp - 0x770]
push edx
jmp 0x40d017
mov edx, dword [ebp - 0x1744]
mov dword [ebp - 0x76c], 1
mov dword [ebp - 0x760], edx
jmp 0x40c15b
test edi, edi
je case.0x40763b.1
movzx eax, word [edi + 4]
push eax
push str.DELETE_MuCastle_NPC_WHERE_MAP_SVR_GROUP___d
push 0x422408
mov word [ebp - 0x1768], 0xcc1
mov byte [ebp - 0x1766], 0x84
mov word [ebp - 0x1760], ax
mov dword [ebp - 0x1758], eax
call fcn.00414eb0
add esp, 0xc
push dword [0x422414]
test al, al
je 0x40bca7
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp dword [edi + 8], 0
mov dword [ebp - 0x1744], 0
jle 0x40c28a
lea ecx, [edi + 0x25]
mov dword [ebp - 0x14], ecx
movzx eax, byte [ecx + 1]
push eax
movzx eax, byte [ecx]
push eax
movzx eax, byte [ecx - 1]
push eax
push dword [ecx - 5]
push dword [ecx - 9]
push dword [ecx - 0xd]
push dword [ecx - 0x11]
push dword [ecx - 0x15]
push dword [ecx - 0x19]
push dword [ebp - 0x1758]
push str.EXEC_WZ_CS_ReqNpcBuy__d___d___d___d___d___d___d___d___d___d
push 0x422408
call fcn.00414eb0
add esp, 0x30
push dword [0x422414]
test al, al
je 0x40bca7
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x1744]
mov ecx, dword [ebp - 0x14]
inc eax
add ecx, 0x1c
mov dword [ebp - 0x1744], eax
mov dword [ebp - 0x14], ecx
cmp eax, dword [edi + 8]
jl 0x40c215
mov dword [ebp - 0x1764], 1
lea eax, [ebp - 0x1768]
push 0xc
jmp 0x40d017
test edi, edi
je case.0x40763b.1
movzx eax, word [edi + 4]
lea ecx, [ebp - 0x1744]
push ecx
lea ecx, [ebp - 0xa80]
mov word [ebp - 0xa88], ax
push ecx
push eax
mov dword [ebp - 0x1744], 0x64
mov dword [ebp - 0xa84], 0
call fcn.004040c0
mov byte [ebp - 0xa90], 0xc2
mov byte [ebp - 0xa8d], 0x85
test eax, eax
je 0x40c332
mov edx, dword [ebp - 0xa84]
mov dword [ebp - 0xa8c], 0
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0xa8e], cl
shr eax, 8
mov byte [ebp - 0xa8f], al
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
push eax
lea eax, [ebp - 0xa90]
jmp 0x40d017
mov edx, dword [ebp - 0x1744]
mov dword [ebp - 0xa8c], 1
mov dword [ebp - 0xa84], edx
jmp 0x40c2fe
mov edx, esi
mov ecx, edi
call fcn.004107e0
jmp case.0x40763b.1
mov edx, esi
mov ecx, edi
call fcn.00410a00
jmp case.0x40763b.1
test edi, edi
je case.0x40763b.1
movzx eax, word [edi + 4]
lea ecx, [ebp - 0x1744]
push ecx
lea ecx, [ebp - 0x8f0]
mov word [ebp - 0x8f8], ax
push ecx
push eax
mov dword [ebp - 0x1744], 0x64
mov dword [ebp - 0x8f4], 0
call fcn.004042d0
mov byte [ebp - 0x900], 0xc2
mov byte [ebp - 0x8fd], 0x88
test eax, eax
je 0x40c3f7
mov edx, dword [ebp - 0x8f4]
mov dword [ebp - 0x8fc], 0
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0x8fe], cl
shr eax, 8
mov byte [ebp - 0x8ff], al
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
push eax
lea eax, [ebp - 0x900]
jmp 0x40d017
mov edx, dword [ebp - 0x1744]
mov dword [ebp - 0x8fc], 1
mov dword [ebp - 0x8f4], edx
jmp 0x40c3c3
test edi, edi
je case.0x40763b.1
movzx eax, word [edi + 4]
push eax
push str.DELETE_MuCastle_NPC_WHERE_MAP_SVR_GROUP___d
push 0x422408
mov word [ebp - 0x1768], 0xcc1
mov byte [ebp - 0x1766], 0x89
mov word [ebp - 0x1760], ax
mov dword [ebp - 0x1758], eax
call fcn.00414eb0
add esp, 0xc
push dword [0x422414]
test al, al
je 0x40c50f
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp dword [edi + 8], 0
mov dword [ebp - 0x1744], 0
jle 0x40c28a
lea ecx, [edi + 0x25]
mov dword [ebp - 0x14], ecx
movzx eax, byte [ecx + 1]
push eax
movzx eax, byte [ecx]
push eax
movzx eax, byte [ecx - 1]
push eax
push dword [ecx - 5]
push dword [ecx - 9]
push dword [ecx - 0xd]
push dword [ecx - 0x11]
push dword [ecx - 0x15]
push dword [ecx - 0x19]
push dword [ebp - 0x1758]
push str.EXEC_WZ_CS_ReqNpcUpdate__d___d___d___d___d___d___d___d___d___d
push 0x422408
call fcn.00414eb0
add esp, 0x30
push dword [0x422414]
test al, al
je 0x40c50f
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x1744]
mov ecx, dword [ebp - 0x14]
inc eax
add ecx, 0x1c
mov dword [ebp - 0x1744], eax
mov dword [ebp - 0x14], ecx
cmp eax, dword [edi + 8]
jl 0x40c487
mov dword [ebp - 0x1764], 1
lea eax, [ebp - 0x1768]
push 0xc
jmp 0x40d017
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x1764], 0
lea eax, [ebp - 0x1768]
push 0xc
jmp 0x40d017
push dword [ebx + 0xc]
mov ecx, esi
push edi
call fcn.00410f10
add esp, 8
jmp case.0x40763b.1
push dword [ebx + 0xc]
mov ecx, esi
push edi
call fcn.004054b0
add esp, 8
jmp case.0x40763b.1
lea ecx, [edi + 0x1c]
mov edx, str.marry
nop dword [eax + eax]
mov al, byte [ecx]
cmp al, byte [edx]
mov byte [ebp - 0x1759], al
lea eax, [edi + 0x1c]
jne 0x40c5ac
cmp byte [ebp - 0x1759], 0
je 0x40c5a8
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
mov byte [ebp - 0x1759], al
lea eax, [edi + 0x1c]
jne 0x40c5ac
add ecx, 2
add edx, 2
cmp byte [ebp - 0x1759], 0
jne 0x40c570
xor ecx, ecx
jmp 0x40c5b1
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x40c5e0
lea eax, [edi + 0x11]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_SetMarryInfo__s__s
push 0x422408
call fcn.00414eb0
add esp, 0x10
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40cee5
mov ecx, str.divorce
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40c605
test dl, dl
je 0x40c601
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40c605
add eax, 2
add ecx, 2
test dl, dl
jne 0x40c5e5
xor eax, eax
jmp 0x40c60a
sbb eax, eax
or eax, 1
test eax, eax
jne case.0x40763b.1
lea eax, [edi + 0x11]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_SetDivorceInfo__s__s
push 0x422408
call fcn.00414eb0
add esp, 0x10
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40cee5
movzx eax, word [edi + 4]
lea ecx, [edi + 6]
movq xmm0, qword [ecx]
mov word [ebp - 0x1724], ax
movzx eax, word [ecx + 8]
push ecx
mov word [ebp - 0x171a], ax
mov al, byte [ecx + 0xa]
push str.SELECT__FROM_CustomQuest_WHERE_Name_s
push 0x422408
mov word [ebp - 0x1728], 0x18c1
mov byte [ebp - 0x1726], 0xf1
movq qword [ebp - 0x1722], xmm0
mov byte [ebp - 0x1718], al
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40c6ae
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40c6ae
push str.quest
jmp 0x4099e0
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x1714], 0
lea eax, [ebp - 0x1728]
push 0x18
jmp 0x40d017
lea eax, [edi + 6]
push eax
push str.SELECT__FROM_CustomQuest_WHERE_Name_s
push 0x422408
mov dword [ebp - 0x1744], eax
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40c749
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40c749
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov ecx, dword [ebp - 0x1754]
mov eax, dword [ebp - 0x1744]
push eax
push dword [ecx + 0x14]
push str.Update_CustomQuest_SET_quest___d_WHERE_Name___s
jmp 0x4077a1
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov ecx, dword [ebp - 0x1754]
push dword [ecx + 0x14]
lea eax, [ecx + 6]
push eax
push str.INSERT_INTO_CustomQuest__Name_quest__VALUES___s__d_
jmp 0x4077a1
push dword [edi + 0x24]
lea eax, [edi + 0x11]
push dword [edi + 0x20]
push dword [edi + 0x1c]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_SetCoin__s__s__d__d__d
push 0x422408
call fcn.00414eb0
add esp, 0x1c
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40cee5
movzx eax, word [edi + 4]
mov dword [ebp - 0x14], eax
movzx eax, word [edi + 6]
xor edi, edi
push eax
push str.EXEC_WZ_CustomRanking__d
push 0x422408
mov dword [ebp - 0x1758], 0x10
mov dword [ebp - 0x1754], eax
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40c8c7
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40c8c7
lea edi, [ebp - 0x1010]
xor esi, esi
nop dword [eax + eax]
push str.VALUE1
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40c835
xorps xmm0, xmm0
mov dword [ebp - 0x1720], 0
movaps xmmword [ebp - 0x1730], xmm0
jmp 0x40c852
shl eax, 0xd
push 0x13
add eax, 0x423036
push eax
lea eax, [ebp - 0x1730]
push 0x14
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
add esp, 0x10
push str.VALUE2
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40c865
or eax, eax
jmp 0x40c877
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
movups xmm0, xmmword [ebp - 0x1730]
add dword [ebp - 0x1758], 0x18
inc esi
push dword [0x422414]
movups xmmword [edi], xmm0
mov dword [ebp - 0x171c], eax
movq xmm0, qword [ebp - 0x1720]
movq qword [edi + 0x10], xmm0
add edi, 0x18
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x40c810
mov dword [ebp - 0x1744], esi
mov esi, dword [ebp - 0x1770]
mov edi, dword [ebp - 0x1744]
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1758]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x101f], al
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x101c], eax
mov eax, dword [ebp - 0x1754]
mov dword [ebp - 0x1018], eax
lea eax, [ebp - 0x1020]
mov byte [ebp - 0x1020], 0xc2
mov byte [ebp - 0x101e], cl
mov byte [ebp - 0x101d], 0xf4
mov dword [ebp - 0x1014], edi
push ecx
jmp 0x40d017
mov edx, esi
mov ecx, edi
call fcn.00410ba0
jmp case.0x40763b.1
lea eax, [edi + 6]
push eax
push str.SELECT__FROM_CustomAttack_WHERE_Name_s
push 0x422408
mov dword [ebp - 0x1744], eax
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40c9ea
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40c9ea
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov ecx, dword [ebp - 0x1754]
mov eax, dword [ebp - 0x1744]
push eax
push dword [ecx + 0x34]
movzx eax, word [ecx + 0x20]
push dword [ecx + 0x30]
push dword [ecx + 0x2c]
push dword [ecx + 0x28]
push dword [ecx + 0x24]
push eax
movzx eax, word [ecx + 0x1e]
push eax
movzx eax, word [ecx + 0x1c]
push eax
movzx eax, word [ecx + 0x1a]
push eax
movzx eax, word [ecx + 0x18]
push eax
movzx eax, word [ecx + 0x16]
push eax
movzx eax, word [ecx + 0x14]
push eax
movzx eax, word [ecx + 0x12]
push eax
push str.Update_CustomAttack_SET_Active___d__Skill___d__Map___d__PosX___d__PosY___d__AutoBuff___d__OffPvP___d__AutoReset___d__AutoAddStr___d__AutoAddAgi___d__AutoAddVit___d__AutoAddEne___d__AutoAddCmd___d__WHERE_Name___s
push 0x422408
call fcn.00414eb0
add esp, 0x40
jmp 0x4077ae
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov ecx, dword [ebp - 0x1754]
push dword [ecx + 0x34]
movzx eax, word [ecx + 0x20]
push dword [ecx + 0x30]
push dword [ecx + 0x2c]
push dword [ecx + 0x28]
push dword [ecx + 0x24]
push eax
movzx eax, word [ecx + 0x1e]
push eax
movzx eax, word [ecx + 0x1c]
push eax
movzx eax, word [ecx + 0x1a]
push eax
movzx eax, word [ecx + 0x18]
push eax
movzx eax, word [ecx + 0x16]
push eax
movzx eax, word [ecx + 0x14]
push eax
movzx eax, word [ecx + 0x12]
push eax
lea eax, [ecx + 6]
push eax
push str.INSERT_INTO_CustomAttack__Name_Active_Skill_Map_PosX_PosY_AutoBuff_OffPvP_AutoReset_AutoAddStr_AutoAddAgi_AutoAddVit_AutoAddEne_AutoAddCmd__VALUES___s__d__d__d__d__d__d__d__d__d__d__d__d__d_
push 0x422408
call fcn.00414eb0
add esp, 0x40
jmp 0x4077ae
cmp byte [edi], 0xc1
jne 0x40ca6a
mov al, byte [edi + 3]
jmp 0x40ca6d
mov al, byte [edi + 4]
movzx eax, al
sub eax, 0
je 0x40cbeb
sub eax, 1
je 0x40cb41
sub eax, 1
jne case.0x4074a1.217
movzx eax, word [edi + 0x12]
lea ecx, [edi + 6]
push eax
push ecx
push str.SELECT__FROM_CustomNpcQuest_WHERE_Name_s_and_Quest___d
push 0x422408
call fcn.00414eb0
add esp, 0x10
test al, al
je 0x40caec
push dword [0x422414]
mov eax, dword [sym.imp.ODBC32.dll_SQLFetch]
call eax
cmp ax, 0x64
je 0x40caec
push dword [0x422414]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call esi
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, word [edi + 0x12]
push eax
lea eax, [edi + 6]
push eax
push dword [edi + 0x14]
push str.Update_CustomNpcQuest_SET_MonsterCount_d_WHERE_Name___s_and_Quest___d
jmp 0x40cb19
push dword [0x422414]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call esi
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [edi + 0x14]
movzx eax, word [edi + 0x12]
push eax
lea eax, [edi + 6]
push eax
push str.INSERT_INTO_CustomNpcQuest__Name_quest_count_monstercount__VALUES___s__d_0__d_
push 0x422408
call fcn.00414eb0
add esp, 0x14
push dword [0x422414]
call esi
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40cd03
movzx eax, word [edi + 0x12]
lea ecx, [edi + 6]
push eax
push ecx
push str.SELECT__FROM_CustomNpcQuest_WHERE_Name_s_and_Quest___d
push 0x422408
call fcn.00414eb0
add esp, 0x10
test al, al
je 0x40cbaf
push dword [0x422414]
mov eax, dword [sym.imp.ODBC32.dll_SQLFetch]
call eax
cmp ax, 0x64
je 0x40cbaf
push dword [0x422414]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call esi
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, word [edi + 0x12]
push eax
lea eax, [edi + 6]
push eax
push str.Update_CustomNpcQuest_SET_Count__Count1_MonsterCount99999_WHERE_Name___s_and_Quest___d
push 0x422408
call fcn.00414eb0
add esp, 0x10
jmp 0x40cb26
push dword [0x422414]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call esi
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, word [edi + 0x12]
push eax
lea eax, [edi + 6]
push eax
push str.INSERT_INTO_CustomNpcQuest__Name_quest_count_MonsterCount__VALUES___s__d_1_99999_
push 0x422408
call fcn.00414eb0
add esp, 0x10
jmp 0x40cb26
mov ax, word [edi + 4]
mov word [ebp - 0x1720], ax
movzx eax, word [edi + 0x12]
push eax
lea eax, [edi + 6]
mov dword [ebp - 0x1724], 0xf714c1
push eax
push str.SELECT__FROM_CustomNpcQuest_WHERE_Name_s_and_Quest___d
push 0x422408
call fcn.00414eb0
add esp, 0x10
test al, al
je 0x40cca9
push dword [0x422414]
mov eax, dword [sym.imp.ODBC32.dll_SQLFetch]
call eax
cmp ax, 0x64
je 0x40cca9
push str.Count
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40cc49
or eax, eax
jmp 0x40cc5b
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
push str.MonsterCount
mov dword [ebp - 0x1718], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40cc74
or eax, eax
jmp 0x40cc86
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
push dword [0x422414]
mov dword [ebp - 0x1714], eax
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call eax
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40ccd8
push dword [0x422414]
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call eax
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x1718], 0
mov dword [ebp - 0x1714], 0x1869f
movzx eax, word [edi + 0x12]
mov word [ebp - 0x171e], ax
movzx eax, word [edi + 0x14]
mov word [ebp - 0x171c], ax
lea eax, [ebp - 0x1724]
push 0x14
push eax
push esi
call fcn.004163f0
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
cmp byte [edi], 0xc1
jne 0x40cd0d
mov al, byte [edi + 3]
jmp 0x40cd10
mov al, byte [edi + 4]
movzx eax, al
add eax, 0xfffffff9
cmp eax, 9
ja case.0x40763b.1
movzx eax, byte [eax + 0x40d540]
jmp dword [eax*4 + 0x40d52c]
lea eax, [edi + 6]
push eax
movzx eax, byte [edi + 0x11]
push eax
push str.UPDATE_Character_SET_StartItem___d_WHERE_Name___s
push 0x422408
call fcn.00414eb0
add esp, 0x10
push dword [0x422414]
call esi
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp case.0x40763b.1
lea eax, [edi + 6]
push eax
movzx eax, byte [edi + 0x11]
push eax
push str.UPDATE_Character_SET_BlocChat___d_WHERE_Name___s
jmp 0x40cd3b
lea eax, [edi + 6]
push eax
movzx eax, byte [edi + 0x11]
push eax
push str.UPDATE_Character_SET_EquipView___d_WHERE_Name___s
jmp 0x40cd3b
lea esi, [edi + 6]
push esi
push dword [edi + 0x14]
push str.UPDATE_MEMB_INFO_SET_WarehouseCount__WarehouseCount___d_WHERE_memb___id___s
push 0x422408
call fcn.00414eb0
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
add esp, 0x10
push dword [0x422414]
call eax
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, word [edi + 4]
movq xmm0, qword [esi]
mov word [ebp - 0x1724], ax
movzx eax, word [esi + 8]
push esi
mov word [ebp - 0x171a], ax
mov al, byte [esi + 0xa]
push str.SELECT__FROM_MEMB_INFO_WHERE_memb___id_s
push 0x422408
mov dword [ebp - 0x1728], 0x2fb18c1
movq qword [ebp - 0x1722], xmm0
mov byte [ebp - 0x1718], al
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40cee5
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40cee5
push str.WarehouseCount
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40ce30
or eax, eax
jmp 0x40ce42
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
push dword [0x422414]
mov dword [ebp - 0x1714], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1770]
lea eax, [ebp - 0x1728]
push 0x18
push eax
push ecx
jmp 0x40d019
cmp byte [edi], 0xc1
jne 0x40ce81
mov al, byte [edi + 3]
jmp 0x40ce84
mov al, byte [edi + 4]
movzx eax, al
sub eax, 5
je 0x40cf04
sub eax, 1
jne case.0x40763b.1
lea esi, [edi + 6]
push esi
push dword [edi + 0x14]
push dword [edi + 0x3c]
push dword [edi + 0x38]
push dword [edi + 0x34]
push dword [edi + 0x30]
push dword [edi + 0x2c]
push dword [edi + 0x28]
push dword [edi + 0x24]
push dword [edi + 0x20]
push dword [edi + 0x1c]
push dword [edi + 0x18]
push str.UPDATE_CustomJewelBank_SET_Bless___d__Soul___d__Chaos___d__Creation___d__Life___d__Harmony___d__Guardian___d__Gemstone___d__LowRefine___d__HigRefine__d__Money___d_WHERE_AccountID___s
push 0x422408
call fcn.00414eb0
add esp, 0x38
test al, al
jne 0x40cee5
push esi
push str.CCashShop::BankExSavePoint
push str.__s__Cant_save_CustomJewelBank__Account:__s
push 1
call fcn.004170d0
add esp, 0x10
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp case.0x40763b.1
lea eax, [edi + 6]
mov dword [ebp - 0x17d8], 0x1fb60c1
push eax
push str.SELECT__FROM_CustomJewelBank_WHERE_AccountID___s
push 0x422408
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40cf85
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40cf85
push dword [0x422414]
xorps xmm0, xmm0
mov dword [ebp - 0x17ac], 0
movups xmmword [ebp - 0x17cc], xmm0
mov dword [ebp - 0x17a8], 0
movups xmmword [ebp - 0x17bc], xmm0
mov dword [ebp - 0x17d0], 0
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40cff0
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
push dword [0x422414]
xorps xmm0, xmm0
mov dword [ebp - 0x17ac], 0
movups xmmword [ebp - 0x17cc], xmm0
mov dword [ebp - 0x17a8], 0
movups xmmword [ebp - 0x17bc], xmm0
mov dword [ebp - 0x17d0], 0
call edi
push 2
push dword [0x422414]
call esi
mov edi, dword [ebp - 0x1754]
mov esi, dword [ebp - 0x1770]
lea eax, [ebp - 0x17d8]
push eax
lea eax, [edi + 6]
push eax
call fcn.00403460
test al, al
je case.0x40763b.1
mov ax, word [edi + 4]
mov word [ebp - 0x17d4], ax
lea eax, [ebp - 0x17d8]
push 0x60
push eax
push esi
call fcn.004163f0
jmp 0x40d02e
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
pop esi
call fcn.00417e1d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret