Function at 0x4078b0
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, 0x1954
call fcn.004328a0
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x17a0], ecx
mov ecx, dword [ebx + 8]
push edi
mov byte [ebp - 0x1799], dl
mov dword [ebp - 0x1794], ecx
jmp 0x407901
mov esi, dword [ebp - 0x17a0]
imul edi, esi, 0x68
mov dword [ebp - 0x1798], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x511650], 0
mov cl, byte [ebp - 0x1799]
mov dword [edi + 0x5117d4], eax
mov edi, dword [ebp - 0x1794]
je 0x407974
test cl, cl
je 0x407974
cmp cl, 7
je 0x407974
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 0xffffff
push 0x442a08
call fcn.00415470
mov cl, byte [ebp - 0x1799]
add esp, 0x24
movzx eax, cl
cmp eax, 0xf9
ja case.0x407b44.1
movzx eax, byte [eax + 0x40dbc4]
jmp dword [eax*4 + 0x40da9c]
push str.SELECT_ItemCount_FROM_GameServerInfo_WHERE_Number0
push 0x447690
mov dword [ebp - 0x28], 0x10008c1
mov dword [ebp - 0x24], 0
call fcn.00416db0
add esp, 8
test al, al
je 0x407a09
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407a09
push str.ItemCount
call fcn.00417040
cmp eax, 0xffffffff
jne 0x4079d9
or eax, eax
jmp 0x4079ea
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push dword [0x44769c]
mov dword [ebp - 0x24], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x407a51
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
push str.INSERT_INTO_GameServerInfo__Number_ItemCount_ZenCount_AceItemCount__VALUES__0_0_0_0_
push 0x447690
call fcn.00416db0
add esp, 8
push dword [0x44769c]
call edi
push 2
push dword [0x44769c]
call esi
mov esi, dword [ebp - 0x17a0]
push 8
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.004182a0
mov eax, dword [ebp - 0x1794]
mov ecx, dword [ebp - 0x1798]
movzx esi, word [eax + 0x38]
movzx edi, word [eax + 4]
lea ecx, [ecx + 0x511798]
add eax, 6
push eax
push 0x32
push ecx
call fcn.0041d583
mov ecx, dword [ebp - 0x1798]
add esp, 0xc
push esi
push edi
lea eax, [ecx + 0x511798]
mov word [ecx + 0x5117ca], di
push eax
push dword [ecx + 0x511774]
mov word [ecx + 0x5117cc], si
push str._ServerManager___d__ServerInfo___s____d____d_
push 0xffffff
push 0x442a08
call fcn.00415470
mov esi, dword [0x4429c4]
add esp, 0x1c
cmp esi, dword [0x4429c8]
je case.0x407b44.1
mov edx, dword [esi]
call fcn.00412ee0
add esi, 0x6cc
cmp esi, dword [0x4429c8]
jne 0x407ad2
jmp case.0x407b44.1
mov edx, esi
mov ecx, edi
call fcn.0040df60
jmp case.0x407b44.1
mov edx, esi
mov ecx, edi
call fcn.0040e610
jmp case.0x407b44.1
mov edx, esi
mov ecx, edi
call fcn.0040e970
jmp case.0x407b44.1
mov edx, esi
mov ecx, edi
call fcn.0040ec40
jmp case.0x407b44.1
cmp byte [edi], 0xc1
jne 0x407b2e
mov al, byte [edi + 3]
jmp 0x407b31
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x77
ja case.0x407b44.1
movzx eax, byte [eax + 0x40dcdc]
jmp dword [eax*4 + 0x40dcc0]
push esi
push edi
call fcn.00419160
jmp case.0x407b44.1
cmp dword [edi + 0xf1c], 0
lea eax, [edi + 0x13]
push 0x510450
push 0
push eax
push 0
push 0xf00
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
lea esi, [edi + 8]
mov dword [0x510450], 0xf00
push 1
push dword [0x44769c]
mov dword [ebp - 0x1798], esi
jne 0x407bec
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 0x447690
call fcn.00416db0
add esp, 0x10
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 0x1794]
push dword [ebp - 0x1798]
push dword [ecx + 0xf18]
push str.UPDATE_warehouse_SET_pw_d_WHERE_AccountID_s
jmp 0x408787
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 0x447690
call fcn.00416db0
add esp, 0x14
jmp 0x407bb2
push esi
push edi
call fcn.00419540
jmp case.0x407b44.1
push 0x510450
push 0
lea eax, [edi + 0x13]
mov dword [0x510450], 0xf00
push eax
push 0
push 0xf00
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x44769c]
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 0x447690
call fcn.00416db0
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
add esp, 0x10
push dword [0x44769c]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 0x1794]
lea eax, [ecx + 8]
push eax
push dword [ecx + 0xf18]
push str.UPDATE_WarehouseGuild_SET_pw_d_WHERE_Guild_s
jmp 0x408787
mov ax, word [edi + 4]
mov word [ebp - 0x18], ax
lea eax, [edi + 6]
push eax
push str.SELECT_WareHouseInUse_FROM_WarehouseGuild_WHERE_Guild_s
push 0x447690
mov dword [ebp - 0x1c], 0x76050cc1
call fcn.00416db0
add esp, 0xc
test al, al
je 0x407d0a
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407d0a
push str.WareHouseInUse
call fcn.00417040
cmp eax, 0xffffffff
jne 0x407cf4
or eax, eax
mov dword [ebp - 0x14], eax
jmp 0x407d11
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
mov dword [ebp - 0x14], eax
jmp 0x407d11
mov dword [ebp - 0x14], 0
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
lea eax, [edi + 6]
push eax
push dword [edi + 0x10]
push str.UPDATE_WarehouseGuild_SET_WareHouseInUse_d_WHERE_Guild_s
jmp 0x40da4f
mov edx, esi
mov ecx, edi
call fcn.0040f7f0
jmp case.0x407b44.1
mov edx, esi
mov ecx, edi
call fcn.0040f9b0
jmp case.0x407b44.1
mov edx, esi
mov ecx, edi
call fcn.0040fbe0
jmp case.0x407b44.1
movzx eax, word [edi + 4]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x177c], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x1772], ax
mov al, byte [edi + 0x10]
add edi, 0x11
mov byte [ebp - 0x1770], al
movq qword [ebp - 0x177a], xmm0
mov word [ebp - 0x1780], 0x1ec1
movzx eax, word [edi + 8]
movq xmm0, qword [edi]
mov word [ebp - 0x1767], ax
mov al, byte [edi + 0xa]
mov byte [ebp - 0x1765], al
xor eax, eax
mov byte [ebp - 0x177e], 0xa
movq qword [ebp - 0x176f], xmm0
mov cl, byte [edi + eax]
cmp cl, 0x20
je 0x407e3a
cmp cl, 0x22
je 0x407e3a
cmp cl, 0x27
je 0x407e3a
inc eax
cmp eax, 0xb
jl 0x407dd8
mov esi, dword [0x442970]
cmp esi, dword [0x442974]
je 0x407e19
nop
push esi
push edi
call fcn.0041ab90
add esp, 8
test eax, eax
jne 0x407e3a
add esi, 0x20
cmp esi, dword [0x442974]
jne 0x407e00
mov ecx, dword [ebp - 0x17a0]
lea eax, [ebp - 0x1780]
push 0x1e
push eax
push ecx
mov byte [ebp - 0x1764], 0
call fcn.004182a0
jmp case.0x407b44.1
mov ecx, dword [ebp - 0x17a0]
lea eax, [ebp - 0x1780]
push 0x1e
push eax
push ecx
mov byte [ebp - 0x1764], 1
call fcn.004182a0
jmp case.0x407b44.1
movzx eax, word [edi + 4]
lea ecx, [edi + 6]
movq xmm0, qword [ecx]
mov word [ebp - 0x1784], ax
movzx eax, word [ecx + 8]
mov word [ebp - 0x177a], ax
mov al, byte [ecx + 0xa]
mov byte [ebp - 0x1778], al
movzx eax, word [edi + 0x19]
mov dword [ebp - 0x17a4], ecx
lea ecx, [edi + 0x11]
add edi, 0x1c
mov word [ebp - 0x176f], ax
mov al, byte [ecx + 0xa]
mov byte [ebp - 0x176d], al
movq qword [ebp - 0x1782], xmm0
movzx eax, word [edi + 8]
movq xmm0, qword [ecx]
mov word [ebp - 0x1764], ax
mov al, byte [edi + 0xa]
movq qword [ebp - 0x1777], xmm0
movq xmm0, qword [edi]
mov byte [ebp - 0x1762], al
xor eax, eax
mov word [ebp - 0x1788], 0x28c1
mov byte [ebp - 0x1786], 0xb
mov dword [ebp - 0x24], ecx
movq qword [ebp - 0x176c], xmm0
nop word [eax + eax]
mov cl, byte [edi + eax]
cmp cl, 0x20
je 0x407fd2
cmp cl, 0x22
je 0x407fd2
cmp cl, 0x27
je 0x407fd2
inc eax
cmp eax, 0xb
jl 0x407ef0
mov esi, dword [0x442970]
cmp esi, dword [0x442974]
je 0x407f3f
push esi
push edi
call fcn.0041ab90
add esp, 8
test eax, eax
jne 0x407fd2
add esi, 0x20
cmp esi, dword [0x442974]
jne 0x407f22
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x17a4]
push str.EXEC_WZ_RenameCharacter__s__s__s
push 0x447690
call fcn.00416db0
add esp, 0x14
test al, al
je 0x407fb8
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407fb8
push 0x4482be
call fcn.00420b26
add esp, 4
mov byte [ebp - 0x1761], al
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x17a0]
lea eax, [ebp - 0x1788]
push 0x28
push eax
push ecx
call fcn.004182a0
jmp case.0x407b44.1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x17a0]
lea eax, [ebp - 0x1788]
push 0x28
push eax
push ecx
mov byte [ebp - 0x1761], 1
call fcn.004182a0
jmp case.0x407b44.1
cmp byte [edi], 0xc1
jne 0x407ffd
mov al, byte [edi + 3]
jmp 0x408000
mov al, byte [edi + 4]
test al, al
je 0x408106
cmp al, 0x30
jne case.0x407b44.1
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_QuestKillCount_WHERE_Name_s
push 0x447690
mov dword [ebp - 0x1798], eax
call fcn.00416db0
add esp, 0xc
test al, al
je 0x4080a4
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4080a4
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov eax, dword [ebp - 0x1794]
push dword [ebp - 0x1798]
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 0x447690
call fcn.00416db0
add esp, 0x38
jmp 0x408794
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov eax, dword [ebp - 0x1794]
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 - 0x1798]
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 0x447690
call fcn.00416db0
add esp, 0x38
jmp 0x408794
push esi
push edi
call fcn.00417440
jmp case.0x407b44.1
cmp byte [edi], 0xc1
jne 0x40811c
mov al, byte [edi + 3]
jmp 0x40811f
mov al, byte [edi + 4]
test al, al
je 0x40826f
cmp al, 0x30
jne case.0x407b44.1
lea eax, [edi + 0x13]
push eax
push str.SELECT_Name_FROM_MasterSkillTree_WHERE_Name_s
push 0x447690
mov dword [ebp - 0x1798], eax
call fcn.00416db0
add esp, 0xc
test al, al
je 0x4081ec
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4081ec
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov eax, dword [ebp - 0x1794]
push 0x510450
push 0
add eax, 0x30
mov dword [0x510450], 0xb4
push eax
push 0
push 0xb4
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov eax, dword [ebp - 0x1794]
push dword [ebp - 0x1798]
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 0x447690
call fcn.00416db0
add esp, 0x1c
jmp 0x408794
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov eax, dword [ebp - 0x1794]
push 0x510450
push 0
add eax, 0x30
mov dword [0x510450], 0xb4
push eax
push 0
push 0xb4
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov eax, dword [ebp - 0x1794]
push dword [eax + 0x2c]
push dword [eax + 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
push dword [ebp - 0x1798]
push str.INSERT_INTO_MasterSkillTree__Name_MasterLevel_MasterPoint_MasterExperience_MasterSkill__VALUES___s__d__d__I64d___
push 0x447690
call fcn.00416db0
add esp, 0x1c
jmp 0x408794
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x14a], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x140], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x13e], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x148], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x135], ax
mov al, byte [ecx + 0xa]
push str.SELECT__FROM_MasterSkillTree_WHERE_Name_s
push 0x447690
mov dword [ebp - 0x150], 0xde800c2
mov byte [ebp - 0x14c], 0
movq qword [ebp - 0x13d], xmm0
mov byte [ebp - 0x133], al
call fcn.00416db0
add esp, 0xc
test al, al
je 0x4083ce
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4083ce
push str.MasterLevel
call fcn.00417040
cmp eax, 0xffffffff
jne 0x408313
or eax, eax
jmp 0x408324
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.MasterPoint
mov dword [ebp - 0x130], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40833d
or eax, eax
jmp 0x40834e
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.MasterExperience
mov dword [ebp - 0x12c], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40836a
or eax, eax
or edx, 0xffffffff
jmp 0x40837b
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b01
add esp, 4
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x120]
push 0xb4
push eax
push str.MasterSkill
mov dword [ebp - 0x124], edx
call fcn.004170c0
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xe8
lea eax, [ebp - 0x150]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xb4
lea eax, [ebp - 0x120]
mov dword [ebp - 0x130], 0
xorps xmm0, xmm0
mov dword [ebp - 0x12c], 0
push 0xff
push eax
movlpd qword [ebp - 0x128], xmm0
call fcn.0041b210
add esp, 0xc
lea eax, [ebp - 0x150]
push 0xe8
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
cmp byte [edi], 0xc1
jne 0x408441
mov al, byte [edi + 3]
jmp 0x408444
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x31
ja case.0x407b44.1
movzx eax, byte [eax + 0x40dd68]
jmp dword [eax*4 + 0x40dd54]
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x177c], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x1772], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x1770], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x177a], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x1767], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Status_FROM_EventLeoTheHelper_WHERE_Name_s
push 0x447690
mov dword [ebp - 0x1780], 0xe1ec1
mov dword [ebp - 0x24], ecx
movq qword [ebp - 0x176f], xmm0
mov byte [ebp - 0x1765], al
call fcn.00416db0
add esp, 0xc
test al, al
je 0x40853b
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40853b
push str.Status
call fcn.00417040
cmp eax, 0xffffffff
jne 0x4084f6
or eax, eax
jmp 0x408507
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push dword [0x44769c]
mov byte [ebp - 0x1764], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1e
lea eax, [ebp - 0x1780]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
push dword [ebp - 0x24]
push str.INSERT_INTO_EventLeoTheHelper__Name_Status__VALUES___s_0_
push 0x447690
call fcn.00416db0
add esp, 0xc
push dword [0x44769c]
call edi
push 2
push dword [0x44769c]
call esi
mov esi, dword [ebp - 0x17a0]
lea eax, [ebp - 0x1780]
push 0x1e
push eax
push esi
mov byte [ebp - 0x1764], 0
call fcn.004182a0
jmp case.0x407b44.1
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x177c], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x1772], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x1770], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x177a], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x1767], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Status_FROM_EventSantaClaus_WHERE_Name_s
push 0x447690
mov dword [ebp - 0x1780], 0x10e1ec1
mov dword [ebp - 0x24], ecx
movq qword [ebp - 0x176f], xmm0
mov byte [ebp - 0x1765], al
call fcn.00416db0
add esp, 0xc
test al, al
je 0x40862a
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x4084e3
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
push dword [ebp - 0x24]
push str.INSERT_INTO_EventSantaClaus__Name_Status__VALUES___s_0_
jmp 0x408561
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_EventLeoTheHelper_WHERE_Name_s
push 0x447690
mov dword [ebp - 0x24], eax
call fcn.00416db0
add esp, 0xc
test al, al
je 0x4086bb
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4086bb
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 0x1794]
mov eax, dword [ebp - 0x24]
push eax
movzx eax, byte [ecx + 0x1c]
push eax
push str.UPDATE_EventLeoTheHelper_SET_Status_d_WHERE_Name_s
jmp 0x408787
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 0x1794]
movzx eax, byte [ecx + 0x1c]
push eax
lea eax, [ecx + 0x11]
push eax
push str.INSERT_INTO_EventLeoTheHelper__Name_Status__VALUES___s__d_
jmp 0x408787
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_EventSantaClaus_WHERE_Name_s
push 0x447690
mov dword [ebp - 0x24], eax
call fcn.00416db0
add esp, 0xc
test al, al
je 0x408755
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408755
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 0x1794]
mov eax, dword [ebp - 0x24]
push eax
movzx eax, byte [ecx + 0x1c]
push eax
push str.UPDATE_EventSantaClaus_SET_Status_d_WHERE_Name_s
jmp 0x408787
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 0x1794]
movzx eax, byte [ecx + 0x1c]
push eax
lea eax, [ecx + 0x11]
push eax
push str.INSERT_INTO_EventSantaClaus__Name_Status__VALUES___s__d_
push 0x447690
call fcn.00416db0
add esp, 0x10
push dword [0x44769c]
call edi
push 2
push dword [0x44769c]
call esi
jmp case.0x407b44.1
cmp byte [edi], 0xc1
jne 0x4087b5
mov al, byte [edi + 3]
jmp 0x4087b8
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 9
ja case.0x407b44.1
jmp dword [eax*4 + 0x40dd9c]
movzx eax, word [edi + 4]
lea edx, [edi + 6]
movq xmm0, qword [edx]
lea ecx, [edi + 0x11]
mov word [ebp - 0x1784], ax
movzx eax, word [edx + 8]
mov word [ebp - 0x177a], ax
mov al, byte [edx + 0xa]
push ecx
mov byte [ebp - 0x1778], al
movzx eax, word [ecx + 8]
push edx
movq qword [ebp - 0x1782], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x176f], ax
mov al, byte [ecx + 0xa]
push str.EXEC_WZ_GetResetInfo__s__s
push 0x447690
mov dword [ebp - 0x1788], 0xf28c1
movq qword [ebp - 0x1777], xmm0
mov byte [ebp - 0x176d], al
call fcn.00416db0
add esp, 0x10
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.ResetDay
call fcn.00417040
cmp eax, 0xffffffff
jne 0x408859
or eax, eax
jmp 0x40886a
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.ResetWek
mov dword [ebp - 0x176c], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x408883
or eax, eax
jmp 0x408894
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.ResetMon
mov dword [ebp - 0x1768], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x4088ad
or eax, eax
jmp 0x4088be
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push dword [0x44769c]
mov dword [ebp - 0x1764], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x28
lea eax, [ebp - 0x1788]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
movzx eax, word [edi + 4]
lea edx, [edi + 6]
movq xmm0, qword [edx]
lea ecx, [edi + 0x11]
mov word [ebp - 0x1784], ax
movzx eax, word [edx + 8]
mov word [ebp - 0x177a], ax
mov al, byte [edx + 0xa]
push ecx
mov byte [ebp - 0x1778], al
movzx eax, word [ecx + 8]
push edx
movq qword [ebp - 0x1782], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x176f], ax
mov al, byte [ecx + 0xa]
push str.EXEC_WZ_GetMasterResetInfo__s__s
push 0x447690
mov dword [ebp - 0x1788], 0x10f28c1
movq qword [ebp - 0x1777], xmm0
mov byte [ebp - 0x176d], al
call fcn.00416db0
add esp, 0x10
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.MasterResetDay
call fcn.00417040
cmp eax, 0xffffffff
jne 0x408980
or eax, eax
jmp 0x408991
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.MasterResetWek
mov dword [ebp - 0x176c], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x4089b2
or eax, eax
push str.MasterResetMon
jmp 0x408899
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.MasterResetMon
jmp 0x408899
lea eax, [edi + 8]
push eax
push str.UPDATE_Character_SET_Married0__MarryCoupleNULL_WHERE_Name_s
push 0x447690
call fcn.00416db0
add esp, 0xc
jmp 0x40da5c
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 0x447690
call fcn.00416db0
add esp, 0x20
jmp 0x40da5c
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 0x447690
call fcn.00416db0
add esp, 0x18
jmp 0x40da5c
movzx eax, word [edi + 4]
lea esi, [edi + 6]
movq xmm0, qword [esi]
lea edx, [edi + 0x11]
mov word [ebp - 0x1784], ax
lea ecx, [edi + 0x1c]
movzx eax, word [esi + 8]
mov word [ebp - 0x177a], ax
mov al, byte [esi + 0xa]
mov byte [ebp - 0x1778], al
movzx eax, word [edx + 8]
push ecx
mov word [ebp - 0x176f], ax
mov al, byte [edx + 0xa]
push edx
movq qword [ebp - 0x1782], xmm0
movq xmm0, qword [edx]
mov byte [ebp - 0x176d], al
movzx eax, word [ecx + 8]
push esi
movq qword [ebp - 0x1777], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x1764], ax
mov al, byte [ecx + 0xa]
push str.EXEC_WZ_RenameCharacter__s__s__s
push 0x447690
mov dword [ebp - 0x1788], 0x50f28c1
movq qword [ebp - 0x176c], xmm0
mov byte [ebp - 0x1762], al
call fcn.00416db0
add esp, 0x14
test al, al
je 0x408b2a
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408b2a
push 0x4482be
call fcn.00420b26
add esp, 4
mov byte [ebp - 0x1761], al
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x17a0]
lea eax, [ebp - 0x1788]
push 0x28
push eax
push ecx
call fcn.004182a0
jmp case.0x407b44.1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x17a0]
lea eax, [ebp - 0x1788]
push 0x28
push eax
push ecx
mov byte [ebp - 0x1761], 2
call fcn.004182a0
jmp case.0x407b44.1
mov ax, word [edi + 4]
mov word [ebp - 0x24], ax
lea eax, [edi + 6]
push eax
push str.SELECT__FROM_Character_WHERE_Name_s
push 0x447690
mov dword [ebp - 0x28], 0x60f08c1
mov byte [ebp - 0x22], 0
call fcn.00416db0
add esp, 0xc
test al, al
je 0x408c38
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408c38
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
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 0x447690
call fcn.00416db0
add esp, 0x10
test al, al
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push dword [0x44769c]
jne 0x408c12
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call eax
push 8
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call eax
push 8
lea eax, [ebp - 0x28]
mov byte [ebp - 0x22], 1
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 8
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
mov ax, word [edi + 4]
mov word [ebp - 0x24], ax
lea eax, [edi + 6]
push eax
push str.SELECT__FROM_Character_WHERE_Name_s
push 0x447690
mov dword [ebp - 0x28], 0x70f08c1
mov byte [ebp - 0x22], 0
call fcn.00416db0
add esp, 0xc
test al, al
je 0x408c38
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408c38
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
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 0x408bd4
mov ax, word [edi + 4]
mov word [ebp - 0x24], ax
lea eax, [edi + 6]
push eax
push str.SELECT__FROM_CustomGift_WHERE_AccountID_s
push 0x447690
mov dword [ebp - 0x28], 0x80f08c1
mov dword [ebp - 0x1798], eax
call fcn.00416db0
add esp, 0xc
test al, al
je 0x408da0
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408da0
push str.Quantity
call fcn.00417040
cmp eax, 0xffffffff
jne 0x408d2b
or eax, eax
jmp 0x408d3c
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
inc al
mov byte [ebp - 0x22], al
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
push dword [ebp - 0x1798]
push str.UPDATE_CustomGift_SET_QuantityQuantity1_WHERE_AccountID_s
push 0x447690
call fcn.00416db0
add esp, 0xc
push dword [0x44769c]
call edi
push 2
push dword [0x44769c]
call esi
mov esi, dword [ebp - 0x17a0]
lea eax, [ebp - 0x28]
push 8
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [ebp - 0x1798]
push str.INSERT_INTO_CustomGift__AccountID_Quantity__VALUES___s_1_
push 0x447690
call fcn.00416db0
add esp, 0xc
push dword [0x44769c]
test al, al
jne 0x408e04
call edi
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call eax
push 8
lea eax, [ebp - 0x28]
mov byte [ebp - 0x22], 0
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
call edi
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call eax
push 8
lea eax, [ebp - 0x28]
mov byte [ebp - 0x22], 1
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
mov ax, word [edi + 4]
mov edx, 0x3e7
movzx ecx, word [edi + 6]
mov word [ebp - 0x1a], ax
movzx eax, word [edi + 8]
mov byte [ebp - 0x20], 0xc2
mov word [ebp - 0x1d], 0x90f
mov dword [ebp - 0x17a0], 0xe
mov word [ebp - 0x18], cx
mov word [ebp - 0x16], ax
mov byte [ebp - 0x14], 0
cmp ax, dx
jne 0x408e67
or eax, 0xffffffff
push eax
push ecx
push str.EXEC_WZ_CustomTop__d__d
push 0x447690
call fcn.00416db0
add esp, 0x10
test al, al
je 0x408f2d
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408f2d
lea edi, [ebp - 0x105a]
nop
push str.VALUE1
call fcn.00417040
cmp eax, 0xffffffff
jne 0x408ec3
xorps xmm0, xmm0
mov word [ebp - 0x28], 0
movq qword [ebp - 0x30], xmm0
mov byte [ebp - 0x26], 0
jmp 0x408edc
shl eax, 0xd
push 0xa
add eax, 0x4482be
push eax
lea eax, [ebp - 0x30]
push 0xb
push eax
call fcn.00423e56
add esp, 0x10
push str.VALUE2
call fcn.00417040
cmp eax, 0xffffffff
jne 0x408eef
or eax, eax
jmp 0x408f00
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push dword [0x44769c]
add dword [ebp - 0x17a0], 0x10
inc byte [ebp - 0x14]
mov dword [ebp - 0x24], eax
movups xmm0, xmmword [ebp - 0x30]
movups xmmword [edi], xmm0
add edi, 0x10
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x408ea0
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x17a0]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x1f], al
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1060], eax
mov ax, word [ebp - 0x14]
mov word [ebp - 0x105c], ax
lea eax, [ebp - 0x1068]
push ecx
mov byte [ebp - 0x1e], cl
movq xmm0, qword [ebp - 0x20]
push eax
push esi
movq qword [ebp - 0x1068], xmm0
call fcn.004182a0
jmp case.0x407b44.1
cmp byte [edi], 0xc1
jne 0x408f96
mov al, byte [edi + 3]
jmp 0x408f99
mov al, byte [edi + 4]
test al, al
je 0x4090c1
cmp al, 0x30
jne case.0x407b44.1
lea eax, [edi + 0x13]
push eax
push str.SELECT_Name_FROM_QuestWorld_WHERE_Name_s
push 0x447690
mov dword [ebp - 0x1798], eax
call fcn.00416db0
add esp, 0xc
test al, al
je 0x409050
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409050
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov eax, dword [ebp - 0x1794]
push 0x510450
push 0
add eax, 0x1e
mov dword [0x510450], 0x190
push eax
push 0
push 0x190
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x1798]
push str.UPDATE_QuestWorld_SET_QuestWorldList__WHERE_Name_s
push 0x447690
call fcn.00416db0
add esp, 0xc
jmp 0x408794
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov eax, dword [ebp - 0x1794]
push 0x510450
push 0
add eax, 0x1e
mov dword [0x510450], 0x190
push eax
push 0
push 0x190
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x1798]
push str.INSERT_INTO_QuestWorld__Name_QuestWorldList__VALUES___s___
push 0x447690
call fcn.00416db0
add esp, 0xc
jmp 0x408794
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x212], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x208], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x206], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x210], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x1fd], ax
mov al, byte [ecx + 0xa]
push str.SELECT_QuestWorldList_FROM_QuestWorld_WHERE_Name_s
push 0x447690
mov dword [ebp - 0x218], 0x10ae01c2
mov byte [ebp - 0x214], 0
movq qword [ebp - 0x205], xmm0
mov byte [ebp - 0x1fb], al
call fcn.00416db0
add esp, 0xc
test al, al
je 0x409191
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409191
push 0x190
lea eax, [ebp - 0x1fa]
push eax
push str.QuestWorldList
call fcn.004170c0
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1ae
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x190
lea eax, [ebp - 0x1fa]
push 0xff
push eax
call fcn.0041b210
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x1ae
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
cmp byte [edi], 0xc1
jne 0x4091e5
mov al, byte [edi + 3]
jmp 0x4091e8
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x30
ja case.0x407b44.1
movzx eax, byte [eax + 0x40dde0]
jmp dword [eax*4 + 0x40ddc4]
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x1784], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x177a], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x1778], al
movzx eax, word [ecx + 8]
mov word [ebp - 0x176f], ax
mov al, byte [ecx + 0xa]
mov byte [ebp - 0x176d], al
movzx eax, byte [edi + 0x1c]
push eax
push ecx
movq qword [ebp - 0x1782], xmm0
movq xmm0, qword [ecx]
push str.INSERT_INTO_Gens_Rank__Name_Family_Contribution__VALUES___s__d_0_
push 0x447690
mov dword [ebp - 0x1788], 0x1128c1
movq qword [ebp - 0x1777], xmm0
mov word [ebp - 0x176c], 0
mov dword [ebp - 0x1768], 0
mov dword [ebp - 0x1764], 0
call fcn.00416db0
add esp, 0x10
push dword [0x44769c]
test al, al
jne 0x4092c9
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x28
lea eax, [ebp - 0x1788]
mov byte [ebp - 0x176c], 1
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
mov al, byte [edi + 0x1c]
mov byte [ebp - 0x176b], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
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 0x447690
call fcn.00416db0
add esp, 0x10
test al, al
je 0x4093a3
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4093a3
push str.Rank
call fcn.00417040
cmp eax, 0xffffffff
jne 0x409332
or eax, eax
jmp 0x409343
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Contribution
mov dword [ebp - 0x1768], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40935c
or eax, eax
jmp 0x40936d
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push dword [0x44769c]
mov dword [ebp - 0x1764], eax
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call eax
push 0x28
lea eax, [ebp - 0x1788]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
push dword [0x44769c]
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call eax
push 0x28
lea eax, [ebp - 0x1788]
mov byte [ebp - 0x176c], 1
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x177c], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x1772], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x1770], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x177a], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x1767], ax
mov al, byte [ecx + 0xa]
push str.DELETE_FROM_Gens_Rank_WHERE_Name_s
push 0x447690
mov dword [ebp - 0x1780], 0x1111ec1
movq qword [ebp - 0x176f], xmm0
mov byte [ebp - 0x1765], al
call fcn.00416db0
add esp, 0xc
push dword [0x44769c]
test al, al
jne 0x40946d
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x1764], 1
jmp 0x409488
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x1764], 0
push 0x1e
lea eax, [ebp - 0x1780]
push eax
push esi
call fcn.004182a0
mov eax, dword [edi + 0x20]
push 0xffffffffffffffff
inc eax
push eax
movzx eax, byte [edi + 0x1c]
push eax
call fcn.00413550
jmp case.0x407b44.1
movzx eax, word [edi + 4]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x1784], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x177a], ax
mov al, byte [edi + 0x10]
add edi, 0x11
mov byte [ebp - 0x1778], al
push edi
movq qword [ebp - 0x1782], xmm0
movzx eax, word [edi + 8]
movq xmm0, qword [edi]
mov word [ebp - 0x176f], ax
mov al, byte [edi + 0xa]
push str.SELECT_Family_FROM_Gens_Rank_WHERE_Name_s
push 0x447690
mov dword [ebp - 0x1788], 0x21128c1
movq qword [ebp - 0x1777], xmm0
mov byte [ebp - 0x176d], al
mov word [ebp - 0x176c], 0
mov dword [ebp - 0x1768], 0
mov dword [ebp - 0x1764], 0
call fcn.00416db0
add esp, 0xc
test al, al
je 0x4095f8
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4095f8
push str.Family
call fcn.00417040
cmp eax, 0xffffffff
jne 0x409567
or eax, eax
jmp 0x409578
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push dword [0x44769c]
mov dword [ebp - 0x1798], eax
mov byte [ebp - 0x176b], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1798]
movzx eax, cl
push eax
push edi
push str.EXEC_WZ_GetCharacterGensInfo__s__d
push 0x447690
call fcn.00416db0
add esp, 0x10
test al, al
je 0x4093a3
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4093a3
push str.Rank
call fcn.00417090
push str.Contribution
mov dword [ebp - 0x1768], eax
call fcn.00417090
jmp 0x40936d
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x28
lea eax, [ebp - 0x1788]
mov byte [ebp - 0x176c], 1
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
push esi
push edi
call fcn.00413390
jmp case.0x407b44.1
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x1784], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x177a], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x1778], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x1782], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x176f], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Rank_Status_FROM_Gens_Reward_WHERE_Name_s
push 0x447690
mov dword [ebp - 0x1788], 0x41128c1
movq qword [ebp - 0x1777], xmm0
mov byte [ebp - 0x176d], al
mov word [ebp - 0x176c], 0
mov dword [ebp - 0x1768], 0
mov dword [ebp - 0x1764], 0
call fcn.00416db0
add esp, 0xc
test al, al
je 0x4095f8
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4095f8
mov al, byte [edi + 0x1c]
push str.Rank
mov byte [ebp - 0x176b], al
call fcn.00417040
cmp eax, 0xffffffff
jne 0x4096fc
or eax, eax
jmp 0x40970d
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.Status
mov dword [ebp - 0x1768], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x409726
or eax, eax
jmp 0x409737
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push dword [0x44769c]
mov dword [ebp - 0x1764], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x28
lea eax, [ebp - 0x1788]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_Gens_Reward_WHERE_Name_s
push 0x447690
mov dword [ebp - 0x24], eax
call fcn.00416db0
add esp, 0xc
test al, al
je 0x4097cf
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4097cf
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 0x1794]
mov eax, dword [ebp - 0x24]
push eax
push dword [ecx + 0x24]
push str.UPDATE_Gens_Reward_SET_Status_d_WHERE_Name_s
jmp 0x408787
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 0x1794]
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 0x447690
call fcn.00416db0
add esp, 0x14
jmp 0x408794
cmp byte [edi], 0xc1
jne 0x40981e
mov al, byte [edi + 3]
jmp 0x409821
mov al, byte [edi + 4]
test al, al
je 0x409949
cmp al, 0x30
jne case.0x407b44.1
lea eax, [edi + 0x13]
push eax
push str.SELECT_Name_FROM_HelperData_WHERE_Name_s
push 0x447690
mov dword [ebp - 0x1798], eax
call fcn.00416db0
add esp, 0xc
test al, al
je 0x4098d8
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4098d8
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov eax, dword [ebp - 0x1794]
push 0x510450
push 0
add eax, 0x1e
mov dword [0x510450], 0x100
push eax
push 0
push pe_nt_image_headers32
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x1798]
push str.UPDATE_HelperData_SET_Data__WHERE_Name_s
push 0x447690
call fcn.00416db0
add esp, 0xc
jmp 0x408794
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov eax, dword [ebp - 0x1794]
push 0x510450
push 0
add eax, 0x1e
mov dword [0x510450], 0x100
push eax
push 0
push pe_nt_image_headers32
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x1798]
push str.INSERT_INTO_HelperData__Name_Data__VALUES___s___
push 0x447690
call fcn.00416db0
add esp, 0xc
jmp 0x408794
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x182], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x178], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x176], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x180], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x16d], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Data_FROM_HelperData_WHERE_Name_s
push 0x447690
mov dword [ebp - 0x188], 0x172001c2
mov byte [ebp - 0x184], 0
movq qword [ebp - 0x175], xmm0
mov byte [ebp - 0x16b], al
call fcn.00416db0
add esp, 0xc
test al, al
je 0x409a20
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409a20
push pe_nt_image_headers32
lea eax, [ebp - 0x169]
mov byte [ebp - 0x16a], 0
push eax
push str.Data
call fcn.004170c0
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x120
lea eax, [ebp - 0x188]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push pe_nt_image_headers32
lea eax, [ebp - 0x169]
mov byte [ebp - 0x16a], 1
push 0xff
push eax
call fcn.0041b210
add esp, 0xc
lea eax, [ebp - 0x188]
push 0x120
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
cmp byte [edi], 0xc1
jne 0x409a7b
mov al, byte [edi + 3]
jmp 0x409a7e
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x34
ja case.0x407b44.1
movzx eax, byte [eax + 0x40de48]
jmp dword [eax*4 + 0x40de14]
push esi
push edi
call fcn.00402b10
jmp case.0x407b44.1
push esi
push edi
call fcn.00402cc0
jmp case.0x407b44.1
push esi
push edi
call fcn.00402e80
jmp case.0x407b44.1
push esi
push edi
call fcn.00403120
jmp case.0x407b44.1
push esi
push edi
call fcn.004034a0
jmp case.0x407b44.1
cmp byte [edi + 0x13], 0
mov edx, 0x14
movzx eax, word [edi + 6]
movq xmm0, qword [edi + 8]
mov word [ebp - 0x177a], ax
movzx eax, word [edi + 0x10]
mov word [ebp - 0x1770], ax
mov al, byte [edi + 0x12]
mov byte [ebp - 0x1780], 0xc2
mov word [ebp - 0x177d], 0x518
mov dword [ebp - 0x1794], edx
movq qword [ebp - 0x1778], xmm0
mov byte [ebp - 0x176e], al
mov byte [ebp - 0x176d], 0
mov dword [ebp - 0x24], 0
jbe 0x40aa44
lea eax, [ebp - 0x1054]
mov dword [ebp - 0x17a4], eax
lea esi, [edi + 0x18]
push dword [esi]
push str.SELECT_Time_FROM_CashShopPeriodicItem_WHERE_ItemSerial_d
push 0x447690
call fcn.00416db0
add esp, 0xc
test al, al
je 0x409bc3
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409bc3
mov al, byte [esi - 4]
mov byte [ebp - 0x1c], al
mov eax, dword [esi]
push str.Time
mov dword [ebp - 0x18], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x409b8a
or eax, eax
jmp 0x409b9b
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push dword [0x44769c]
mov dword [ebp - 0x1798], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x1798]
jmp 0x409c1a
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_CashShopPeriodicItem__ItemSerial_Time__VALUES___d__d_
push 0x447690
call fcn.00416db0
add esp, 0x10
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [ebp - 0x1c], al
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
xor eax, eax
mov ecx, dword [ebp - 0x17a4]
add esi, 8
movq xmm0, qword [ebp - 0x1c]
mov edx, dword [ebp - 0x1794]
inc byte [ebp - 0x176d]
add edx, 0xc
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
add ecx, 0xc
movzx eax, byte [edi + 0x13]
mov dword [ebp - 0x17a4], ecx
mov ecx, dword [ebp - 0x24]
inc ecx
mov dword [ebp - 0x1794], edx
mov dword [ebp - 0x24], ecx
cmp ecx, eax
jl 0x409b42
jmp 0x40aa3e
movzx eax, word [edi + 4]
lea ecx, [edi + 6]
movq xmm0, qword [ecx]
mov word [ebp - 0x1788], ax
movzx eax, word [ecx + 8]
mov word [ebp - 0x177e], ax
mov al, byte [ecx + 0xa]
mov byte [ebp - 0x177c], al
mov eax, dword [edi + 0x14]
push ecx
mov dword [ebp - 0x1778], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x1774], eax
mov eax, dword [edi + 0x1c]
push str.SELECT__FROM_CashShopData_WHERE_AccountID_s
push 0x447690
mov dword [ebp - 0x178c], 0x6182cc1
movq qword [ebp - 0x1786], xmm0
mov dword [ebp - 0x1770], eax
call fcn.00416db0
add esp, 0xc
test al, al
je 0x409d95
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409d95
push str.WCoinC
call fcn.00417040
cmp eax, 0xffffffff
jne 0x409cfc
or eax, eax
jmp 0x409d0d
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.WCoinP
mov dword [ebp - 0x176c], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x409d26
or eax, eax
jmp 0x409d37
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.GoblinPoint
mov dword [ebp - 0x1768], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x409d50
or eax, eax
jmp 0x409d61
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push dword [0x44769c]
mov dword [ebp - 0x1764], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x2c
lea eax, [ebp - 0x178c]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x2c
lea eax, [ebp - 0x178c]
mov dword [ebp - 0x176c], 0
push eax
push esi
mov dword [ebp - 0x1768], 0
mov dword [ebp - 0x1764], 0
call fcn.004182a0
jmp case.0x407b44.1
push edi
call fcn.00403790
jmp case.0x407b44.1
push edi
call fcn.004039b0
jmp case.0x407b44.1
cmp byte [edi + 0x13], 0
mov eax, 0x13
mov esi, dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov ecx, 8
cmovne ecx, eax
push 0x510450
push 0
mov ax, word [ecx + edi + 8]
movq xmm0, qword [ecx + edi]
mov word [ebp - 0x14], ax
mov al, byte [ecx + edi + 0xa]
mov byte [ebp - 0x12], al
lea eax, [edi + 0x39]
push eax
push 0
push 0xb
push 0xc
push 1
push 1
push 1
push dword [0x44769c]
movq qword [ebp - 0x1c], xmm0
mov dword [0x510450], 0xfffffffd
call esi
push 0x510454
push 0
lea eax, [edi + 0x44]
mov dword [0x510454], 0xfffffffd
push eax
push 0
push 0xc8
push 0xc
push 1
push 1
push 2
push dword [0x44769c]
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 - 0x1c]
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 0x447690
call fcn.00416db0
add esp, 0x2c
jmp 0x40da5c
push dword [edi + 0x1c]
push str.DELETE_FROM_CashShopInventory_WHERE_BaseItemCode_d
push 0x447690
call fcn.00416db0
add esp, 0xc
jmp 0x40da5c
cmp byte [edi + 0x13], 0
mov dword [ebp - 0x24], 0
jbe case.0x407b44.1
lea esi, [edi + 0x14]
nop dword [eax + eax]
push dword [esi]
push str.SELECT_ItemSerial_FROM_CashShopPeriodicItem_WHERE_ItemSerial_d
push 0x447690
call fcn.00416db0
add esp, 0xc
test al, al
je 0x409f40
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409f40
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
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 0x409f64
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
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 0x447690
call fcn.00416db0
add esp, 0x10
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x24]
add esi, 8
movzx eax, byte [edi + 0x13]
inc ecx
mov dword [ebp - 0x24], ecx
cmp ecx, eax
jl 0x409ef0
jmp case.0x407b44.1
cmp byte [edi], 0xc1
jne 0x409fb0
mov al, byte [edi + 3]
jmp 0x409fb3
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x31
ja case.0x407b44.1
movzx eax, byte [eax + 0x40de98]
jmp dword [eax*4 + 0x40de80]
movzx eax, word [edi + 4]
add edi, 6
mov word [ebp - 0x1774], ax
push edi
push str.SELECT__FROM_LuckyCoin_WHERE_AccountID_s
movzx eax, word [edi + 8]
movq xmm0, qword [edi]
mov word [ebp - 0x176a], ax
mov al, byte [edi + 0xa]
push 0x447690
mov dword [ebp - 0x1778], 0x1a18c1
movq qword [ebp - 0x1772], xmm0
mov byte [ebp - 0x1768], al
mov byte [ebp - 0x1767], 0
call fcn.00416db0
add esp, 0xc
test al, al
je 0x40a08d
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a08d
push str.LuckyCoin
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40a048
or eax, eax
jmp 0x40a059
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push dword [0x44769c]
mov dword [ebp - 0x1764], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1778]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push str.INSERT_INTO_LuckyCoin__AccountID_LuckyCoin__VALUES___s_0_
push 0x447690
call fcn.00416db0
add esp, 0xc
test al, al
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push dword [0x44769c]
jne 0x40a0f5
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call eax
push 0x18
lea eax, [ebp - 0x1778]
mov byte [ebp - 0x1767], 1
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call eax
push 0x18
lea eax, [ebp - 0x1778]
mov dword [ebp - 0x1764], 0
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
movzx eax, word [edi + 4]
lea ecx, [edi + 6]
movq xmm0, qword [ecx]
mov word [ebp - 0x1774], ax
movzx eax, word [ecx + 8]
mov word [ebp - 0x176a], ax
mov al, byte [ecx + 0xa]
push ecx
mov byte [ebp - 0x1768], al
mov al, byte [edi + 0x11]
push str.SELECT__FROM_LuckyCoin_WHERE_AccountID_s
push 0x447690
mov dword [ebp - 0x1778], 0x11a18c1
movq qword [ebp - 0x1772], xmm0
mov byte [ebp - 0x1767], 0
mov byte [ebp - 0x1766], al
call fcn.00416db0
add esp, 0xc
test al, al
je 0x40a1ed
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a1ed
push str.LuckyCoin
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40a1a8
or eax, eax
jmp 0x40a1b9
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push dword [0x44769c]
mov dword [ebp - 0x1764], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1778]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1778]
mov byte [ebp - 0x1767], 1
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
movzx eax, word [edi + 4]
lea ecx, [edi + 6]
movq xmm0, qword [ecx]
mov word [ebp - 0x1778], ax
movzx eax, word [ecx + 8]
mov word [ebp - 0x176e], ax
mov al, byte [ecx + 0xa]
push ecx
mov byte [ebp - 0x176c], al
mov eax, dword [edi + 0x14]
push str.SELECT__FROM_LuckyCoin_WHERE_AccountID_s
push 0x447690
mov dword [ebp - 0x177c], 0x21a1cc1
movq qword [ebp - 0x1776], xmm0
mov byte [ebp - 0x176b], 0
mov dword [ebp - 0x1768], eax
call fcn.00416db0
add esp, 0xc
test al, al
je 0x40a2eb
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a2eb
push str.LuckyCoin
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40a2a6
or eax, eax
jmp 0x40a2b7
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push dword [0x44769c]
mov dword [ebp - 0x1764], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1c
lea eax, [ebp - 0x177c]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1c
lea eax, [ebp - 0x177c]
mov byte [ebp - 0x176b], 1
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
lea eax, [edi + 6]
push eax
push str.SELECT_LuckyCoin_FROM_LuckyCoin_WHERE_AccountID_s
push 0x447690
mov dword [ebp - 0x17a4], eax
call fcn.00416db0
add esp, 0xc
test al, al
je 0x40a3bf
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a3bf
push str.LuckyCoin
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40a366
mov dword [ebp - 0x24], eax
jmp 0x40a37a
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
mov dword [ebp - 0x24], eax
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 0x1794]
push dword [ebp - 0x17a4]
mov eax, dword [ecx + 0x14]
mov ecx, bind
add eax, dword [ebp - 0x24]
cmp eax, ecx
cmova eax, ecx
push eax
push str.UPDATE_LuckyCoin_SET_LuckyCoin_d_WHERE_AccountID_s
jmp 0x408787
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 0x1794]
push dword [ecx + 0x14]
push dword [ebp - 0x17a4]
push str.INSERT_INTO_LuckyCoin__AccountID_LuckyCoin__VALUES___s__d_
jmp 0x408787
lea eax, [edi + 6]
push eax
push str.SELECT_LuckyCoin_FROM_LuckyCoin_WHERE_AccountID_s
push 0x447690
mov dword [ebp - 0x24], eax
call fcn.00416db0
add esp, 0xc
test al, al
je 0x40a4a0
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a4a0
push str.LuckyCoin
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40a440
mov dword [ebp - 0x17a0], eax
jmp 0x40a457
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
mov dword [ebp - 0x17a0], eax
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 0x1794]
mov edx, dword [ecx + 0x14]
lea eax, [ecx + 6]
mov ecx, dword [ebp - 0x17a0]
push eax
sub ecx, edx
xor eax, eax
cmp edx, dword [ebp - 0x17a0]
cmovbe eax, ecx
push eax
push str.UPDATE_LuckyCoin_SET_LuckyCoin_d_WHERE_AccountID_s
jmp 0x408787
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov eax, dword [ebp - 0x24]
push 0
push 0
push 0
push eax
push str.INSERT_INTO_LuckyCoin__AccountID_LuckyCoin__VALUES___s__d_
push 0x447690
call fcn.00416db0
add esp, 0x18
jmp 0x408794
mov ax, word [edi + 4]
mov cl, 0x10
mov word [ebp - 0x1c], ax
mov eax, dword [edi + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0xc]
xor edi, edi
mov word [ebp - 0x20], 0x10c1
xor esi, esi
mov byte [ebp - 0x1e], 0x1e
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x511774]
test eax, eax
js 0x40a535
cmp eax, 0x14
jge 0x40a535
cmp dword [esi + 0x511778], 0
je 0x40a535
cmp dword [esi + 0x51178c], 0xffffffff
je 0x40a535
movzx eax, cl
push eax
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.004182a0
mov cl, byte [ebp - 0x1f]
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x40a503
jmp case.0x407b44.1
movzx eax, word [edi + 4]
push eax
push str.EXEC_WZ_CW_InfoLoad__d
push 0x447690
mov word [ebp - 0x20], 0x10c1
mov byte [ebp - 0x1e], 0x1f
mov word [ebp - 0x1c], ax
call fcn.00416db0
add esp, 0xc
test al, al
je 0x40a5fe
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a5fe
push str.CRYWOLF_STATE
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40a598
or eax, eax
jmp 0x40a5a9
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.CRYWOLF_OCCUFY
mov dword [ebp - 0x18], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40a5bf
or eax, eax
jmp 0x40a5d0
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push dword [0x44769c]
mov dword [ebp - 0x14], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 0
push eax
push esi
mov dword [ebp - 0x14], 0
call fcn.004182a0
jmp case.0x407b44.1
movq xmm0, qword [edi + 7]
mov cl, 0x4e
movzx eax, word [edi + 4]
movq qword [ebp - 0x17f9], xmm0
movups xmm0, xmmword [edi + 0x12]
mov word [ebp - 0x17fc], ax
mov al, byte [edi + 6]
movups xmmword [ebp - 0x17ee], xmm0
mov byte [ebp - 0x17fa], al
movups xmm0, xmmword [edi + 0x22]
movzx eax, word [edi + 0xf]
mov word [ebp - 0x17f1], ax
mov al, byte [edi + 0x11]
movups xmmword [ebp - 0x17de], xmm0
mov byte [ebp - 0x17ef], al
movups xmm0, xmmword [edi + 0x32]
mov eax, dword [edi + 0x4a]
mov word [ebp - 0x1800], 0x4ec1
movups xmmword [ebp - 0x17ce], xmm0
mov byte [ebp - 0x17fe], 0x20
movq xmm0, qword [edi + 0x42]
xor edi, edi
movq qword [ebp - 0x17be], xmm0
xor esi, esi
mov dword [ebp - 0x17b6], eax
nop dword [eax]
mov eax, dword [esi + 0x511774]
test eax, eax
js 0x40a6f8
cmp eax, 0x14
jge 0x40a6f8
cmp dword [esi + 0x511778], 0
je 0x40a6f8
cmp dword [esi + 0x51178c], 0xffffffff
je 0x40a6f8
movzx eax, cl
push eax
lea eax, [ebp - 0x1800]
push eax
push edi
call fcn.004182a0
mov cl, byte [ebp - 0x17ff]
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x40a6c0
jmp case.0x407b44.1
movzx eax, word [edi + 4]
lea esi, [edi + 0x11]
mov word [ebp - 0xf4], ax
mov ecx, 0x20
mov al, byte [edi + 6]
mov byte [ebp - 0xf2], al
mov al, byte [edi + 7]
mov byte [ebp - 0xf1], al
mov al, byte [edi + 8]
mov byte [ebp - 0xf0], al
movzx eax, word [edi + 0xa]
mov word [ebp - 0xee], ax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0xec], eax
mov al, byte [edi + 0x10]
lea edi, [ebp - 0xe7]
mov word [ebp - 0xf8], 0x94c1
mov byte [ebp - 0xf6], 0x21
mov byte [ebp - 0xe8], al
rep movsd dword es:[edi], dword [esi]
xor edi, edi
xor esi, esi
mov eax, dword [esi + 0x511774]
test eax, eax
js 0x40a7a6
cmp eax, 0x14
jge 0x40a7a6
cmp dword [esi + 0x511778], 0
je 0x40a7a6
cmp dword [esi + 0x51178c], 0xffffffff
je 0x40a7a6
movzx eax, byte [ebp - 0xf7]
push eax
lea eax, [ebp - 0xf8]
push eax
push edi
call fcn.004182a0
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x40a770
jmp case.0x407b44.1
cmp byte [edi], 0xc1
jne 0x40a7c1
mov al, byte [edi + 3]
jmp 0x40a7c4
mov al, byte [edi + 4]
test al, al
je 0x40a8a6
cmp al, 0x4a
jne case.0x407b44.1
cmp byte [edi + 0x13], 0
mov dword [ebp - 0x24], 0
jbe case.0x407b44.1
lea esi, [edi + 0x14]
nop dword [eax + eax]
push dword [esi]
push str.SELECT_ItemSerial_FROM_LuckyItem_WHERE_ItemSerial_d
push 0x447690
call fcn.00416db0
add esp, 0xc
test al, al
je 0x40a840
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a840
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
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 0x40a864
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
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 0x447690
call fcn.00416db0
add esp, 0x10
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x24]
add esi, 8
movzx eax, byte [edi + 0x13]
inc ecx
mov dword [ebp - 0x24], ecx
cmp ecx, eax
jl 0x40a7f0
jmp case.0x407b44.1
cmp byte [edi + 0x13], 0
mov edx, 0x14
movzx eax, word [edi + 6]
movq xmm0, qword [edi + 8]
mov word [ebp - 0x177a], ax
movzx eax, word [edi + 0x10]
mov word [ebp - 0x1770], ax
mov al, byte [edi + 0x12]
mov byte [ebp - 0x1780], 0xc2
mov word [ebp - 0x177d], 0x22
mov dword [ebp - 0x17a4], edx
movq qword [ebp - 0x1778], xmm0
mov byte [ebp - 0x176e], al
mov byte [ebp - 0x176d], 0
mov dword [ebp - 0x1794], 0
jbe 0x40aa44
lea eax, [ebp - 0x1054]
mov dword [ebp - 0x1798], eax
lea esi, [edi + 0x18]
nop word [eax + eax]
push dword [esi]
push str.SELECT_DurabilitySmall_FROM_LuckyItem_WHERE_ItemSerial_d
push 0x447690
call fcn.00416db0
add esp, 0xc
test al, al
je 0x40a99b
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a99b
mov al, byte [esi - 4]
mov byte [ebp - 0x1c], al
mov eax, dword [esi]
push str.DurabilitySmall
mov dword [ebp - 0x18], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40a968
or eax, eax
jmp 0x40a979
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push dword [0x44769c]
mov dword [ebp - 0x24], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x24]
jmp 0x40a9f2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_LuckyItem__ItemSerial_DurabilitySmall__VALUES___d__d_
push 0x447690
call fcn.00416db0
add esp, 0x10
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [ebp - 0x1c], al
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
xor eax, eax
mov ecx, dword [ebp - 0x1798]
add esi, 8
movq xmm0, qword [ebp - 0x1c]
mov edx, dword [ebp - 0x17a4]
inc byte [ebp - 0x176d]
add edx, 0xc
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
add ecx, 0xc
movzx eax, byte [edi + 0x13]
mov dword [ebp - 0x1798], ecx
mov ecx, dword [ebp - 0x1794]
inc ecx
mov dword [ebp - 0x17a4], edx
mov dword [ebp - 0x1794], ecx
cmp ecx, eax
jl 0x40a920
mov esi, dword [ebp - 0x17a0]
mov eax, edx
mov byte [ebp - 0x177e], dl
shr eax, 8
mov byte [ebp - 0x177f], al
mov eax, dword [ebp - 0x1770]
movups xmm0, xmmword [ebp - 0x1780]
mov dword [ebp - 0x1058], eax
lea eax, [ebp - 0x1068]
push edx
push eax
push esi
movups xmmword [ebp - 0x1068], xmm0
call fcn.004182a0
jmp case.0x407b44.1
cmp byte [edi], 0xc1
jne 0x40aa8c
mov al, byte [edi + 3]
jmp 0x40aa8f
mov al, byte [edi + 4]
test al, al
je 0x40abae
cmp al, 0x30
jne case.0x407b44.1
lea eax, [edi + 0x13]
push eax
push str.SELECT_Name_FROM_MuunInventory_WHERE_Name_s
push 0x447690
mov dword [ebp - 0x24], eax
call fcn.00416db0
add esp, 0xc
test al, al
je 0x40ab40
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40ab40
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov eax, dword [ebp - 0x1794]
push 0x510450
push 0
add eax, 0x1e
mov dword [0x510450], 0x3e0
push eax
push 0
push 0x3e0
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x24]
push str.UPDATE_MuunInventory_SET_Items__WHERE_Name_s
push 0x447690
call fcn.00416db0
add esp, 0xc
jmp 0x408794
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov eax, dword [ebp - 0x1794]
push 0x510450
push 0
add eax, 0x1e
mov dword [0x510450], 0x3e0
push eax
push 0
push 0x3e0
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x24]
push str.INSERT_INTO_MuunInventory__Name_Items__VALUES___s___
push 0x447690
call fcn.00416db0
add esp, 0xc
jmp 0x408794
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x462], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x458], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x456], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x460], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x44d], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Items_FROM_MuunInventory_WHERE_Name_s
push 0x447690
mov dword [ebp - 0x468], 0x27fe03c2
mov byte [ebp - 0x464], 0
movq qword [ebp - 0x455], xmm0
mov byte [ebp - 0x44b], al
call fcn.00416db0
add esp, 0xc
test al, al
je 0x40ac7e
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40ac7e
push 0x3e0
lea eax, [ebp - 0x44a]
push eax
push str.Items
call fcn.004170c0
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x3fe
lea eax, [ebp - 0x468]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x3e0
lea eax, [ebp - 0x44a]
push 0xff
push eax
call fcn.0041b210
add esp, 0xc
lea eax, [ebp - 0x468]
push 0x3fe
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
mov ecx, edi
call fcn.0040fe20
jmp case.0x407b44.1
push 0x510450
push 0
lea eax, [edi + 0x1c]
mov dword [0x510450], 0xf90
push eax
push 0
push 0xf90
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x44769c]
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
jmp 0x40da4f
mov ecx, edi
call fcn.004101d0
jmp case.0x407b44.1
cmp byte [edi + 0x11], 0
mov dword [ebp - 0x24], 0
jbe case.0x407b44.1
lea esi, [edi + 0x16]
nop word [eax + eax]
push dword [esi - 4]
push str.SELECT_ItemSerial_FROM_T_PetItem_Info_WHERE_ItemSerial_d
push 0x447690
call fcn.00416db0
add esp, 0xc
test al, al
je 0x40ad96
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40ad96
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
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 0x40adbf
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
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 0x447690
call fcn.00416db0
add esp, 0x14
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x24]
add esi, 0xc
movzx eax, byte [edi + 0x11]
inc ecx
mov dword [ebp - 0x24], ecx
cmp ecx, eax
jl 0x40ad40
jmp case.0x407b44.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 0x447690
call fcn.00416db0
add esp, 0x20
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40da5c
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 0x447690
call fcn.00416db0
add esp, 0x24
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40da5c
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingDuel_WHERE_Name_s
push 0x447690
call fcn.00416db0
add esp, 0xc
test al, al
je 0x40aee5
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40aee5
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 0x1794]
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 0x447690
call fcn.00416db0
add esp, 0x18
jmp 0x408794
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 0x1794]
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 0x447690
call fcn.00416db0
add esp, 0x18
jmp 0x408794
push dword [edi + 0x1c]
lea eax, [edi + 0x11]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_RankingBloodCastle__s__s__d
push 0x447690
call fcn.00416db0
add esp, 0x14
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40da5c
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 0x40af3c
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 0x40af3c
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 0x40af3c
lea eax, [edi + 6]
push eax
movzx eax, byte [edi + 0x11]
push eax
push str.UPDATE_AccountCharacter_SET_ExtClass_d_WHERE_Id_s
jmp 0x40da4f
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 0x40af3c
push dword [edi + 0x30]
lea eax, [edi + 0x11]
push dword [edi + 0x2c]
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_CustomMonsterReward__s__s__d__d__d__d__d__d
push 0x447690
call fcn.00416db0
add esp, 0x28
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40da5c
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 0x447690
call fcn.00416db0
add esp, 0x1c
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40da5c
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 0x447690
call fcn.00416db0
add esp, 0x18
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40da5c
lea esi, [edi + 0x11]
push esi
lea eax, [ebp - 0x1780]
push eax
call fcn.00404710
test al, al
jne case.0x407b44.1
push esi
lea eax, [ebp - 0x1780]
push 0xb
push eax
call fcn.0041d583
add esp, 0xc
lea eax, [edi + 6]
push eax
lea eax, [ebp - 0x1775]
push 0xb
push eax
call fcn.0041d583
mov ax, word [edi + 4]
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x1780]
mov ecx, dword [ebp - 0x1798]
mov word [ebp - 0x176a], ax
mov eax, esp
mov cx, word [ecx + 0x5117cc]
movups xmmword [eax], xmm0
mov word [ebp - 0x1768], cx
movq xmm0, qword [ebp - 0x1770]
movq qword [eax + 0x10], xmm0
mov word [eax + 0x18], cx
call fcn.00404880
push 0
push esi
call fcn.00406c30
jmp case.0x407b44.1
mov edx, esi
mov ecx, edi
call fcn.00410320
jmp case.0x407b44.1
movzx eax, word [edi + 4]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x180c], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x1802], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x1800], al
movzx eax, word [edi + 0x19]
mov word [ebp - 0x17f7], ax
mov al, byte [edi + 0x1b]
mov byte [ebp - 0x17f5], al
lea eax, [edi + 0x1c]
push eax
movq qword [ebp - 0x180a], xmm0
lea eax, [ebp - 0x177c]
movq xmm0, qword [edi + 0x11]
push eax
mov word [ebp - 0x1810], 0x64c1
mov byte [ebp - 0x180e], 0x72
movq qword [ebp - 0x17ff], xmm0
call fcn.00404710
test al, al
jne 0x40b16e
mov byte [ebp - 0x17f4], al
jmp 0x40b299
movq xmm0, qword [ebp - 0x1771]
xor edx, edx
movzx eax, word [ebp - 0x1766]
movq qword [ebp - 0xc2], xmm0
movq xmm0, qword [ebp - 0x177c]
mov word [ebp - 0xc4], ax
movzx eax, word [ebp - 0x1769]
movq qword [ebp - 0xb7], xmm0
movq xmm0, qword [edi + 0x11]
mov word [ebp - 0xba], ax
mov al, byte [ebp - 0x1767]
movq qword [ebp - 0xac], xmm0
movups xmm0, xmmword [edi + 0x27]
mov byte [ebp - 0xb8], al
movzx eax, word [ebp - 0x1774]
mov word [ebp - 0xaf], ax
mov al, byte [ebp - 0x1772]
movups xmmword [ebp - 0xa1], xmm0
mov byte [ebp - 0xad], al
movups xmm0, xmmword [edi + 0x37]
movzx eax, word [edi + 0x19]
mov word [ebp - 0xa4], ax
mov al, byte [edi + 0x1b]
movups xmmword [ebp - 0x91], xmm0
mov byte [ebp - 0xa2], al
movups xmm0, xmmword [edi + 0x47]
mov eax, dword [edi + 0x5f]
mov dword [ebp - 0x69], eax
xor eax, eax
movups xmmword [ebp - 0x81], xmm0
mov byte [ebp - 0x17f4], 1
movq xmm0, qword [edi + 0x57]
mov word [ebp - 0xc8], 0x64c1
mov byte [ebp - 0xc6], 0x73
movq qword [ebp - 0x71], xmm0
nop dword [eax]
mov ecx, dword [eax + 0x511774]
test ecx, ecx
js 0x40b271
cmp ecx, 0x14
jge 0x40b271
cmp dword [eax + 0x511778], 0
je 0x40b271
cmp dword [eax + 0x51178c], 0xffffffff
je 0x40b271
mov cx, word [ebp - 0x1764]
cmp word [eax + 0x5117cc], cx
je 0x40b27e
add eax, 0x68
inc edx
cmp eax, 0x820
jl 0x40b240
jmp 0x40b299
imul eax, edx, 0x68
add eax, 0x511770
je 0x40b299
push 0x64
lea ecx, [ebp - 0xc8]
push ecx
push dword [eax + 4]
call fcn.004182a0
movq xmm0, qword [edi + 0x1c]
mov ax, word [edi + 0x24]
movq qword [ebp - 0x17f3], xmm0
movups xmm0, xmmword [edi + 0x27]
mov word [ebp - 0x17eb], ax
mov al, byte [edi + 0x26]
movups xmmword [ebp - 0x17e8], xmm0
mov byte [ebp - 0x17e9], al
movups xmm0, xmmword [edi + 0x37]
mov eax, dword [edi + 0x5f]
mov dword [ebp - 0x17b0], eax
lea eax, [ebp - 0x1810]
movups xmmword [ebp - 0x17d8], xmm0
push 0x64
movups xmm0, xmmword [edi + 0x47]
push eax
push esi
movups xmmword [ebp - 0x17c8], xmm0
movq xmm0, qword [edi + 0x57]
movq qword [ebp - 0x17b8], xmm0
call fcn.004182a0
jmp case.0x407b44.1
lea eax, [edi + 3]
push eax
push str.SELECT_Name_FROM_RankingKingGuild_WHERE_Name_s
push 0x447690
mov dword [ebp - 0x24], eax
call fcn.00416db0
add esp, 0xc
test al, al
je 0x40b377
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40b377
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 0x1794]
push dword [ebp - 0x24]
mov eax, dword [ecx + 0xc]
push eax
push eax
push str.UPDATE_RankingKingGuild_SET_ScoreScore_d_Score_semanalScore_semanal_d_WHERE_Name_s
push 0x447690
call fcn.00416db0
add esp, 0x14
jmp 0x408794
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 0x1794]
mov eax, dword [ecx + 0xc]
push eax
push eax
push dword [ebp - 0x24]
push str.INSERT_INTO_RankingKingGuild__Name_Score_Score_semanal__VALUES___s__d__d_
push 0x447690
call fcn.00416db0
add esp, 0x14
jmp 0x408794
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingKingPlayer_WHERE_Name_s
push 0x447690
mov dword [ebp - 0x24], eax
call fcn.00416db0
add esp, 0xc
test al, al
je 0x40b42c
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40b42c
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 0x1794]
push dword [ebp - 0x24]
mov eax, dword [ecx + 0x1c]
push eax
push eax
push str.UPDATE_RankingKingPlayer_SET_ScoreScore_d_Score_semanalScore_semanal_d_WHERE_Name_s
push 0x447690
call fcn.00416db0
add esp, 0x14
jmp 0x408794
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 0x1794]
mov eax, dword [ecx + 0x1c]
push eax
push eax
push dword [ebp - 0x24]
push str.INSERT_INTO_RankingKingPlayer__Name_Score_Score_semanal__VALUES___s__d__d_
push 0x447690
call fcn.00416db0
add esp, 0x14
jmp 0x408794
cmp byte [edi], 0xc1
jne 0x40b479
mov al, byte [edi + 3]
jmp 0x40b47c
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x1b
ja case.0x407b44.1
jmp dword [eax*4 + 0x40decc]
movzx eax, word [edi + 4]
lea ecx, [ebp - 0x1790]
push ecx
push dword [edi + 8]
mov dword [ebp - 0x17e8], 0x8038c1
push eax
mov word [ebp - 0x17e0], ax
call fcn.00403c50
test eax, eax
je 0x40b4d6
push 0x38
lea eax, [ebp - 0x17e8]
mov dword [ebp - 0x17e4], 0
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
movzx eax, word [ebp - 0x1790]
xorps xmm0, xmm0
mov word [ebp - 0x17de], ax
mov al, byte [ebp - 0x178e]
mov byte [ebp - 0x17dc], al
mov al, byte [ebp - 0x178d]
mov byte [ebp - 0x17db], al
movzx eax, word [ebp - 0x178c]
mov word [ebp - 0x17da], ax
mov al, byte [ebp - 0x178a]
mov byte [ebp - 0x17d8], al
mov al, byte [ebp - 0x1789]
mov byte [ebp - 0x17d7], al
mov al, byte [ebp - 0x1788]
mov byte [ebp - 0x17d6], al
mov al, byte [ebp - 0x1787]
mov byte [ebp - 0x17d5], al
mov al, byte [ebp - 0x1786]
mov byte [ebp - 0x17d4], al
mov eax, dword [ebp - 0x1778]
mov dword [ebp - 0x17c8], eax
mov eax, dword [ebp - 0x1774]
mov dword [ebp - 0x17c4], eax
mov eax, dword [ebp - 0x1770]
mov dword [ebp - 0x17c0], eax
mov eax, dword [ebp - 0x176c]
mov dword [ebp - 0x17bc], eax
mov eax, dword [ebp - 0x1768]
mov dword [ebp - 0x17b8], eax
mov eax, dword [ebp - 0x1764]
mov dword [ebp - 0x17b4], eax
mov eax, dword [ebp - 0x1785]
movq qword [ebp - 0x17d3], xmm0
mov dword [ebp - 0x17d3], eax
mov eax, dword [ebp - 0x1781]
mov dword [ebp - 0x17cf], eax
lea eax, [ebp - 0x17e8]
push 0x38
push eax
push esi
mov dword [ebp - 0x17e4], 1
call fcn.004182a0
jmp case.0x407b44.1
movzx ecx, word [edi + 4]
mov eax, dword [edi + 8]
push ecx
push str.EXEC_WZ_CS_GetOwnerGuildMaster__d
push 0x447690
mov dword [ebp - 0x191c], 0x18024c1
mov word [ebp - 0x1914], cx
mov dword [ebp - 0x1910], eax
call fcn.00416db0
add esp, 0xc
push dword [0x44769c]
test al, al
jne 0x40b63c
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x24
lea eax, [ebp - 0x191c]
mov dword [ebp - 0x1918], 0
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b6ee
cmp ax, 0xffff
je 0x40b6ee
xorps xmm0, xmm0
push str.QueryResult
movaps xmmword [ebp - 0x20], xmm0
movaps xmmword [ebp - 0x30], xmm0
call fcn.00417090
push str.OwnerGuild
mov dword [ebp - 0x1918], eax
call fcn.00417040
cmp eax, 0xffffffff
je 0x40b69c
shl eax, 0xd
push 0xf
add eax, 0x4482be
push eax
lea eax, [ebp - 0x20]
push 0x10
push eax
call fcn.00423e56
add esp, 0x10
push str.OwnerGuildMaster
call fcn.00417040
cmp eax, 0xffffffff
je 0x40b6c4
shl eax, 0xd
push 0xf
add eax, 0x4482be
push eax
lea eax, [ebp - 0x30]
push 0x10
push eax
call fcn.00423e56
add esp, 0x10
mov eax, dword [ebp - 0x20]
movaps xmm0, xmmword [ebp - 0x30]
mov dword [ebp - 0x190c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1908], eax
pextrw eax, xmm0, 4
movq qword [ebp - 0x1904], xmm0
mov word [ebp - 0x18fc], ax
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x24
lea eax, [ebp - 0x191c]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
movzx esi, word [edi + 4]
mov dword [ebp - 0x1770], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x1764], 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 - 0x177c], 0x3801cc1
push dword [edi + 0x1c]
mov word [ebp - 0x1774], si
push dword [edi + 0x18]
mov dword [ebp - 0x176c], edx
push dword [edi + 0x14]
mov dword [ebp - 0x1768], ecx
push ecx
push edx
push esi
push str.EXEC_WZ_CS_ReqNpcBuy__d___d___d___d___d___d___d___d___d___d
push 0x447690
call fcn.00416db0
add esp, 0x30
push dword [0x44769c]
test al, al
je 0x40b7db
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b7d5
cmp ax, 0xffff
je 0x40b7d5
push str.QueryResult
call fcn.00417090
mov esi, eax
call fcn.00417020
mov ecx, dword [ebp - 0x17a0]
lea eax, [ebp - 0x177c]
push 0x1c
push eax
push ecx
mov dword [ebp - 0x1778], esi
call fcn.004182a0
jmp case.0x407b44.1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x17a0]
lea eax, [ebp - 0x177c]
push 0x1c
push eax
push ecx
mov dword [ebp - 0x1778], 0
call fcn.004182a0
jmp case.0x407b44.1
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
movzx esi, word [edi + 4]
mov eax, dword [edi + 8]
push ecx
push edx
push esi
mov dword [ebp - 0x18ec], eax
mov eax, dword [edi + 0x14]
push str.EXEC_WZ_CS_ReqNpcRepair__d___d___d
push 0x447690
mov dword [ebp - 0x18f8], 0x48024c1
mov word [ebp - 0x18f0], si
mov dword [ebp - 0x18e8], edx
mov dword [ebp - 0x18e4], ecx
mov dword [ebp - 0x18d8], eax
call fcn.00416db0
add esp, 0x14
push dword [0x44769c]
test al, al
je 0x40b8d7
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b8d1
cmp ax, 0xffff
je 0x40b8d1
push str.QueryResult
call fcn.00417090
push str.NPC_HP
mov esi, eax
call fcn.00417090
push str.NPC_MAXHP
mov dword [ebp - 0x18dc], eax
call fcn.00417090
mov dword [ebp - 0x18e0], eax
call fcn.00417020
mov ecx, dword [ebp - 0x17a0]
lea eax, [ebp - 0x18f8]
push 0x24
push eax
push ecx
mov dword [ebp - 0x18f4], esi
call fcn.004182a0
jmp case.0x407b44.1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x17a0]
lea eax, [ebp - 0x18f8]
push 0x24
push eax
push ecx
mov dword [ebp - 0x18f4], 0
call fcn.004182a0
jmp case.0x407b44.1
movzx eax, word [edi + 4]
mov word [ebp - 0x177c], ax
mov eax, dword [edi + 8]
mov edi, dword [edi + 0xc]
mov dword [ebp - 0x1778], eax
mov eax, dword [ebp - 0x1794]
mov dword [ebp - 0x1784], 0x58024c1
mov dword [ebp - 0x1774], 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 - 0x1768], ecx
mov ecx, dword [ebp - 0x1794]
push esi
mov dword [ebp - 0x1764], eax
push edi
movzx eax, word [ecx + 4]
push eax
push str.EXEC_WZ_CS_ReqNpcUpgrade__d___d___d___d___d
push 0x447690
mov dword [ebp - 0x1770], esi
mov dword [ebp - 0x176c], edx
call fcn.00416db0
add esp, 0x1c
push dword [0x44769c]
test al, al
je 0x40b9e4
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b9de
cmp ax, 0xffff
je 0x40b9de
push str.QueryResult
call fcn.00417090
test eax, eax
jne 0x40b9b5
call fcn.00417020
jmp 0x40b9f8
call fcn.00417020
mov ecx, dword [ebp - 0x17a0]
lea eax, [ebp - 0x1784]
push 0x24
push eax
push ecx
mov dword [ebp - 0x1780], 1
call fcn.004182a0
jmp case.0x407b44.1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x17a0]
lea eax, [ebp - 0x1784]
push 0x24
push eax
push ecx
mov dword [ebp - 0x1780], 0
call fcn.004182a0
jmp case.0x407b44.1
movzx ecx, word [edi + 4]
mov eax, dword [edi + 8]
push ecx
push str.EXEC_WZ_CS_GetCastleTaxInfo__d
push 0x447690
mov dword [ebp - 0x1948], 0x68028c1
mov word [ebp - 0x1940], cx
mov dword [ebp - 0x193c], eax
call fcn.00416db0
add esp, 0xc
push dword [0x44769c]
test al, al
je 0x40bb19
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40bb13
cmp ax, 0xffff
je 0x40bb13
push str.MONEY
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40ba8e
or eax, eax
or edx, 0xffffffff
jmp 0x40ba9f
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b01
add esp, 4
push str.TAX_RATE_CHAOS
mov dword [ebp - 0x1938], eax
mov dword [ebp - 0x1934], edx
call fcn.00417090
push str.TAX_RATE_STORE
mov dword [ebp - 0x1930], eax
call fcn.00417090
push str.TAX_HUNT_ZONE
mov dword [ebp - 0x192c], eax
call fcn.00417090
push dword [0x44769c]
mov dword [ebp - 0x1928], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x28
lea eax, [ebp - 0x1948]
mov dword [ebp - 0x1944], 1
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x28
lea eax, [ebp - 0x1948]
mov dword [ebp - 0x1944], 0
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.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 0x447690
mov dword [ebp - 0x1848], 0x78018c1
mov word [ebp - 0x1840], cx
mov dword [ebp - 0x183c], eax
call fcn.00416db0
add esp, 0x14
push dword [0x44769c]
test al, al
je 0x40bbf8
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40bbf2
cmp ax, 0xffff
je 0x40bbf2
push str.QueryResult
call fcn.00417090
push str.TaxKind
mov esi, eax
call fcn.00417090
push str.TaxRate
mov dword [ebp - 0x1838], eax
call fcn.00417090
mov dword [ebp - 0x1834], eax
call fcn.00417020
push 0x18
lea eax, [ebp - 0x1848]
mov dword [ebp - 0x1844], esi
mov esi, dword [ebp - 0x17a0]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1848]
mov dword [ebp - 0x1844], 0
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
mov eax, dword [edi + 8]
movzx ecx, word [edi + 4]
mov dword [ebp - 0x1774], eax
mov eax, dword [edi + 0xc]
push eax
push ecx
push str.EXEC_WZ_CS_ModifyMoney__d___d
push 0x447690
mov dword [ebp - 0x1780], 0x88020c1
mov word [ebp - 0x1778], cx
mov dword [ebp - 0x1770], eax
call fcn.00416db0
add esp, 0x10
push dword [0x44769c]
test al, al
je 0x40bcfe
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40bcf8
cmp ax, 0xffff
je 0x40bcf8
push str.QueryResult
call fcn.00417090
push str.MONEY
mov dword [ebp - 0x17a4], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40bcae
or edi, eax
mov dword [ebp - 0x24], eax
jmp 0x40bcc4
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b01
add esp, 4
mov dword [ebp - 0x24], edx
mov edi, eax
call fcn.00417020
mov eax, dword [ebp - 0x17a4]
mov dword [ebp - 0x177c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1764], eax
lea eax, [ebp - 0x1780]
push 0x20
push eax
push esi
mov dword [ebp - 0x1768], edi
call fcn.004182a0
jmp case.0x407b44.1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x20
lea eax, [ebp - 0x1780]
mov dword [ebp - 0x177c], 0
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
mov eax, dword [edi + 8]
movzx ecx, word [edi + 4]
mov dword [ebp - 0x176c], 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 0x447690
mov dword [ebp - 0x1778], 0x98018c1
mov word [ebp - 0x1770], cx
call fcn.00416db0
add esp, 0x24
push dword [0x44769c]
test al, al
je 0x40be30
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40be2a
cmp ax, 0xffff
je 0x40be2a
push str.QueryResult
call fcn.00417090
push dword [0x44769c]
mov esi, eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, word [edi + 0xc]
mov ecx, dword [ebp - 0x17a0]
mov word [ebp - 0x1768], ax
mov al, byte [edi + 0xe]
mov byte [ebp - 0x1766], al
mov al, byte [edi + 0xf]
mov byte [ebp - 0x1765], al
movzx eax, word [edi + 0x10]
mov word [ebp - 0x1764], ax
mov al, byte [edi + 0x12]
mov byte [ebp - 0x1762], al
mov al, byte [edi + 0x13]
mov byte [ebp - 0x1761], al
lea eax, [ebp - 0x1778]
push 0x18
push eax
push ecx
mov dword [ebp - 0x1774], esi
call fcn.004182a0
jmp case.0x407b44.1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1778]
mov dword [ebp - 0x1774], 0
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
mov eax, dword [edi + 8]
movzx ecx, word [edi + 4]
mov dword [ebp - 0x1824], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [edi + 0x10]
mov edi, ecx
mov word [ebp - 0x1828], cx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x1830], 0xa8020c1
lea edx, [ecx + 1]
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x38], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40be98
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x40bebf
mov dl, byte [ebp + eax - 0x3c]
cmp dl, 0x20
je 0x40bf26
cmp dl, 0x22
je 0x40bf26
cmp dl, 0x27
je 0x40bf26
inc eax
cmp eax, ecx
jl 0x40bea7
lea eax, [ebp - 0x3c]
push eax
push edi
push str.EXEC_WZ_CS_GetGuildMarkRegInfo__d___s
push 0x447690
call fcn.00416db0
add esp, 0x10
push dword [0x44769c]
test al, al
jne 0x40bf12
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x20
lea eax, [ebp - 0x1830]
mov dword [ebp - 0x182c], 0
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx ecx, ax
cmp cx, 0xffff
jne 0x40bf44
call fcn.00417020
push 0x20
lea eax, [ebp - 0x1830]
mov dword [ebp - 0x182c], 0
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1820], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x181c], eax
cmp cx, 0x64
jne 0x40bf8a
mov dword [ebp - 0x1818], 0
mov edi, 2
call fcn.00417020
push 0x20
lea eax, [ebp - 0x1830]
mov dword [ebp - 0x182c], edi
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
push str.REG_MARKS
mov edi, 1
call fcn.00417090
push str.SEQ_NUM
mov dword [ebp - 0x1818], eax
call fcn.00417090
push str.IS_GIVEUP
mov byte [ebp - 0x1813], al
call fcn.00417090
test eax, eax
setg byte [ebp - 0x1814]
call fcn.00417020
push 0x20
lea eax, [ebp - 0x1830]
mov dword [ebp - 0x182c], edi
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
push dword [edi + 8]
movzx eax, word [edi + 4]
push eax
push str.EXEC_WZ_CS_ModifySiegeEnd__d___d
push 0x447690
mov dword [ebp - 0x20], 0xb8010c1
mov word [ebp - 0x18], ax
call fcn.00416db0
add esp, 0x10
push dword [0x44769c]
test al, al
je 0x40c06b
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40c065
cmp ax, 0xffff
je 0x40c065
push str.QueryResult
call fcn.00417090
push dword [0x44769c]
mov esi, eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x17a0]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
movzx eax, word [edi + 4]
lea edx, [ebp - 0x2c]
mov word [ebp - 0x1858], ax
lea ecx, [edx + 1]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x1860], 0xc8018c1
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x28], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x40c0c2
sub edx, ecx
lea ecx, [ebp - 0x2c]
call fcn.004190e0
test al, al
je 0x40c167
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov dword [ebp - 0x1850], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x184c], eax
lea eax, [ebp - 0x2c]
push eax
movzx eax, word [edi + 4]
push ecx
push eax
push str.EXEC_WZ_CS_ModifyCastleOwnerInfo__d___d___s
push 0x447690
mov dword [ebp - 0x1854], ecx
call fcn.00416db0
add esp, 0x14
test al, al
je 0x40c162
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40c162
cmp ax, 0xffff
je 0x40c162
push str.QueryResult
call fcn.00417090
mov esi, eax
call fcn.00417020
push 0x18
lea eax, [ebp - 0x1860]
mov dword [ebp - 0x185c], esi
mov esi, dword [ebp - 0x17a0]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
call fcn.00417020
push 0x18
lea eax, [ebp - 0x1860]
mov dword [ebp - 0x185c], 0
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
movzx eax, word [edi + 4]
lea edx, [ebp - 0x2c]
mov word [ebp - 0x1870], ax
lea ecx, [edx + 1]
mov eax, dword [edi + 8]
mov dword [ebp - 0x186c], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x1878], 0xd8018c1
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x28], eax
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x40c1c0
sub edx, ecx
lea ecx, [ebp - 0x2c]
call fcn.004190e0
test al, al
je 0x40c25a
mov eax, dword [ebp - 0x1868]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x1864]
mov dword [edi + 0x10], eax
mov eax, ecx
push eax
movzx eax, word [edi + 4]
push eax
push str.EXEC_WZ_CS_ReqRegAttackGuild__d___s
push 0x447690
call fcn.00416db0
add esp, 0x10
test al, al
je 0x40c255
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40c255
cmp ax, 0xffff
je 0x40c255
push str.QueryResult
call fcn.00417090
mov esi, eax
call fcn.00417020
push 0x18
lea eax, [ebp - 0x1878]
mov dword [ebp - 0x1874], esi
mov esi, dword [ebp - 0x17a0]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
call fcn.00417020
push 0x18
lea eax, [ebp - 0x1878]
mov dword [ebp - 0x1874], 0
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
movzx eax, word [edi + 4]
push eax
push str.EXEC_WZ_CS_ResetCastleSiege__d
push 0x447690
mov dword [ebp - 0x1c], 0xe800cc1
mov word [ebp - 0x14], ax
call fcn.00416db0
add esp, 0xc
push dword [0x44769c]
test al, al
je 0x40ca18
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40ca12
cmp ax, 0xffff
je 0x40ca12
push str.QueryResult
call fcn.00417090
push dword [0x44769c]
mov esi, eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x17a0]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
mov ax, word [edi + 4]
lea esi, [edi + 6]
mov ecx, 0x20
mov dword [ebp - 0xf0], 0xf8086c1
lea edi, [ebp - 0xea]
mov word [ebp - 0xec], ax
rep movsd dword es:[edi], dword [esi]
xor edi, edi
xor esi, esi
nop
mov eax, dword [esi + 0x511774]
test eax, eax
js 0x40c363
cmp eax, 0x14
jge 0x40c363
cmp dword [esi + 0x511778], 0
je 0x40c363
cmp dword [esi + 0x51178c], 0xffffffff
je 0x40c363
push 0x86
lea eax, [ebp - 0xf0]
push eax
push edi
call fcn.004182a0
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x40c330
jmp case.0x407b44.1
mov eax, dword [edi + 8]
movzx ecx, word [edi + 4]
mov dword [ebp - 0x188c], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x1880], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x10]
mov edi, ecx
mov word [ebp - 0x1890], cx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x1898], 0x108020c1
lea edx, [ecx + 1]
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x44], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c3b3
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x40c3e6
mov dl, byte [ebp + eax - 0x48]
cmp dl, 0x20
je 0x40c4a6
cmp dl, 0x22
je 0x40c4a6
cmp dl, 0x27
je 0x40c4a6
inc eax
cmp eax, ecx
jl 0x40c3c2
lea eax, [ebp - 0x48]
push eax
push edi
push str.EXEC_WZ_CS_ReqRegGuildMark__d___s
push 0x447690
call fcn.00416db0
add esp, 0x10
push dword [0x44769c]
test al, al
jne 0x40c439
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x20
lea eax, [ebp - 0x1898]
mov dword [ebp - 0x1894], 0
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40c4a1
cmp ax, 0xffff
je 0x40c4a1
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x1888], eax
mov eax, dword [ebp - 0x44]
push str.QueryResult
mov dword [ebp - 0x1884], eax
call fcn.00417090
push str.REG_MARKS
mov esi, eax
call fcn.00417090
mov dword [ebp - 0x187c], eax
call fcn.00417020
push 0x20
lea eax, [ebp - 0x1898]
mov dword [ebp - 0x1894], esi
mov esi, dword [ebp - 0x17a0]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
call fcn.00417020
push 0x20
lea eax, [ebp - 0x1898]
mov dword [ebp - 0x1894], 0
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
mov eax, dword [edi + 0xc]
movzx ecx, word [edi + 4]
mov dword [ebp - 0x54], eax
mov eax, dword [edi + 0x10]
mov edi, ecx
mov word [ebp - 0x18cc], cx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x18d4], 0x11801cc1
lea edx, [ecx + 1]
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0x50], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c4f1
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x40c524
mov dl, byte [ebp + eax - 0x54]
cmp dl, 0x20
je 0x40c5dc
cmp dl, 0x22
je 0x40c5dc
cmp dl, 0x27
je 0x40c5dc
inc eax
cmp eax, ecx
jl 0x40c500
lea eax, [ebp - 0x54]
push eax
push edi
push str.EXEC_WZ_CS_ModifyGuildMarkReset__d___s
push 0x447690
call fcn.00416db0
add esp, 0x10
push dword [0x44769c]
test al, al
jne 0x40c577
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1c
lea eax, [ebp - 0x18d4]
mov dword [ebp - 0x18d0], 0
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40c5d7
cmp ax, 0xffff
je 0x40c5d7
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x18c4], eax
mov eax, dword [ebp - 0x50]
push str.QueryResult
mov dword [ebp - 0x18c0], eax
call fcn.00417090
push str.DEL_MARKS
mov dword [ebp - 0x18d0], eax
call fcn.00417090
mov dword [ebp - 0x18bc], eax
call fcn.00417020
push 0x1c
lea eax, [ebp - 0x18d4]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
call fcn.00417020
push 0x1c
lea eax, [ebp - 0x18d4]
mov dword [ebp - 0x18d0], 0
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
movzx ecx, word [edi + 4]
mov eax, dword [edi + 8]
mov dword [ebp - 0x18ac], eax
mov eax, dword [edi + 0xc]
mov word [ebp - 0x18b0], cx
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], eax
lea edx, [ecx + 1]
mov eax, dword [edi + 0x10]
mov edi, dword [edi + 0x14]
mov dword [ebp - 0x18b8], 0x128020c1
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x5c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c634
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x40c667
mov dl, byte [ebp + eax - 0x60]
cmp dl, 0x20
je 0x40c728
cmp dl, 0x22
je 0x40c728
cmp dl, 0x27
je 0x40c728
inc eax
cmp eax, ecx
jl 0x40c643
push edi
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x24]
push str.EXEC_WZ_CS_ModifyGuildGiveUp__d___s___d
push 0x447690
call fcn.00416db0
add esp, 0x14
push dword [0x44769c]
test al, al
jne 0x40c6bd
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x20
lea eax, [ebp - 0x18b8]
mov dword [ebp - 0x18b4], 0
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40c723
cmp ax, 0xffff
je 0x40c723
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x18a8], eax
mov eax, dword [ebp - 0x5c]
push str.QueryResult
mov dword [ebp - 0x18a4], eax
mov dword [ebp - 0x18a0], edi
call fcn.00417090
push str.DEL_MARKS
mov dword [ebp - 0x18b4], eax
call fcn.00417090
mov dword [ebp - 0x189c], eax
call fcn.00417020
push 0x20
lea eax, [ebp - 0x18b8]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
call fcn.00417020
push 0x20
lea eax, [ebp - 0x18b8]
mov dword [ebp - 0x18b4], 0
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.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 0x447690
mov dword [ebp - 0x1774], 0x168014c1
mov word [ebp - 0x176c], dx
mov dword [ebp - 0x1768], ecx
mov dword [ebp - 0x1764], eax
call fcn.00416db0
add esp, 0x14
push dword [0x44769c]
test al, al
je 0x40c7ed
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40c7e7
cmp ax, 0xffff
je 0x40c7e7
push str.QueryResult
call fcn.00417090
push dword [0x44769c]
mov esi, eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x14
lea eax, [ebp - 0x1774]
mov dword [ebp - 0x1770], esi
mov esi, dword [ebp - 0x17a0]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x14
lea eax, [ebp - 0x1774]
mov dword [ebp - 0x1770], 0
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
mov ax, word [edi + 4]
mov word [ebp - 0x177c], ax
mov eax, dword [edi + 8]
mov dword [ebp - 0x1778], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x1774], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x1770], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x176c], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x1768], eax
mov eax, dword [edi + 0x1c]
xor edi, edi
mov dword [ebp - 0x1780], 0x178020c1
xor esi, esi
mov dword [ebp - 0x1764], eax
nop
mov eax, dword [esi + 0x511774]
test eax, eax
js 0x40c8a0
cmp eax, 0x14
jge 0x40c8a0
cmp dword [esi + 0x511778], 0
je 0x40c8a0
cmp dword [esi + 0x51178c], 0xffffffff
je 0x40c8a0
push 0x20
lea eax, [ebp - 0x1780]
push eax
push edi
call fcn.004182a0
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x40c870
jmp case.0x407b44.1
movzx eax, word [edi + 4]
mov ecx, dword [edi + 8]
mov dword [ebp - 0x1c], 0x18800cc1
mov word [ebp - 0x14], ax
test ecx, ecx
jns 0x40c8df
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
push ecx
push eax
push str.EXEC_WZ_CS_ModifyMoney__d___d
push 0x447690
call fcn.00416db0
add esp, 0x10
push dword [0x44769c]
test al, al
je 0x40ca18
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40ca12
cmp ax, 0xffff
je 0x40ca12
push str.QueryResult
call fcn.00417090
push str.MONEY
mov edi, eax
call fcn.00417040
cmp eax, 0xffffffff
je 0x40c94a
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b01
add esp, 4
call fcn.00417020
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], edi
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
movzx eax, word [edi + 4]
push eax
mov dword [ebp - 0x1c], 0x19800cc1
push str.EXEC_WZ_CS_ResetCastleTaxInfo__d
push 0x447690
mov word [ebp - 0x14], ax
call fcn.00416db0
add esp, 0xc
push dword [0x44769c]
test al, al
je 0x40ca18
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40ca12
cmp ax, 0xffff
je 0x40ca12
push str.QueryResult
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40c9bb
or edi, eax
jmp 0x40c9ce
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
mov edi, eax
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], edi
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
movzx eax, word [edi + 4]
push eax
mov dword [ebp - 0x1c], 0x1a800cc1
push str.EXEC_WZ_CS_ResetSiegeGuildInfo__d
jmp 0x40c974
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
movzx eax, word [edi + 4]
push eax
push str.EXEC_WZ_CS_ResetRegSiegeInfo__d
push 0x447690
mov dword [ebp - 0x1c], 0x1b800cc1
mov word [ebp - 0x14], ax
call fcn.00416db0
add esp, 0xc
push dword [0x44769c]
test al, al
je 0x40ca18
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40ca12
cmp ax, 0xffff
je 0x40ca12
push str.QueryResult
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40ca98
or edi, eax
jmp 0x40caab
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
mov edi, eax
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], edi
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
mov edx, esi
mov ecx, edi
call fcn.004104e0
jmp case.0x407b44.1
test edi, edi
je case.0x407b44.1
movzx eax, word [edi + 4]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x1744]
mov word [ebp - 0x1750], ax
push ecx
push eax
mov dword [ebp - 0x24], 0xc8
mov dword [ebp - 0x1748], 0
call fcn.00403e20
mov byte [ebp - 0x1758], 0xc2
mov byte [ebp - 0x1755], 0x82
test eax, eax
je 0x40cb85
mov edx, dword [ebp - 0x1748]
mov dword [ebp - 0x1754], 0
lea eax, [edx*8]
sub eax, edx
lea eax, [eax*4 + 0x14]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0x1756], cl
shr eax, 8
mov byte [ebp - 0x1757], al
lea eax, [edx*8]
sub eax, edx
lea eax, [eax*4 + 0x14]
push eax
lea eax, [ebp - 0x1758]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x1754], 1
mov dword [ebp - 0x1748], edx
lea eax, [edx*8]
sub eax, edx
lea eax, [eax*4 + 0x14]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0x1756], cl
shr eax, 8
mov byte [ebp - 0x1757], al
lea eax, [edx*8]
sub eax, edx
lea eax, [eax*4 + 0x14]
push eax
lea eax, [ebp - 0x1758]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
test edi, edi
je case.0x407b44.1
mov eax, dword [edi + 8]
movzx ecx, word [edi + 4]
mov dword [ebp - 0x7ac], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x7a4]
mov word [ebp - 0x7b0], cx
push eax
push ecx
mov dword [ebp - 0x24], 0x64
mov dword [ebp - 0x7a8], 0
call fcn.004040d0
mov byte [ebp - 0x7b8], 0xc2
mov byte [ebp - 0x7b5], 0x83
test eax, eax
je 0x40cc74
mov edx, dword [ebp - 0x7a8]
mov eax, edx
shl eax, 4
add eax, 0x14
shl edx, 4
movzx ecx, ax
add edx, 0x14
mov eax, ecx
mov dword [ebp - 0x7b4], 0
shr eax, 8
mov byte [ebp - 0x7b7], al
lea eax, [ebp - 0x7b8]
push edx
push eax
push esi
mov byte [ebp - 0x7b6], cl
call fcn.004182a0
jmp case.0x407b44.1
mov edx, dword [ebp - 0x24]
mov eax, edx
shl eax, 4
add eax, 0x14
mov dword [ebp - 0x7a8], edx
movzx ecx, ax
mov eax, ecx
shl edx, 4
shr eax, 8
add edx, 0x14
mov byte [ebp - 0x7b7], al
lea eax, [ebp - 0x7b8]
push edx
push eax
push esi
mov dword [ebp - 0x7b4], 1
mov byte [ebp - 0x7b6], cl
call fcn.004182a0
jmp case.0x407b44.1
test edi, edi
je case.0x407b44.1
movzx eax, word [edi + 4]
push eax
push str.DELETE_MuCastle_NPC_WHERE_MAP_SVR_GROUP___d
push 0x447690
mov word [ebp - 0x1c], 0xcc1
mov byte [ebp - 0x1a], 0x84
mov word [ebp - 0x14], ax
mov dword [ebp - 0x1798], eax
call fcn.00416db0
add esp, 0xc
push dword [0x44769c]
test al, al
je 0x40ca18
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp dword [edi + 8], 0
mov dword [ebp - 0x24], 0
jle 0x40cda5
lea ecx, [edi + 0x25]
mov dword [ebp - 0x17a4], ecx
nop dword [eax + eax]
movzx eax, byte [ecx + 1]
push eax
movzx eax, byte [ecx]
push eax
movzx eax, byte [ecx - 1]
push eax
push dword [ecx - 5]
push dword [ecx - 9]
push dword [ecx - 0xd]
push dword [ecx - 0x11]
push dword [ecx - 0x15]
push dword [ecx - 0x19]
push dword [ebp - 0x1798]
push str.EXEC_WZ_CS_ReqNpcBuy__d___d___d___d___d___d___d___d___d___d
push 0x447690
call fcn.00416db0
add esp, 0x30
push dword [0x44769c]
test al, al
je 0x40ca18
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x17a4]
inc eax
add ecx, 0x1c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x17a4], ecx
cmp eax, dword [edi + 8]
jl 0x40cd30
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 1
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
test edi, edi
je case.0x407b44.1
movzx eax, word [edi + 4]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0xac8]
mov word [ebp - 0xad0], ax
push ecx
push eax
mov dword [ebp - 0x24], 0x64
mov dword [ebp - 0xacc], 0
call fcn.00404280
mov byte [ebp - 0xad8], 0xc2
mov byte [ebp - 0xad5], 0x85
test eax, eax
je 0x40ce4f
mov edx, dword [ebp - 0xacc]
mov dword [ebp - 0xad4], 0
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0xad6], cl
shr eax, 8
mov byte [ebp - 0xad7], al
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
push eax
lea eax, [ebp - 0xad8]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0xad4], 1
mov dword [ebp - 0xacc], edx
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0xad6], cl
shr eax, 8
mov byte [ebp - 0xad7], al
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
push eax
lea eax, [ebp - 0xad8]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
mov edx, esi
mov ecx, edi
call fcn.004106e0
jmp case.0x407b44.1
mov edx, esi
mov ecx, edi
call fcn.004108e0
jmp case.0x407b44.1
test edi, edi
je case.0x407b44.1
movzx eax, word [edi + 4]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x938]
mov word [ebp - 0x940], ax
push ecx
push eax
mov dword [ebp - 0x24], 0x64
mov dword [ebp - 0x93c], 0
call fcn.00404490
mov byte [ebp - 0x948], 0xc2
mov byte [ebp - 0x945], 0x88
test eax, eax
je 0x40cf4b
mov edx, dword [ebp - 0x93c]
mov dword [ebp - 0x944], 0
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0x946], cl
shr eax, 8
mov byte [ebp - 0x947], al
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
push eax
lea eax, [ebp - 0x948]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x944], 1
mov dword [ebp - 0x93c], edx
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0x946], cl
shr eax, 8
mov byte [ebp - 0x947], al
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
push eax
lea eax, [ebp - 0x948]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
test edi, edi
je case.0x407b44.1
movzx eax, word [edi + 4]
push eax
push str.DELETE_MuCastle_NPC_WHERE_MAP_SVR_GROUP___d
push 0x447690
mov word [ebp - 0x1c], 0xcc1
mov byte [ebp - 0x1a], 0x89
mov word [ebp - 0x14], ax
mov dword [ebp - 0x1798], eax
call fcn.00416db0
add esp, 0xc
push dword [0x44769c]
test al, al
je 0x40d07e
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp dword [edi + 8], 0
mov dword [ebp - 0x24], 0
jle 0x40cda5
lea ecx, [edi + 0x25]
mov dword [ebp - 0x17a4], 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 - 0x1798]
push str.EXEC_WZ_CS_ReqNpcUpdate__d___d___d___d___d___d___d___d___d___d
push 0x447690
call fcn.00416db0
add esp, 0x30
push dword [0x44769c]
test al, al
je 0x40d07e
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x17a4]
inc eax
add ecx, 0x1c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x17a4], ecx
cmp eax, dword [edi + 8]
jl 0x40d008
jmp 0x40cda5
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax + 3]
dec eax
cmp eax, 4
ja case.0x407b44.1
jmp dword [eax*4 + 0x40df3c]
push dword [ebx + 0xc]
mov ecx, esi
push edi
call fcn.00411770
add esp, 8
jmp case.0x407b44.1
push dword [ebx + 0xc]
push edi
push ecx
push esi
call fcn.00405850
jmp case.0x407b44.1
lea ecx, [edi + 0x1c]
mov edx, str.marry
nop dword [eax]
mov al, byte [ecx]
cmp al, byte [edx]
mov byte [ebp - 0x1799], al
lea eax, [edi + 0x1c]
jne 0x40d12c
cmp byte [ebp - 0x1799], 0
je 0x40d128
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
mov byte [ebp - 0x1799], al
lea eax, [edi + 0x1c]
jne 0x40d12c
add ecx, 2
add edx, 2
cmp byte [ebp - 0x1799], 0
jne 0x40d0f0
xor ecx, ecx
jmp 0x40d131
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x40d160
lea eax, [edi + 0x11]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_SetMarryInfo__s__s
push 0x447690
call fcn.00416db0
add esp, 0x10
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40da5c
mov ecx, str.divorce
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d185
test dl, dl
je 0x40d181
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d185
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d165
xor eax, eax
jmp 0x40d18a
sbb eax, eax
or eax, 1
test eax, eax
jne case.0x407b44.1
lea eax, [edi + 0x11]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_SetDivorceInfo__s__s
push 0x447690
call fcn.00416db0
add esp, 0x10
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40da5c
movzx eax, word [edi + 4]
lea ecx, [edi + 6]
movq xmm0, qword [ecx]
mov word [ebp - 0x1774], ax
movzx eax, word [ecx + 8]
push ecx
mov word [ebp - 0x176a], ax
mov al, byte [ecx + 0xa]
push str.SELECT__FROM_CustomQuest_WHERE_Name_s
push 0x447690
mov word [ebp - 0x1778], 0x18c1
mov byte [ebp - 0x1776], 0xf1
movq qword [ebp - 0x1772], xmm0
mov byte [ebp - 0x1768], al
call fcn.00416db0
add esp, 0xc
test al, al
je 0x40d27c
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40d27c
push str.quest
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40d237
or eax, eax
jmp 0x40d248
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push dword [0x44769c]
mov dword [ebp - 0x1764], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1778]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1778]
mov dword [ebp - 0x1764], 0
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
lea eax, [edi + 6]
push eax
push str.SELECT__FROM_CustomQuest_WHERE_Name_s
push 0x447690
mov dword [ebp - 0x24], eax
call fcn.00416db0
add esp, 0xc
test al, al
je 0x40d318
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40d318
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 0x1794]
mov eax, dword [ebp - 0x24]
push eax
push dword [ecx + 0x14]
push str.Update_CustomQuest_SET_quest___d_WHERE_Name___s
jmp 0x408787
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 0x1794]
push dword [ecx + 0x14]
lea eax, [ecx + 6]
push eax
push str.INSERT_INTO_CustomQuest__Name_quest__VALUES___s__d_
jmp 0x408787
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_SetCoin__s__s__d__d__d__d
jmp 0x40ae1a
movzx eax, word [edi + 4]
mov dword [ebp - 0x1c], eax
movzx eax, word [edi + 6]
push eax
push str.EXEC_WZ_CustomRanking__d
push 0x447690
mov byte [ebp - 0x20], 0xc2
mov byte [ebp - 0x1d], 0xf4
mov dword [ebp - 0x1798], 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
call fcn.00416db0
add esp, 0xc
test al, al
je 0x40d47c
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40d47c
lea edi, [ebp - 0x1058]
xor esi, esi
nop dword [eax + eax]
push str.VALUE1
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40d3f5
xorps xmm0, xmm0
mov dword [ebp - 0x1770], 0
movaps xmmword [ebp - 0x1780], xmm0
jmp 0x40d411
shl eax, 0xd
push 0x13
add eax, 0x4482be
push eax
lea eax, [ebp - 0x1780]
push 0x14
push eax
call fcn.00423e56
add esp, 0x10
push str.VALUE2
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40d424
or eax, eax
jmp 0x40d435
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
movups xmm0, xmmword [ebp - 0x1780]
add dword [ebp - 0x1798], 0x18
inc esi
push dword [0x44769c]
movups xmmword [edi], xmm0
mov dword [ebp - 0x176c], eax
movq xmm0, qword [ebp - 0x1770]
movq qword [edi + 0x10], xmm0
add edi, 0x18
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x40d3d0
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x17a0]
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1798]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x1f], al
lea eax, [ebp - 0x1068]
push ecx
mov byte [ebp - 0x1e], cl
movups xmm0, xmmword [ebp - 0x20]
push eax
push esi
movups xmmword [ebp - 0x1068], xmm0
call fcn.004182a0
jmp case.0x407b44.1
mov edx, esi
mov ecx, edi
call fcn.00410a80
jmp case.0x407b44.1
lea eax, [edi + 6]
push eax
push str.SELECT__FROM_CustomAttack_WHERE_Name_s
push 0x447690
mov dword [ebp - 0x24], eax
call fcn.00416db0
add esp, 0xc
test al, al
je 0x40d57c
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40d57c
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 0x1794]
mov eax, dword [ebp - 0x24]
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 0x447690
call fcn.00416db0
add esp, 0x40
jmp 0x408794
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 0x1794]
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 0x447690
call fcn.00416db0
add esp, 0x40
jmp 0x408794
cmp byte [edi], 0xc1
jne 0x40d5fc
mov al, byte [edi + 3]
jmp 0x40d5ff
mov al, byte [edi + 4]
movzx eax, al
sub eax, 0
je 0x40d77b
sub eax, 1
je 0x40d6dc
sub eax, 1
jne case.0x407b44.1
movzx eax, word [edi + 0x12]
lea ecx, [edi + 6]
push eax
push ecx
push str.SELECT__FROM_CustomNpcQuest_WHERE_Name_s_and_Quest___d
push 0x447690
call fcn.00416db0
add esp, 0x10
test al, al
je 0x40d695
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40d695
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 0x1794]
movzx eax, word [ecx + 0x12]
push eax
lea eax, [ecx + 6]
push eax
push dword [ecx + 0x14]
push str.Update_CustomNpcQuest_SET_MonsterCount_d_WHERE_Name___s_and_Quest___d
push 0x447690
call fcn.00416db0
add esp, 0x14
jmp 0x408794
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 0x1794]
push dword [ecx + 0x14]
movzx eax, word [ecx + 0x12]
push eax
lea eax, [ecx + 6]
push eax
push str.INSERT_INTO_CustomNpcQuest__Name_quest_count_monstercount__VALUES___s__d_0__d_
push 0x447690
call fcn.00416db0
add esp, 0x14
jmp 0x408794
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 0x447690
call fcn.00416db0
add esp, 0x10
test al, al
je 0x40d744
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40d744
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 0x1794]
movzx eax, word [ecx + 0x12]
push eax
lea eax, [ecx + 6]
push eax
push str.Update_CustomNpcQuest_SET_Count__Count1_MonsterCount99999_WHERE_Name___s_and_Quest___d
jmp 0x408787
push dword [0x44769c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x44769c]
call esi
mov ecx, dword [ebp - 0x1794]
movzx eax, word [ecx + 0x12]
push eax
lea eax, [ecx + 6]
push eax
push str.INSERT_INTO_CustomNpcQuest__Name_quest_count_MonsterCount__VALUES___s__d_1_99999_
jmp 0x408787
mov ax, word [edi + 4]
mov word [ebp - 0x1770], ax
movzx eax, word [edi + 0x12]
push eax
lea eax, [edi + 6]
mov dword [ebp - 0x1774], 0xf714c1
push eax
push str.SELECT__FROM_CustomNpcQuest_WHERE_Name_s_and_Quest___d
push 0x447690
call fcn.00416db0
add esp, 0x10
test al, al
je 0x40d835
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40d835
push str.Count
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40d7d8
or eax, eax
jmp 0x40d7e9
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.MonsterCount
mov dword [ebp - 0x1768], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40d802
or eax, eax
jmp 0x40d813
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push dword [0x44769c]
mov dword [ebp - 0x1764], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40d863
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x1768], 0
mov dword [ebp - 0x1764], 0x1869f
movzx eax, word [edi + 0x12]
mov word [ebp - 0x176e], ax
movzx eax, word [edi + 0x14]
mov word [ebp - 0x176c], ax
lea eax, [ebp - 0x1774]
push 0x14
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
movq xmm0, qword [edi + 8]
movzx eax, word [edi + 0x10]
movq qword [ebp - 0x1c], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x177b], xmm0
mov word [ebp - 0x14], ax
mov eax, dword [edi + 4]
movq qword [ebp - 0x176b], xmm0
movq xmm0, qword [edi + 8]
mov dword [ebp - 0x1778], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x1768], eax
movzx eax, word [edi + 0x10]
mov word [ebp - 0x176c], ax
lea eax, [ebp - 0x1774]
push 0x27
push eax
mov byte [ebp - 0x12], 0
mov word [ebp - 0x1763], 0
mov byte [ebp - 0x1761], 0
mov word [ebp - 0x177c], 0x1cc1
mov byte [ebp - 0x177a], 0xab
mov byte [ebp - 0x1764], 0
movq qword [ebp - 0x1774], xmm0
call fcn.0041afa0
add esp, 8
test eax, eax
jne case.0x407b44.1
lea eax, [ebp - 0x1774]
push 0x20
push eax
call fcn.0041afa0
add esp, 8
test eax, eax
jne case.0x407b44.1
lea eax, [ebp - 0x1774]
push 0x20
push eax
call fcn.0041afa0
add esp, 8
test eax, eax
jne case.0x407b44.1
lea eax, [ebp - 0x1c]
push eax
push str.SELECT_Name_FROM_BotPet_WHERE_Name_s
push 0x447690
call fcn.00416db0
add esp, 0xc
movzx eax, al
mov dword [ebp - 0x24], eax
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
cmp ax, 0x64
je 0x40d98b
cmp dword [ebp - 0x24], 0
jne 0x40d9dc
push dword [0x44769c]
call edi
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
lea eax, [ebp - 0x1c]
push eax
push str.SELECT_Name_FROM_Character_WHERE_Name_s
push 0x447690
call fcn.00416db0
add esp, 0xc
movzx eax, al
mov dword [ebp - 0x24], eax
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40d9d5
cmp dword [ebp - 0x24], 0
jne 0x40d9dc
mov byte [ebp - 0x1764], 1
push dword [0x44769c]
call edi
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1c
lea eax, [ebp - 0x177c]
push eax
push esi
call fcn.004182a0
jmp case.0x407b44.1
mov ecx, edi
call fcn.004113a0
jmp case.0x407b44.1
mov edx, esi
mov ecx, edi
call fcn.00410d40
jmp case.0x407b44.1
cmp byte [edi], 0xc1
jne 0x40da21
mov al, byte [edi + 3]
jmp 0x40da24
mov al, byte [edi + 4]
movzx eax, al
sub eax, 7
je 0x40da41
sub eax, 2
jne case.0x407b44.1
lea eax, [edi + 6]
push eax
movzx eax, byte [edi + 0x11]
push eax
push str.UPDATE_Character_SET_EquipView___d_WHERE_Name___s
jmp 0x40da4f
lea eax, [edi + 6]
push eax
movzx eax, byte [edi + 0x11]
push eax
push str.UPDATE_Character_SET_StartItem___d_WHERE_Name___s
push 0x447690
call fcn.00416db0
add esp, 0x10
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40da86
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
pop esi
call fcn.004198d7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret