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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f01d
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1908
call fcn.0042eb50
mov eax, dword [0x43d040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x18cd], dl
mov esi, ecx
mov dword [ebp - 0x18cc], esi
mov edi, dword [ebx + 8]
imul eax, esi, 0x68
mov dword [ebp - 0x18b4], edi
mov dword [ebp - 0x18b8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x18b8]
mov dword [ecx + 0x5d1924], eax
movzx eax, byte [ebp - 0x18cd]
cmp eax, 0xe1
ja case.0x407922.1
movzx eax, byte [eax + 0x40c92c]
jmp dword [eax*4 + 0x40c84c]
push str.SELECT_ItemCount_FROM_GameServerInfo_WHERE_Number0
push 0x43dde8
mov dword [ebp - 0x20], 0x10008c1
mov dword [ebp - 0x1c], 0
call fcn.00414500
add esp, 8
test al, al
je 0x407810
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407810
push str.ItemCount
call fcn.00414750
cmp eax, 0xffffffff
jne 0x4077e0
or eax, eax
jmp 0x4077f1
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push dword [0x43ddf4]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40785e
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
push str.INSERT_INTO_GameServerInfo__Number_ItemCount_ZenCount_AceItemCount__VALUES__0_0_0_0_
push 0x43dde8
call fcn.00414500
add esp, 8
push dword [0x43ddf4]
call edi
push 2
push dword [0x43ddf4]
call esi
mov edi, dword [ebp - 0x18b4]
mov esi, dword [ebp - 0x18cc]
push 8
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.00415df0
mov eax, dword [ebp - 0x18b8]
movzx esi, word [edi + 0x38]
movzx edi, word [edi + 4]
lea ecx, [eax + 0x5d18e8]
mov eax, dword [ebp - 0x18b4]
add eax, 6
push eax
push 0x32
push ecx
call fcn.0041accd
mov ecx, dword [ebp - 0x18b8]
add esp, 0xc
push esi
push edi
lea eax, [ecx + 0x5d18e8]
mov word [ecx + 0x5d191a], di
push eax
push dword [ecx + 0x5d18c4]
mov word [ecx + 0x5d191c], si
push str._ServerManager___d__ServerInfo___s____d____d_
push 0
call fcn.00416cb0
add esp, 0x18
jmp case.0x407922.1
mov edx, esi
mov ecx, edi
call fcn.0040cd00
jmp case.0x407922.1
mov edx, esi
mov ecx, edi
call fcn.0040d4a0
jmp case.0x407922.1
mov edx, esi
mov ecx, edi
call fcn.0040db10
jmp case.0x407922.1
mov edx, esi
mov ecx, edi
call fcn.0040df60
jmp case.0x407922.1
cmp byte [edi], 0xc1
jne 0x40790c
mov al, byte [edi + 3]
jmp 0x40790f
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x71
ja case.0x407922.1
movzx eax, byte [eax + 0x40ca38]
jmp dword [eax*4 + 0x40ca10]
push esi
push edi
call fcn.00416eb0
jmp case.0x407922.1
cmp dword [edi + 0xf1c], 0
lea eax, [edi + 0x13]
push 0x5cf8f0
push 0
push eax
push 0
push 0xf00
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
lea esi, [edi + 8]
mov dword [0x5cf8f0], 0xf00
push 1
push dword [0x43ddf4]
mov dword [ebp - 0x18b8], esi
jne 0x4079ca
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 0x43dde8
call fcn.00414500
add esp, 0x10
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov edx, dword [ebp - 0x18b4]
push dword [ebp - 0x18b8]
push dword [edx + 0xf18]
push str.UPDATE_warehouse_SET_pw_d_WHERE_AccountID_s
jmp 0x4089ea
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 0x43dde8
call fcn.00414500
add esp, 0x14
jmp 0x407990
push edi
call fcn.00416a70
jmp case.0x407922.1
movzx eax, word [edi + 4]
lea edx, [edi + 6]
movq xmm0, qword [edx]
lea ecx, [edi + 0x11]
mov word [ebp - 0x7f2], ax
movzx eax, word [edx + 8]
mov word [ebp - 0x7e8], ax
mov al, byte [edx + 0xa]
push ecx
mov byte [ebp - 0x7e6], al
movzx eax, word [ecx + 8]
push edx
movq qword [ebp - 0x7f0], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x7dd], ax
mov al, byte [ecx + 0xa]
push str.SELECT_account_items_targetname_state_FROM_TRADE_X_WHERE_account_s_and_name_s
push 0x43dde8
mov dword [ebp - 0x7f8], 0x5ac07c2
mov byte [ebp - 0x7f4], 0x41
movq qword [ebp - 0x7e5], xmm0
mov byte [ebp - 0x7db], al
call fcn.00414500
add esp, 0x10
test al, al
je 0x407b50
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407b50
push 0x780
lea eax, [ebp - 0x7cd]
push eax
push str.Items
call fcn.004147a0
push str.targetname
call fcn.00414750
cmp eax, 0xffffffff
jne 0x407ad2
xorps xmm0, xmm0
mov word [ebp - 0x7d2], 0
movq qword [ebp - 0x7da], xmm0
mov byte [ebp - 0x7d0], 0
jmp 0x407aee
shl eax, 0xd
push 0xa
add eax, 0x43f5ce
push eax
lea eax, [ebp - 0x7da]
push 0xb
push eax
call fcn.00420edd
add esp, 0x10
push str.state
call fcn.00414750
cmp eax, 0xffffffff
jne 0x407b01
or eax, eax
jmp 0x407b12
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push dword [0x43ddf4]
mov byte [ebp - 0x7ce], al
mov byte [ebp - 0x7cf], 1
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x7ac
lea eax, [ebp - 0x7f8]
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x7ac
lea eax, [ebp - 0x7f8]
mov byte [ebp - 0x7cf], 0
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
movzx eax, word [edi + 4]
lea edx, [edi + 6]
movq xmm0, qword [edx]
lea ecx, [edi + 0x11]
mov word [ebp - 0x1886], ax
movzx eax, word [edx + 8]
mov word [ebp - 0x187c], ax
mov al, byte [edx + 0xa]
push ecx
mov byte [ebp - 0x187a], al
movzx eax, word [ecx + 8]
push edx
movq qword [ebp - 0x1884], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x1871], ax
mov al, byte [ecx + 0xa]
push str.SELECT_ElementSlot_FROM_Character_WHERE_AccountID_s_and_Name_s
push 0x43dde8
mov dword [ebp - 0x188c], 0x53e00c2
mov byte [ebp - 0x1888], 0x51
movq qword [ebp - 0x1879], xmm0
mov byte [ebp - 0x186f], al
call fcn.00414500
add esp, 0x10
test al, al
je 0x407c55
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407c55
push 0x20
lea eax, [ebp - 0x186e]
push eax
push str.ElementSlot
call fcn.004147a0
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x3e
lea eax, [ebp - 0x188c]
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movaps xmm0, xmmword [0x43a440]
lea eax, [ebp - 0x188c]
push 0x3e
push eax
push esi
movups xmmword [ebp - 0x186e], xmm0
movups xmmword [ebp - 0x185e], xmm0
call fcn.00415df0
jmp case.0x407922.1
lea eax, [edi + 0x13]
push eax
lea ecx, [edi + 8]
mov dword [ebp - 0x1c], eax
push ecx
push str.SELECT_AccountID_FROM_Character_WHERE_AccountID_s_and_name_s
push 0x43dde8
mov dword [ebp - 0x2c], ecx
call fcn.00414500
add esp, 0x10
test al, al
je 0x40ab85
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40ab85
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov eax, dword [ebp - 0x18b4]
push 0x5cf8f0
push 0
add eax, 0x1e
mov dword [0x5cf8f0], 0x20
push eax
push 0
push 0x20
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
push str.UPDATE_Character_SET_ElementSlot__WHERE_AccountID_s_and_name_s
jmp 0x4089ea
movzx eax, word [edi + 4]
lea edx, [edi + 6]
movq xmm0, qword [edx]
lea ecx, [edi + 0x11]
mov word [ebp - 0x7ea], ax
movzx eax, word [edx + 8]
mov word [ebp - 0x7e0], ax
mov al, byte [edx + 0xa]
push ecx
mov byte [ebp - 0x7de], al
movzx eax, word [ecx + 8]
push edx
movq qword [ebp - 0x7e8], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x7d5], ax
mov al, byte [ecx + 0xa]
push str.SELECT__FROM_CHAOS_BOX_GENESIS_WHERE_Account_s_and_Name_s
push 0x43dde8
mov dword [ebp - 0x7f0], 0x5a807c2
mov byte [ebp - 0x7ec], 0x60
movq qword [ebp - 0x7dd], xmm0
mov byte [ebp - 0x7d3], al
call fcn.00414500
add esp, 0x10
test al, al
je 0x407e97
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407e97
push 0x780
lea eax, [ebp - 0x7c8]
push eax
push str.Items
call fcn.004147a0
push str.State
call fcn.00414750
cmp eax, 0xffffffff
jne 0x407df4
or eax, eax
jmp 0x407e05
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push str.SelectedKey
mov byte [ebp - 0x7d1], al
call fcn.00414750
cmp eax, 0xffffffff
jne 0x407e1e
or eax, eax
jmp 0x407e2f
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push str.SelectedComb
mov dword [ebp - 0x7d0], eax
call fcn.00414750
cmp eax, 0xffffffff
jne 0x407e48
or eax, eax
jmp 0x407e59
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push dword [0x43ddf4]
mov dword [ebp - 0x7cc], eax
mov byte [ebp - 0x7d2], 1
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x7a8
lea eax, [ebp - 0x7f0]
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x7a8
lea eax, [ebp - 0x7f0]
mov byte [ebp - 0x7d2], 0
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
push edi
call fcn.00404260
jmp case.0x407922.1
push 0x5d18a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x5d18a0]
mov esi, dword [0x5d189c]
lea eax, [esi + edx]
test al, 3
jne 0x407f18
lea eax, [edx + 4]
shr eax, 2
cmp dword [0x5d1898], eax
ja 0x407f18
push ecx
call fcn.004153b0
mov edx, dword [0x5d18a0]
mov esi, dword [0x5d189c]
mov ecx, dword [0x5d1898]
lea eax, [ecx*4 - 1]
and eax, esi
mov dword [0x5d189c], eax
lea esi, [eax + edx]
mov edx, esi
lea eax, [ecx - 1]
mov ecx, dword [0x5d1894]
shr edx, 2
and eax, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], eax
cmp dword [ecx + eax*4], 0
jne 0x407f64
push 0x10
call fcn.004176c4
mov edx, dword [ebp - 0x1c]
add esp, 4
mov ecx, dword [0x5d1894]
mov dword [ecx + edx*4], eax
mov edx, dword [ebp - 0x2c]
mov ecx, dword [0x5d1898]
and esi, 3
mov eax, dword [0x5d1894]
dec ecx
and ecx, edx
push 0x5d18a8
mov ecx, dword [eax + ecx*4]
mov eax, dword [edi + 4]
mov dword [ecx + esi*4], eax
inc dword [0x5d18a0]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.0x407922.1
mov edx, esi
mov ecx, edi
call fcn.0040e740
jmp case.0x407922.1
mov edx, esi
mov ecx, edi
call fcn.0040e980
jmp case.0x407922.1
mov edx, esi
mov ecx, edi
call fcn.0040ebb0
jmp case.0x407922.1
movzx eax, word [edi + 4]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x1834], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x182a], ax
mov al, byte [edi + 0x10]
add edi, 0x11
mov byte [ebp - 0x1828], al
movq qword [ebp - 0x1832], xmm0
mov word [ebp - 0x1838], 0x1ec1
movzx eax, word [edi + 8]
movq xmm0, qword [edi]
mov word [ebp - 0x181f], ax
mov al, byte [edi + 0xa]
mov byte [ebp - 0x181d], al
xor eax, eax
mov byte [ebp - 0x1836], 0xa
movq qword [ebp - 0x1827], xmm0
nop
mov cl, byte [edi + eax]
cmp cl, 0x20
je 0x4080ca
cmp cl, 0x22
je 0x4080ca
cmp cl, 0x27
je 0x4080ca
inc eax
cmp eax, 0xb
jl 0x408020
mov esi, dword [0x43dad0]
cmp esi, dword [0x43dad4]
je 0x40806b
push esi
push edi
call fcn.00418920
add esp, 8
test eax, eax
jne 0x4080ca
add esi, 0x20
cmp esi, dword [0x43dad4]
jne 0x408052
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str._a_zA_Z0_9___
call fcn.00401f80
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
push edi
call fcn.00401f80
push 0
mov dword [ebp - 4], 0xffffffff
call fcn.004050f0
test al, al
jne 0x4080aa
cmp dword [0x5d1714], 0
je 0x4080ca
push 0x1e
lea eax, [ebp - 0x1838]
mov byte [ebp - 0x181c], 0
push eax
push dword [ebp - 0x18cc]
call fcn.00415df0
jmp case.0x407922.1
push 0x1e
lea eax, [ebp - 0x1838]
mov byte [ebp - 0x181c], 1
push eax
push dword [ebp - 0x18cc]
call fcn.00415df0
jmp case.0x407922.1
mov edx, esi
mov ecx, edi
call fcn.0040edf0
jmp case.0x407922.1
cmp byte [edi], 0xc1
lea ecx, [edi + 4]
mov dword [ebp - 0x2c], ecx
jne 0x408108
mov al, byte [edi + 3]
jmp 0x40810a
mov al, byte [ecx]
movzx eax, al
cmp eax, 0x52
ja case.0x407922.1
movzx eax, byte [eax + 0x40cac4]
jmp dword [eax*4 + 0x40caac]
push esi
push edi
call fcn.00414870
jmp case.0x407922.1
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_QuestKillCount_WHERE_Name_s
push 0x43dde8
mov dword [ebp - 0x18b8], eax
call fcn.00414500
add esp, 0xc
test al, al
je 0x4081c4
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4081c4
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov eax, dword [ebp - 0x18b4]
push dword [ebp - 0x18b8]
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 0x43dde8
call fcn.00414500
add esp, 0x38
jmp 0x4089f7
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov eax, dword [ebp - 0x18b4]
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 - 0x18b8]
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 0x43dde8
call fcn.00414500
add esp, 0x38
jmp 0x4089f7
push 0x5cf8f0
push 0
lea eax, [edi + 0x24]
mov dword [0x5cf8f0], 0x10
push eax
push 0
push 0x10
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
movzx eax, byte [edi + 0x37]
push eax
movzx eax, byte [edi + 0x36]
push eax
movzx eax, byte [edi + 0x35]
push eax
push dword [edi + 0x20]
movzx eax, byte [edi + 0x34]
push dword [edi + 0x1c]
push eax
lea eax, [edi + 0xf]
push eax
lea eax, [edi + 4]
push eax
push str.INSERT_INTO__dbo_._OFF_TRADE_SYSTEM____Account___Name___Item___slot___value___coin___map___x___y___VALUES___s__s_____d___d___d___d___d___d_
push 0x43dde8
call fcn.00414500
add esp, 0x28
jmp 0x40ab85
movzx eax, byte [edi + 0x1a]
lea edx, [edi + 0xf]
push eax
push edx
push ecx
push str.SELECT__FROM_OFF_TRADE_SYSTEM_WHERE_Account_s_and_Name_s_and_slot_d
push 0x43dde8
call fcn.00414500
add esp, 0x14
test al, al
je 0x40ab85
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40ab85
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov edx, dword [ebp - 0x18b4]
movzx eax, byte [edx + 0x1a]
push eax
lea eax, [edx + 0xf]
push eax
lea eax, [edx + 4]
push eax
push str.DELETE_FROM_OFF_TRADE_SYSTEM_WHERE_Account_s_and_Name_s_and_slot_d
push 0x43dde8
call fcn.00414500
add esp, 0x14
jmp 0x4089f7
lea eax, [edi + 0xf]
push eax
push ecx
push str.SELECT__FROM_OFF_TRADE_SYSTEM_WHERE_Account_s_and_Name_s
push 0x43dde8
mov dword [ebp - 0x1c], eax
call fcn.00414500
add esp, 0x10
test al, al
je 0x40ab85
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40ab85
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
push eax
push str.DELETE_FROM_OFF_TRADE_SYSTEM_WHERE_Account_s_and_Name_s
jmp 0x4089ea
cmp byte [edi], 0xc1
jne 0x40837f
mov al, byte [edi + 3]
jmp 0x408382
mov al, byte [edi + 4]
test al, al
je 0x4084d2
cmp al, 0x30
jne case.0x407922.1
lea eax, [edi + 0x13]
push eax
push str.SELECT_Name_FROM_MasterSkillTree_WHERE_Name_s
push 0x43dde8
mov dword [ebp - 0x18b8], eax
call fcn.00414500
add esp, 0xc
test al, al
je 0x40844f
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40844f
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov eax, dword [ebp - 0x18b4]
push 0x5cf8f0
push 0
add eax, 0x30
mov dword [0x5cf8f0], 0xb4
push eax
push 0
push 0xb4
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov eax, dword [ebp - 0x18b4]
push dword [ebp - 0x18b8]
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 0x43dde8
call fcn.00414500
add esp, 0x1c
jmp 0x4089f7
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov eax, dword [ebp - 0x18b4]
push 0x5cf8f0
push 0
add eax, 0x30
mov dword [0x5cf8f0], 0xb4
push eax
push 0
push 0xb4
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov eax, dword [ebp - 0x18b4]
push dword [eax + 0x2c]
push dword [eax + 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
push dword [ebp - 0x18b8]
push str.INSERT_INTO_MasterSkillTree__Name_MasterLevel_MasterPoint_MasterExperience_MasterSkill__VALUES___s__d__d__I64d___
push 0x43dde8
call fcn.00414500
add esp, 0x1c
jmp 0x4089f7
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x12a], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x120], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x11e], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x128], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x115], ax
mov al, byte [ecx + 0xa]
push str.SELECT__FROM_MasterSkillTree_WHERE_Name_s
push 0x43dde8
mov dword [ebp - 0x130], 0xde800c2
mov byte [ebp - 0x12c], 0
movq qword [ebp - 0x11d], xmm0
mov byte [ebp - 0x113], al
call fcn.00414500
add esp, 0xc
test al, al
je 0x408631
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408631
push str.MasterLevel
call fcn.00414750
cmp eax, 0xffffffff
jne 0x408576
or eax, eax
jmp 0x408587
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push str.MasterPoint
mov dword [ebp - 0x110], eax
call fcn.00414750
cmp eax, 0xffffffff
jne 0x4085a0
or eax, eax
jmp 0x4085b1
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push str.MasterExperience
mov dword [ebp - 0x10c], eax
call fcn.00414750
cmp eax, 0xffffffff
jne 0x4085cd
or eax, eax
or edx, 0xffffffff
jmp 0x4085de
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041da92
add esp, 4
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x100]
push 0xb4
push eax
push str.MasterSkill
mov dword [ebp - 0x104], edx
call fcn.004147a0
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xe8
lea eax, [ebp - 0x130]
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xb4
lea eax, [ebp - 0x100]
mov dword [ebp - 0x110], 0
xorps xmm0, xmm0
mov dword [ebp - 0x10c], 0
push 0xff
push eax
movlpd qword [ebp - 0x108], xmm0
call fcn.00418dd0
add esp, 0xc
lea eax, [ebp - 0x130]
push 0xe8
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
cmp byte [edi], 0xc1
jne 0x4086a4
mov al, byte [edi + 3]
jmp 0x4086a7
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x31
ja case.0x407922.1
movzx eax, byte [eax + 0x40cb2c]
jmp dword [eax*4 + 0x40cb18]
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x1834], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x182a], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x1828], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x1832], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x181f], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Status_FROM_EventLeoTheHelper_WHERE_Name_s
push 0x43dde8
mov dword [ebp - 0x1838], 0xe1ec1
mov dword [ebp - 0x1c], ecx
movq qword [ebp - 0x1827], xmm0
mov byte [ebp - 0x181d], al
call fcn.00414500
add esp, 0xc
test al, al
je 0x40879e
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40879e
push str.Status
call fcn.00414750
cmp eax, 0xffffffff
jne 0x408759
or eax, eax
jmp 0x40876a
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push dword [0x43ddf4]
mov byte [ebp - 0x181c], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1e
lea eax, [ebp - 0x1838]
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
push dword [ebp - 0x1c]
push str.INSERT_INTO_EventLeoTheHelper__Name_Status__VALUES___s_0_
push 0x43dde8
call fcn.00414500
add esp, 0xc
push dword [0x43ddf4]
call edi
push 2
push dword [0x43ddf4]
call esi
mov esi, dword [ebp - 0x18cc]
lea eax, [ebp - 0x1838]
push 0x1e
push eax
push esi
mov byte [ebp - 0x181c], 0
call fcn.00415df0
jmp case.0x407922.1
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x1834], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x182a], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x1828], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x1832], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x181f], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Status_FROM_EventSantaClaus_WHERE_Name_s
push 0x43dde8
mov dword [ebp - 0x1838], 0x10e1ec1
mov dword [ebp - 0x1c], ecx
movq qword [ebp - 0x1827], xmm0
mov byte [ebp - 0x181d], al
call fcn.00414500
add esp, 0xc
test al, al
je 0x40888d
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x408746
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
push dword [ebp - 0x1c]
push str.INSERT_INTO_EventSantaClaus__Name_Status__VALUES___s_0_
jmp 0x4087c4
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_EventLeoTheHelper_WHERE_Name_s
push 0x43dde8
mov dword [ebp - 0x1c], eax
call fcn.00414500
add esp, 0xc
test al, al
je 0x40891e
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40891e
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov edx, dword [ebp - 0x18b4]
mov eax, dword [ebp - 0x1c]
push eax
movzx eax, byte [edx + 0x1c]
push eax
push str.UPDATE_EventLeoTheHelper_SET_Status_d_WHERE_Name_s
jmp 0x4089ea
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov edx, dword [ebp - 0x18b4]
movzx eax, byte [edx + 0x1c]
push eax
lea eax, [edx + 0x11]
push eax
push str.INSERT_INTO_EventLeoTheHelper__Name_Status__VALUES___s__d_
jmp 0x4089ea
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_EventSantaClaus_WHERE_Name_s
push 0x43dde8
mov dword [ebp - 0x1c], eax
call fcn.00414500
add esp, 0xc
test al, al
je 0x4089b8
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4089b8
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov edx, dword [ebp - 0x18b4]
mov eax, dword [ebp - 0x1c]
push eax
movzx eax, byte [edx + 0x1c]
push eax
push str.UPDATE_EventSantaClaus_SET_Status_d_WHERE_Name_s
jmp 0x4089ea
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov edx, dword [ebp - 0x18b4]
movzx eax, byte [edx + 0x1c]
push eax
lea eax, [edx + 0x11]
push eax
push str.INSERT_INTO_EventSantaClaus__Name_Status__VALUES___s__d_
push 0x43dde8
call fcn.00414500
add esp, 0x10
push dword [0x43ddf4]
call edi
push 2
push dword [0x43ddf4]
call esi
jmp case.0x407922.1
cmp byte [edi], 0xc1
jne 0x408a18
mov al, byte [edi + 3]
jmp 0x408a1b
mov al, byte [edi + 4]
test al, al
je 0x408b43
cmp al, 0x30
jne case.0x407922.1
lea eax, [edi + 0x13]
push eax
push str.SELECT_Name_FROM_QuestWorld_WHERE_Name_s
push 0x43dde8
mov dword [ebp - 0x18b8], eax
call fcn.00414500
add esp, 0xc
test al, al
je 0x408ad2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408ad2
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov eax, dword [ebp - 0x18b4]
push 0x5cf8f0
push 0
add eax, 0x1e
mov dword [0x5cf8f0], 0x190
push eax
push 0
push 0x190
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x18b8]
push str.UPDATE_QuestWorld_SET_QuestWorldList__WHERE_Name_s
push 0x43dde8
call fcn.00414500
add esp, 0xc
jmp 0x4089f7
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov eax, dword [ebp - 0x18b4]
push 0x5cf8f0
push 0
add eax, 0x1e
mov dword [0x5cf8f0], 0x190
push eax
push 0
push 0x190
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x18b8]
push str.INSERT_INTO_QuestWorld__Name_QuestWorldList__VALUES___s___
push 0x43dde8
call fcn.00414500
add esp, 0xc
jmp 0x4089f7
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x1f2], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x1e8], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x1e6], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x1f0], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x1dd], ax
mov al, byte [ecx + 0xa]
push str.SELECT_QuestWorldList_FROM_QuestWorld_WHERE_Name_s
push 0x43dde8
mov dword [ebp - 0x1f8], 0x10ae01c2
mov byte [ebp - 0x1f4], 0
movq qword [ebp - 0x1e5], xmm0
mov byte [ebp - 0x1db], al
call fcn.00414500
add esp, 0xc
test al, al
je 0x408c13
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408c13
push 0x190
lea eax, [ebp - 0x1da]
push eax
push str.QuestWorldList
call fcn.004147a0
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1ae
lea eax, [ebp - 0x1f8]
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x190
lea eax, [ebp - 0x1da]
push 0xff
push eax
call fcn.00418dd0
add esp, 0xc
lea eax, [ebp - 0x1f8]
push 0x1ae
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
cmp byte [edi], 0xc1
jne 0x408c67
mov al, byte [edi + 3]
jmp 0x408c6a
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x30
ja case.0x407922.1
movzx eax, byte [eax + 0x40cb7c]
jmp dword [eax*4 + 0x40cb60]
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x183c], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x1832], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x1830], al
movzx eax, word [ecx + 8]
mov word [ebp - 0x1827], ax
mov al, byte [ecx + 0xa]
mov byte [ebp - 0x1825], al
movzx eax, byte [edi + 0x1c]
push eax
push ecx
movq qword [ebp - 0x183a], xmm0
movq xmm0, qword [ecx]
push str.INSERT_INTO_Gens_Rank__Name_Family_Contribution__VALUES___s__d_0_
push 0x43dde8
mov dword [ebp - 0x1840], 0x1128c1
movq qword [ebp - 0x182f], xmm0
mov word [ebp - 0x1824], 0
mov dword [ebp - 0x1820], 0
mov dword [ebp - 0x181c], 0
call fcn.00414500
add esp, 0x10
push dword [0x43ddf4]
test al, al
jne 0x408d4b
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x28
lea eax, [ebp - 0x1840]
mov byte [ebp - 0x1824], 1
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
mov al, byte [edi + 0x1c]
mov byte [ebp - 0x1823], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
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 0x43dde8
call fcn.00414500
add esp, 0x10
test al, al
je 0x408e25
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408e25
push str.Rank
call fcn.00414750
cmp eax, 0xffffffff
jne 0x408db4
or eax, eax
jmp 0x408dc5
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push str.Contribution
mov dword [ebp - 0x1820], eax
call fcn.00414750
cmp eax, 0xffffffff
jne 0x408dde
or eax, eax
jmp 0x408def
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push dword [0x43ddf4]
mov dword [ebp - 0x181c], eax
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call eax
push 0x28
lea eax, [ebp - 0x1840]
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
push dword [0x43ddf4]
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call eax
push 0x28
lea eax, [ebp - 0x1840]
mov byte [ebp - 0x1824], 1
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x1834], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x182a], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x1828], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x1832], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x181f], ax
mov al, byte [ecx + 0xa]
push str.DELETE_FROM_Gens_Rank_WHERE_Name_s
push 0x43dde8
mov dword [ebp - 0x1838], 0x1111ec1
movq qword [ebp - 0x1827], xmm0
mov byte [ebp - 0x181d], al
call fcn.00414500
add esp, 0xc
push dword [0x43ddf4]
test al, al
jne 0x408eef
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x181c], 1
jmp 0x408f0a
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x181c], 0
push 0x1e
lea eax, [ebp - 0x1838]
push eax
push esi
call fcn.00415df0
mov eax, dword [edi + 0x20]
push 0xffffffffffffffff
inc eax
push eax
movzx eax, byte [edi + 0x1c]
push eax
call fcn.004121f0
jmp case.0x407922.1
push esi
push edi
call fcn.00411e70
jmp case.0x407922.1
push esi
push edi
call fcn.00412030
jmp case.0x407922.1
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x183c], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x1832], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x1830], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x183a], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x1827], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Rank_Status_FROM_Gens_Reward_WHERE_Name_s
push 0x43dde8
mov dword [ebp - 0x1840], 0x41128c1
movq qword [ebp - 0x182f], xmm0
mov byte [ebp - 0x1825], al
mov word [ebp - 0x1824], 0
mov dword [ebp - 0x1820], 0
mov dword [ebp - 0x181c], 0
call fcn.00414500
add esp, 0xc
test al, al
je 0x409079
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409079
mov al, byte [edi + 0x1c]
push str.Rank
mov byte [ebp - 0x1823], al
call fcn.00414750
cmp eax, 0xffffffff
jne 0x40900a
or eax, eax
jmp 0x40901b
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push str.Status
mov dword [ebp - 0x1820], eax
call fcn.00414750
cmp eax, 0xffffffff
jne 0x409034
or eax, eax
jmp 0x409045
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push dword [0x43ddf4]
mov dword [ebp - 0x181c], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x28
lea eax, [ebp - 0x1840]
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x28
lea eax, [ebp - 0x1840]
mov byte [ebp - 0x1824], 1
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_Gens_Reward_WHERE_Name_s
push 0x43dde8
mov dword [ebp - 0x18b8], eax
call fcn.00414500
add esp, 0xc
test al, al
je 0x409117
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409117
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov edx, dword [ebp - 0x18b4]
push dword [ebp - 0x18b8]
push dword [edx + 0x24]
push str.UPDATE_Gens_Reward_SET_Status_d_WHERE_Name_s
jmp 0x4089ea
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov eax, dword [ebp - 0x18b4]
push dword [eax + 0x24]
push dword [eax + 0x20]
push dword [ebp - 0x18b8]
push str.INSERT_INTO_Gens_Reward__Name_Rank_Status__VALUES___s__d__d_
push 0x43dde8
call fcn.00414500
add esp, 0x14
jmp 0x4089f7
cmp byte [edi], 0xc1
jne 0x409168
mov al, byte [edi + 3]
jmp 0x40916b
mov al, byte [edi + 4]
test al, al
je 0x409293
cmp al, 0x30
jne case.0x407922.1
lea eax, [edi + 0x13]
push eax
push str.SELECT_Name_FROM_HelperData_WHERE_Name_s
push 0x43dde8
mov dword [ebp - 0x18b8], eax
call fcn.00414500
add esp, 0xc
test al, al
je 0x409222
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409222
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov eax, dword [ebp - 0x18b4]
push 0x5cf8f0
push 0
add eax, 0x1e
mov dword [0x5cf8f0], 0x100
push eax
push 0
push pe_nt_image_headers32
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x18b8]
push str.UPDATE_HelperData_SET_Data__WHERE_Name_s
push 0x43dde8
call fcn.00414500
add esp, 0xc
jmp 0x4089f7
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov eax, dword [ebp - 0x18b4]
push 0x5cf8f0
push 0
add eax, 0x1e
mov dword [0x5cf8f0], 0x100
push eax
push 0
push pe_nt_image_headers32
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x18b8]
push str.INSERT_INTO_HelperData__Name_Data__VALUES___s___
push 0x43dde8
call fcn.00414500
add esp, 0xc
jmp 0x4089f7
movzx eax, word [edi + 4]
lea ecx, [edi + 0x11]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x162], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x158], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x156], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x160], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x14d], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Data_FROM_HelperData_WHERE_Name_s
push 0x43dde8
mov dword [ebp - 0x168], 0x172001c2
mov byte [ebp - 0x164], 0
movq qword [ebp - 0x155], xmm0
mov byte [ebp - 0x14b], al
call fcn.00414500
add esp, 0xc
test al, al
je 0x40936a
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40936a
push pe_nt_image_headers32
lea eax, [ebp - 0x149]
mov byte [ebp - 0x14a], 0
push eax
push str.Data
call fcn.004147a0
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x120
lea eax, [ebp - 0x168]
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push pe_nt_image_headers32
lea eax, [ebp - 0x149]
mov byte [ebp - 0x14a], 1
push 0xff
push eax
call fcn.00418dd0
add esp, 0xc
lea eax, [ebp - 0x168]
push 0x120
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
cmp byte [edi], 0xc1
jne 0x4093c5
mov al, byte [edi + 3]
jmp 0x4093c8
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x44
ja case.0x407922.1
movzx eax, byte [eax + 0x40cbf8]
jmp dword [eax*4 + 0x40cbb0]
push esi
push edi
call fcn.00402460
jmp case.0x407922.1
push esi
push edi
call fcn.004025f0
jmp case.0x407922.1
push esi
push edi
call fcn.004027b0
jmp case.0x407922.1
push esi
push edi
call fcn.00402ab0
jmp case.0x407922.1
push esi
push edi
call fcn.00402e30
jmp case.0x407922.1
cmp byte [edi + 0x13], 0
mov edx, 0x14
movzx eax, word [edi + 6]
movq xmm0, qword [edi + 8]
mov word [ebp - 0x1826], ax
movzx eax, word [edi + 0x10]
mov word [ebp - 0x181c], ax
mov al, byte [edi + 0x12]
mov byte [ebp - 0x182c], 0xc2
mov word [ebp - 0x1829], 0x518
mov dword [ebp - 0x18b4], edx
movq qword [ebp - 0x1824], xmm0
mov byte [ebp - 0x181a], al
mov byte [ebp - 0x1819], 0
mov dword [ebp - 0x1c], 0
jbe 0x40aaf1
lea eax, [ebp - 0x1034]
mov dword [ebp - 0x2c], eax
lea esi, [edi + 0x18]
nop dword [eax]
push dword [esi]
push str.SELECT_Time_FROM_CashShopPeriodicItem_WHERE_ItemSerial_d
push 0x43dde8
call fcn.00414500
add esp, 0xc
test al, al
je 0x409517
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409517
mov al, byte [esi - 4]
mov byte [ebp - 0x18c4], al
mov eax, dword [esi]
push str.Time
mov dword [ebp - 0x18c0], eax
call fcn.00414750
cmp eax, 0xffffffff
jne 0x4094de
or eax, eax
jmp 0x4094ef
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push dword [0x43ddf4]
mov dword [ebp - 0x18b8], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x18b8]
jmp 0x409574
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_CashShopPeriodicItem__ItemSerial_Time__VALUES___d__d_
push 0x43dde8
call fcn.00414500
add esp, 0x10
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [ebp - 0x18c4], al
mov eax, dword [esi]
mov dword [ebp - 0x18c0], eax
xor eax, eax
mov ecx, dword [ebp - 0x2c]
add esi, 8
movq xmm0, qword [ebp - 0x18c4]
mov edx, dword [ebp - 0x18b4]
inc byte [ebp - 0x1819]
add edx, 0xc
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
add ecx, 0xc
movzx eax, byte [edi + 0x13]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x18b4], edx
mov dword [ebp - 0x1c], ecx
cmp ecx, eax
jl 0x409490
jmp 0x40aaeb
movzx eax, word [edi + 4]
lea ecx, [edi + 6]
movq xmm0, qword [ecx]
mov word [ebp - 0x1840], ax
movzx eax, word [ecx + 8]
mov word [ebp - 0x1836], ax
mov al, byte [ecx + 0xa]
mov byte [ebp - 0x1834], al
mov eax, dword [edi + 0x14]
push ecx
mov dword [ebp - 0x1830], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x182c], eax
mov eax, dword [edi + 0x1c]
push str.SELECT__FROM_CashShopData_WHERE_AccountID_s
push 0x43dde8
mov dword [ebp - 0x1844], 0x6182cc1
movq qword [ebp - 0x183e], xmm0
mov dword [ebp - 0x1828], eax
call fcn.00414500
add esp, 0xc
test al, al
je 0x4096ec
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4096ec
push str.WCoinC
call fcn.00414750
cmp eax, 0xffffffff
jne 0x409653
or eax, eax
jmp 0x409664
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push str.WCoinP
mov dword [ebp - 0x1824], eax
call fcn.00414750
cmp eax, 0xffffffff
jne 0x40967d
or eax, eax
jmp 0x40968e
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push str.GoblinPoint
mov dword [ebp - 0x1820], eax
call fcn.00414750
cmp eax, 0xffffffff
jne 0x4096a7
or eax, eax
jmp 0x4096b8
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push dword [0x43ddf4]
mov dword [ebp - 0x181c], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x2c
lea eax, [ebp - 0x1844]
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x2c
lea eax, [ebp - 0x1844]
mov dword [ebp - 0x1824], 0
push eax
push esi
mov dword [ebp - 0x1820], 0
mov dword [ebp - 0x181c], 0
call fcn.00415df0
jmp case.0x407922.1
push edi
call fcn.00403120
jmp case.0x407922.1
push edi
call fcn.004032d0
jmp case.0x407922.1
cmp byte [edi + 0x13], 0
mov eax, 0x13
mov esi, dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov ecx, 8
cmovne ecx, eax
push 0x5cf8f0
push 0
mov ax, word [ecx + edi + 8]
movq xmm0, qword [ecx + edi]
mov word [ebp - 0x18], ax
mov al, byte [ecx + edi + 0xa]
mov byte [ebp - 0x16], al
lea eax, [edi + 0x39]
push eax
push 0
push 0xb
push 0xc
push 1
push 1
push 1
push dword [0x43ddf4]
movq qword [ebp - 0x20], xmm0
mov dword [0x5cf8f0], 0xfffffffd
call esi
push 0x5cf8f4
push 0
lea eax, [edi + 0x44]
mov dword [0x5cf8f4], 0xfffffffd
push eax
push 0
push 0xc8
push 0xc
push 1
push 1
push 2
push dword [0x43ddf4]
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 - 0x20]
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 0x43dde8
call fcn.00414500
add esp, 0x2c
jmp 0x40ab85
push dword [edi + 0x1c]
push str.DELETE_FROM_CashShopInventory_WHERE_BaseItemCode_d
push 0x43dde8
call fcn.00414500
add esp, 0xc
jmp 0x40ab85
cmp byte [edi + 0x13], 0
mov dword [ebp - 0x1c], 0
jbe case.0x407922.1
lea esi, [edi + 0x14]
nop
push dword [esi]
push str.SELECT_ItemSerial_FROM_CashShopPeriodicItem_WHERE_ItemSerial_d
push 0x43dde8
call fcn.00414500
add esp, 0xc
test al, al
je 0x409890
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409890
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
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 0x4098b4
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
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 0x43dde8
call fcn.00414500
add esp, 0x10
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1c]
add esi, 8
movzx eax, byte [edi + 0x13]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, eax
jl 0x409840
jmp case.0x407922.1
cmp byte [edi + 0x13], 0
mov ecx, 0x14
movzx eax, word [edi + 6]
movq xmm0, qword [edi + 8]
mov word [ebp - 0x1826], ax
movzx eax, word [edi + 0x10]
mov word [ebp - 0x181c], ax
mov al, byte [edi + 0x12]
mov byte [ebp - 0x182c], 0xc2
mov word [ebp - 0x1829], 0x4018
mov dword [ebp - 0x2c], ecx
movq qword [ebp - 0x1824], xmm0
mov byte [ebp - 0x181a], al
mov byte [ebp - 0x1819], 0
mov dword [ebp - 0x18b4], 0
jbe 0x409ff2
lea eax, [ebp - 0x1804]
mov dword [ebp - 0x18b8], eax
lea esi, [edi + 0x18]
push dword [esi]
push str.SELECT_Deaths_FROM_DeathSystem_WHERE_m_Serial_d
push 0x43dde8
call fcn.00414500
add esp, 0xc
test al, al
je 0x4099e2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4099e2
mov al, byte [esi - 4]
mov byte [ebp - 0x18c4], al
mov eax, dword [esi]
push str.Deaths
mov dword [ebp - 0x1c], eax
call fcn.00414750
cmp eax, 0xffffffff
jne 0x4099af
or eax, eax
jmp 0x4099c0
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push dword [0x43ddf4]
mov dword [ebp - 0x18c0], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x409a44
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_DeathSystem___m_Serial____Deaths___VALUES___d_0_
push 0x43dde8
call fcn.00414500
add esp, 0x10
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [ebp - 0x18c4], al
mov eax, dword [esi]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18c0], 0
mov eax, dword [ebp - 0x18b8]
add esi, 8
movq xmm0, qword [ebp - 0x18c4]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18b4]
inc byte [ebp - 0x1819]
inc edx
movq qword [eax], xmm0
mov dword [eax + 8], ecx
add eax, 0xc
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18b8], eax
add ecx, 0xc
movzx eax, byte [edi + 0x13]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18b4], edx
cmp edx, eax
jl 0x409964
jmp 0x409fec
cmp byte [edi + 0x13], 0
mov ecx, 0x14
movzx eax, word [edi + 6]
movq xmm0, qword [edi + 8]
mov word [ebp - 0x1826], ax
movzx eax, word [edi + 0x10]
mov word [ebp - 0x181c], ax
mov al, byte [edi + 0x12]
mov byte [ebp - 0x182c], 0xc2
mov word [ebp - 0x1829], 0x4118
mov dword [ebp - 0x2c], ecx
movq qword [ebp - 0x1824], xmm0
mov byte [ebp - 0x181a], al
mov byte [ebp - 0x1819], 0
mov dword [ebp - 0x18b4], 0
jbe 0x409ff2
lea eax, [ebp - 0x1804]
mov dword [ebp - 0x18b8], eax
lea esi, [edi + 0x18]
push dword [esi]
push str.SELECT_Deaths_FROM_DeathSystem_WHERE_m_Serial_d
push 0x43dde8
call fcn.00414500
add esp, 0xc
test al, al
je 0x409b81
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409b81
mov al, byte [esi - 4]
mov byte [ebp - 0x18c4], al
mov eax, dword [esi]
push str.Deaths
mov dword [ebp - 0x1c], eax
call fcn.00414750
cmp eax, 0xffffffff
jne 0x409b4e
or eax, eax
jmp 0x409b5f
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push dword [0x43ddf4]
mov dword [ebp - 0x18c0], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x409be3
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_DeathSystem___m_Serial____Deaths___VALUES___d_0_
push 0x43dde8
call fcn.00414500
add esp, 0x10
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [ebp - 0x18c4], al
mov eax, dword [esi]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18c0], 0
mov eax, dword [ebp - 0x18b8]
add esi, 8
movq xmm0, qword [ebp - 0x18c4]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18b4]
inc byte [ebp - 0x1819]
inc edx
movq qword [eax], xmm0
mov dword [eax + 8], ecx
add eax, 0xc
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18b8], eax
add ecx, 0xc
movzx eax, byte [edi + 0x13]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18b4], edx
cmp edx, eax
jl 0x409b03
jmp 0x409fec
cmp byte [edi + 0x10], 1
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
jne 0x409c6e
push dword [edi + 8]
push dword [edi + 0xc]
push str.UPDATE_DeathSystem_SET_DeathsDeaths_d_where_m_Serial_d
push 0x43dde8
call fcn.00414500
add esp, 0x10
push dword [0x43ddf4]
call esi
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp byte [edi + 0x10], 2
jne case.0x407922.1
push dword [edi + 8]
push dword [edi + 0xc]
push str.UPDATE_DeathSystem_SET_DeathsDeaths__d_where_m_Serial_d
push 0x43dde8
call fcn.00414500
add esp, 0x10
push dword [0x43ddf4]
call esi
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp case.0x407922.1
cmp byte [edi + 0x13], 0
mov ecx, 0x14
movzx eax, word [edi + 6]
movq xmm0, qword [edi + 8]
mov word [ebp - 0x1826], ax
movzx eax, word [edi + 0x10]
mov word [ebp - 0x181c], ax
mov al, byte [edi + 0x12]
mov byte [ebp - 0x182c], 0xc2
mov word [ebp - 0x1829], 0x4318
mov dword [ebp - 0x2c], ecx
movq qword [ebp - 0x1824], xmm0
mov byte [ebp - 0x181a], al
mov byte [ebp - 0x1819], 0
mov dword [ebp - 0x18b4], 0
jbe 0x409ff2
lea eax, [ebp - 0x1804]
mov dword [ebp - 0x18b8], eax
lea esi, [edi + 0x18]
nop dword [eax]
push dword [esi]
push str.SELECT_Deaths_FROM_DeathSystem_WHERE_m_Serial_d
push 0x43dde8
call fcn.00414500
add esp, 0xc
test al, al
je 0x409d9e
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409d9e
mov al, byte [esi - 4]
mov byte [ebp - 0x18c4], al
mov eax, dword [esi]
push str.Deaths
mov dword [ebp - 0x1c], eax
call fcn.00414750
cmp eax, 0xffffffff
jne 0x409d6b
or eax, eax
jmp 0x409d7c
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push dword [0x43ddf4]
mov dword [ebp - 0x18c0], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x409e00
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_DeathSystem___m_Serial____Deaths___VALUES___d_0_
push 0x43dde8
call fcn.00414500
add esp, 0x10
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [ebp - 0x18c4], al
mov eax, dword [esi]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18c0], 0
mov eax, dword [ebp - 0x18b8]
add esi, 8
movq xmm0, qword [ebp - 0x18c4]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18b4]
inc byte [ebp - 0x1819]
inc edx
movq qword [eax], xmm0
mov dword [eax + 8], ecx
add eax, 0xc
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18b8], eax
add ecx, 0xc
movzx eax, byte [edi + 0x13]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18b4], edx
cmp edx, eax
jl 0x409d20
jmp 0x409fec
cmp byte [edi + 0x13], 0
mov ecx, 0x14
movzx eax, word [edi + 6]
movq xmm0, qword [edi + 8]
mov word [ebp - 0x1826], ax
movzx eax, word [edi + 0x10]
mov word [ebp - 0x181c], ax
mov al, byte [edi + 0x12]
mov byte [ebp - 0x182c], 0xc2
mov word [ebp - 0x1829], 0x4418
mov dword [ebp - 0x2c], ecx
movq qword [ebp - 0x1824], xmm0
mov byte [ebp - 0x181a], al
mov byte [ebp - 0x1819], 0
mov dword [ebp - 0x18b4], 0
jbe 0x409ff2
lea eax, [ebp - 0x1804]
mov dword [ebp - 0x18b8], eax
lea esi, [edi + 0x18]
nop
push dword [esi]
push str.SELECT_Deaths_FROM_DeathSystem_WHERE_m_Serial_d
push 0x43dde8
call fcn.00414500
add esp, 0xc
test al, al
je 0x409f3e
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409f3e
mov al, byte [esi - 4]
mov byte [ebp - 0x18c4], al
mov eax, dword [esi]
push str.Deaths
mov dword [ebp - 0x1c], eax
call fcn.00414750
cmp eax, 0xffffffff
jne 0x409f0b
or eax, eax
jmp 0x409f1c
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push dword [0x43ddf4]
mov dword [ebp - 0x18c0], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x409fa0
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_DeathSystem___m_Serial____Deaths___VALUES___d_0_
push 0x43dde8
call fcn.00414500
add esp, 0x10
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [ebp - 0x18c4], al
mov eax, dword [esi]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18c0], 0
mov eax, dword [ebp - 0x18b8]
add esi, 8
movq xmm0, qword [ebp - 0x18c4]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18b4]
inc byte [ebp - 0x1819]
inc edx
movq qword [eax], xmm0
mov dword [eax + 8], ecx
add eax, 0xc
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18b8], eax
add ecx, 0xc
movzx eax, byte [edi + 0x13]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18b4], edx
cmp edx, eax
jl 0x409ec0
mov esi, dword [ebp - 0x18cc]
mov eax, ecx
mov byte [ebp - 0x182a], cl
shr eax, 8
mov byte [ebp - 0x182b], al
mov eax, dword [ebp - 0x181c]
movups xmm0, xmmword [ebp - 0x182c]
mov dword [ebp - 0x1808], eax
lea eax, [ebp - 0x1818]
push ecx
push eax
push esi
movups xmmword [ebp - 0x1818], xmm0
call fcn.00415df0
jmp case.0x407922.1
cmp byte [edi], 0xc1
jne 0x40a03a
mov al, byte [edi + 3]
jmp 0x40a03d
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x31
ja case.0x407922.1
movzx eax, byte [eax + 0x40cc58]
jmp dword [eax*4 + 0x40cc40]
movzx eax, word [edi + 4]
add edi, 6
mov word [ebp - 0x182c], ax
push edi
push str.SELECT__FROM_LuckyCoin_WHERE_AccountID_s
movzx eax, word [edi + 8]
movq xmm0, qword [edi]
mov word [ebp - 0x1822], ax
mov al, byte [edi + 0xa]
push 0x43dde8
mov dword [ebp - 0x1830], 0x1a18c1
movq qword [ebp - 0x182a], xmm0
mov byte [ebp - 0x1820], al
mov byte [ebp - 0x181f], 0
call fcn.00414500
add esp, 0xc
test al, al
je 0x40a117
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a117
push str.LuckyCoin
call fcn.00414750
cmp eax, 0xffffffff
jne 0x40a0d2
or eax, eax
jmp 0x40a0e3
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push dword [0x43ddf4]
mov dword [ebp - 0x181c], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1830]
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push str.INSERT_INTO_LuckyCoin__AccountID_LuckyCoin__VALUES___s_0_
push 0x43dde8
call fcn.00414500
add esp, 0xc
test al, al
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push dword [0x43ddf4]
jne 0x40a17f
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call eax
push 0x18
lea eax, [ebp - 0x1830]
mov byte [ebp - 0x181f], 1
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call eax
push 0x18
lea eax, [ebp - 0x1830]
mov dword [ebp - 0x181c], 0
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
movzx eax, word [edi + 4]
lea ecx, [edi + 6]
movq xmm0, qword [ecx]
mov word [ebp - 0x182c], ax
movzx eax, word [ecx + 8]
mov word [ebp - 0x1822], ax
mov al, byte [ecx + 0xa]
push ecx
mov byte [ebp - 0x1820], al
mov al, byte [edi + 0x11]
push str.SELECT__FROM_LuckyCoin_WHERE_AccountID_s
push 0x43dde8
mov dword [ebp - 0x1830], 0x11a18c1
movq qword [ebp - 0x182a], xmm0
mov byte [ebp - 0x181f], 0
mov byte [ebp - 0x181e], al
call fcn.00414500
add esp, 0xc
test al, al
je 0x40a277
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a277
push str.LuckyCoin
call fcn.00414750
cmp eax, 0xffffffff
jne 0x40a232
or eax, eax
jmp 0x40a243
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push dword [0x43ddf4]
mov dword [ebp - 0x181c], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1830]
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1830]
mov byte [ebp - 0x181f], 1
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
movzx eax, word [edi + 4]
lea ecx, [edi + 6]
movq xmm0, qword [ecx]
mov word [ebp - 0x1830], ax
movzx eax, word [ecx + 8]
mov word [ebp - 0x1826], ax
mov al, byte [ecx + 0xa]
push ecx
mov byte [ebp - 0x1824], al
mov eax, dword [edi + 0x14]
push str.SELECT__FROM_LuckyCoin_WHERE_AccountID_s
push 0x43dde8
mov dword [ebp - 0x1834], 0x21a1cc1
movq qword [ebp - 0x182e], xmm0
mov byte [ebp - 0x1823], 0
mov dword [ebp - 0x1820], eax
call fcn.00414500
add esp, 0xc
test al, al
je 0x40a375
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a375
push str.LuckyCoin
call fcn.00414750
cmp eax, 0xffffffff
jne 0x40a330
or eax, eax
jmp 0x40a341
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push dword [0x43ddf4]
mov dword [ebp - 0x181c], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1c
lea eax, [ebp - 0x1834]
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1c
lea eax, [ebp - 0x1834]
mov byte [ebp - 0x1823], 1
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
lea eax, [edi + 6]
push eax
push str.SELECT_LuckyCoin_FROM_LuckyCoin_WHERE_AccountID_s
push 0x43dde8
call fcn.00414500
add esp, 0xc
test al, al
je 0x40a445
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a445
push str.LuckyCoin
call fcn.00414750
cmp eax, 0xffffffff
jne 0x40a3ee
mov dword [ebp - 0x1c], eax
jmp 0x40a402
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
mov dword [ebp - 0x1c], eax
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov edx, dword [ebp - 0x18b4]
mov ecx, closesocket
mov eax, dword [edx + 0x14]
add eax, dword [ebp - 0x1c]
cmp eax, ecx
cmova eax, ecx
lea ecx, [edx + 6]
push ecx
push eax
push str.UPDATE_LuckyCoin_SET_LuckyCoin_d_WHERE_AccountID_s
jmp 0x4089ea
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov edx, dword [ebp - 0x18b4]
push dword [edx + 0x14]
lea ecx, [edx + 6]
push ecx
push str.INSERT_INTO_LuckyCoin__AccountID_LuckyCoin__VALUES___s__d_
jmp 0x4089ea
lea eax, [edi + 6]
push eax
push str.SELECT_LuckyCoin_FROM_LuckyCoin_WHERE_AccountID_s
push 0x43dde8
mov dword [ebp - 0x1c], eax
call fcn.00414500
add esp, 0xc
test al, al
je 0x40a523
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a523
push str.LuckyCoin
call fcn.00414750
cmp eax, 0xffffffff
jne 0x40a4c4
mov dword [ebp - 0x18b8], eax
jmp 0x40a4db
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
mov dword [ebp - 0x18b8], eax
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov eax, dword [ebp - 0x18b4]
mov ecx, dword [ebp - 0x18b8]
push dword [ebp - 0x1c]
mov edx, dword [eax + 0x14]
sub ecx, edx
xor eax, eax
cmp edx, dword [ebp - 0x18b8]
cmovbe eax, ecx
push eax
push str.UPDATE_LuckyCoin_SET_LuckyCoin_d_WHERE_AccountID_s
jmp 0x4089ea
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
push 0
push 0
push 0
push dword [ebp - 0x1c]
push str.INSERT_INTO_LuckyCoin__AccountID_LuckyCoin__VALUES___s__d_
push 0x43dde8
call fcn.00414500
add esp, 0x18
jmp 0x4089f7
mov ax, word [edi + 4]
mov cl, 0x10
mov word [ebp - 0x18c4], ax
mov eax, dword [edi + 8]
mov dword [ebp - 0x18c0], eax
mov eax, dword [edi + 0xc]
xor edi, edi
mov word [ebp - 0x18c8], 0x10c1
xor esi, esi
mov byte [ebp - 0x18c6], 0x1e
mov dword [ebp - 0x18bc], eax
mov eax, dword [esi + 0x5d18c4]
test eax, eax
js 0x40a5cc
cmp eax, 0x14
jge 0x40a5cc
cmp dword [esi + 0x5d18c8], 0
je 0x40a5cc
cmp dword [esi + 0x5d18dc], 0xffffffff
je 0x40a5cc
movzx eax, cl
push eax
lea eax, [ebp - 0x18c8]
push eax
push edi
call fcn.00415df0
mov cl, byte [ebp - 0x18c7]
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x40a594
jmp case.0x407922.1
movzx eax, word [edi + 4]
push eax
push str.EXEC_WZ_CW_InfoLoad__d
push 0x43dde8
mov word [ebp - 0x18c8], 0x10c1
mov byte [ebp - 0x18c6], 0x1f
mov word [ebp - 0x18c4], ax
call fcn.00414500
add esp, 0xc
test al, al
je 0x40a6ab
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a6ab
push str.CRYWOLF_STATE
call fcn.00414750
cmp eax, 0xffffffff
jne 0x40a63c
or eax, eax
jmp 0x40a64d
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push str.CRYWOLF_OCCUFY
mov dword [ebp - 0x18c0], eax
call fcn.00414750
cmp eax, 0xffffffff
jne 0x40a666
or eax, eax
jmp 0x40a677
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push dword [0x43ddf4]
mov dword [ebp - 0x18bc], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [ebp - 0x18c8]
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [ebp - 0x18c8]
mov dword [ebp - 0x18c0], 0
push eax
push esi
mov dword [ebp - 0x18bc], 0
call fcn.00415df0
jmp case.0x407922.1
movq xmm0, qword [edi + 7]
mov cl, 0x4e
movzx eax, word [edi + 4]
movq qword [ebp - 0x1899], xmm0
movups xmm0, xmmword [edi + 0x12]
mov word [ebp - 0x189c], ax
mov al, byte [edi + 6]
movups xmmword [ebp - 0x188e], xmm0
mov byte [ebp - 0x189a], al
movups xmm0, xmmword [edi + 0x22]
movzx eax, word [edi + 0xf]
mov word [ebp - 0x1891], ax
mov al, byte [edi + 0x11]
movups xmmword [ebp - 0x187e], xmm0
mov byte [ebp - 0x188f], al
movups xmm0, xmmword [edi + 0x32]
mov eax, dword [edi + 0x4a]
mov word [ebp - 0x18a0], 0x4ec1
movups xmmword [ebp - 0x186e], xmm0
mov byte [ebp - 0x189e], 0x20
movq xmm0, qword [edi + 0x42]
xor edi, edi
movq qword [ebp - 0x185e], xmm0
xor esi, esi
mov dword [ebp - 0x1856], eax
nop
mov eax, dword [esi + 0x5d18c4]
test eax, eax
js 0x40a7a8
cmp eax, 0x14
jge 0x40a7a8
cmp dword [esi + 0x5d18c8], 0
je 0x40a7a8
cmp dword [esi + 0x5d18dc], 0xffffffff
je 0x40a7a8
movzx eax, cl
push eax
lea eax, [ebp - 0x18a0]
push eax
push edi
call fcn.00415df0
mov cl, byte [ebp - 0x189f]
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x40a770
jmp case.0x407922.1
movzx eax, word [edi + 4]
lea esi, [edi + 0x11]
mov word [ebp - 0xdc], ax
mov ecx, 0x20
mov al, byte [edi + 6]
mov byte [ebp - 0xda], al
mov al, byte [edi + 7]
mov byte [ebp - 0xd9], al
mov al, byte [edi + 8]
mov byte [ebp - 0xd8], al
movzx eax, word [edi + 0xa]
mov word [ebp - 0xd6], ax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0xd4], eax
mov al, byte [edi + 0x10]
lea edi, [ebp - 0xcf]
mov word [ebp - 0xe0], 0x94c1
mov byte [ebp - 0xde], 0x21
mov byte [ebp - 0xd0], al
rep movsd dword es:[edi], dword [esi]
xor edi, edi
xor esi, esi
mov eax, dword [esi + 0x5d18c4]
test eax, eax
js 0x40a856
cmp eax, 0x14
jge 0x40a856
cmp dword [esi + 0x5d18c8], 0
je 0x40a856
cmp dword [esi + 0x5d18dc], 0xffffffff
je 0x40a856
movzx eax, byte [ebp - 0xdf]
push eax
lea eax, [ebp - 0xe0]
push eax
push edi
call fcn.00415df0
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x40a820
jmp case.0x407922.1
cmp byte [edi], 0xc1
jne 0x40a871
mov al, byte [edi + 3]
jmp 0x40a874
mov al, byte [edi + 4]
test al, al
je 0x40a956
cmp al, 0x4a
jne case.0x407922.1
cmp byte [edi + 0x13], 0
mov dword [ebp - 0x1c], 0
jbe case.0x407922.1
lea esi, [edi + 0x14]
nop dword [eax + eax]
push dword [esi]
push str.SELECT_ItemSerial_FROM_LuckyItem_WHERE_ItemSerial_d
push 0x43dde8
call fcn.00414500
add esp, 0xc
test al, al
je 0x40a8f0
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a8f0
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
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 0x40a914
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
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 0x43dde8
call fcn.00414500
add esp, 0x10
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1c]
add esi, 8
movzx eax, byte [edi + 0x13]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, eax
jl 0x40a8a0
jmp case.0x407922.1
cmp byte [edi + 0x13], 0
mov edx, 0x14
movzx eax, word [edi + 6]
movq xmm0, qword [edi + 8]
mov word [ebp - 0x1826], ax
movzx eax, word [edi + 0x10]
mov word [ebp - 0x181c], ax
mov al, byte [edi + 0x12]
mov byte [ebp - 0x182c], 0xc2
mov word [ebp - 0x1829], 0x22
mov dword [ebp - 0x2c], edx
movq qword [ebp - 0x1824], xmm0
mov byte [ebp - 0x181a], al
mov byte [ebp - 0x1819], 0
mov dword [ebp - 0x18b4], 0
jbe 0x40aaf1
lea eax, [ebp - 0x1034]
mov dword [ebp - 0x18b8], eax
lea esi, [edi + 0x18]
push dword [esi]
push str.SELECT_DurabilitySmall_FROM_LuckyItem_WHERE_ItemSerial_d
push 0x43dde8
call fcn.00414500
add esp, 0xc
test al, al
je 0x40aa45
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40aa45
mov al, byte [esi - 4]
mov byte [ebp - 0x18c4], al
mov eax, dword [esi]
push str.DurabilitySmall
mov dword [ebp - 0x18c0], eax
call fcn.00414750
cmp eax, 0xffffffff
jne 0x40aa12
or eax, eax
jmp 0x40aa23
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push dword [0x43ddf4]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x1c]
jmp 0x40aaa2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_LuckyItem__ItemSerial_DurabilitySmall__VALUES___d__d_
push 0x43dde8
call fcn.00414500
add esp, 0x10
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [ebp - 0x18c4], al
mov eax, dword [esi]
mov dword [ebp - 0x18c0], eax
xor eax, eax
mov ecx, dword [ebp - 0x18b8]
add esi, 8
movq xmm0, qword [ebp - 0x18c4]
mov edx, dword [ebp - 0x2c]
inc byte [ebp - 0x1819]
add edx, 0xc
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
add ecx, 0xc
movzx eax, byte [edi + 0x13]
mov dword [ebp - 0x18b8], ecx
mov ecx, dword [ebp - 0x18b4]
inc ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x18b4], ecx
cmp ecx, eax
jl 0x40a9c4
mov esi, dword [ebp - 0x18cc]
mov eax, edx
mov byte [ebp - 0x182a], dl
shr eax, 8
mov byte [ebp - 0x182b], al
mov eax, dword [ebp - 0x181c]
movups xmm0, xmmword [ebp - 0x182c]
mov dword [ebp - 0x1038], eax
lea eax, [ebp - 0x1048]
push edx
push eax
push esi
movups xmmword [ebp - 0x1048], xmm0
call fcn.00415df0
jmp case.0x407922.1
mov ecx, edi
call fcn.0040efd0
jmp case.0x407922.1
push 0x5cf8f0
push 0
lea eax, [edi + 0x1c]
mov dword [0x5cf8f0], 0xf90
push eax
push 0
push 0xf90
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
lea eax, [edi + 0x11]
push eax
lea eax, [edi + 6]
push eax
push str.UPDATE_Character_SET_Inventory__WHERE_AccountID_s_AND_Name_s
push 0x43dde8
call fcn.00414500
add esp, 0x10
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp case.0x407922.1
mov ecx, edi
call fcn.0040f2a0
jmp case.0x407922.1
cmp byte [edi + 0x11], 0
mov dword [ebp - 0x1c], 0
jbe case.0x407922.1
lea esi, [edi + 0x16]
nop dword [eax]
nop dword [eax + eax]
push dword [esi - 4]
push str.SELECT_ItemSerial_FROM_T_PetItem_Info_WHERE_ItemSerial_d
push 0x43dde8
call fcn.00414500
add esp, 0xc
test al, al
je 0x40ac26
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40ac26
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
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 0x40ac4f
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
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 0x43dde8
call fcn.00414500
add esp, 0x14
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x1c]
add esi, 0xc
movzx eax, byte [edi + 0x11]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, eax
jl 0x40abd0
jmp case.0x407922.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 0x43dde8
call fcn.00414500
add esp, 0x20
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp case.0x407922.1
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 0x43dde8
call fcn.00414500
add esp, 0x24
jmp 0x40acb7
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingDuel_WHERE_Name_s
push 0x43dde8
mov dword [ebp - 0x1c], eax
call fcn.00414500
add esp, 0xc
test al, al
je 0x40ad80
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40ad80
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov eax, dword [ebp - 0x18b4]
push dword [ebp - 0x1c]
push dword [eax + 0x20]
push dword [eax + 0x1c]
push str.UPDATE_RankingDuel_SET_WinScoreWinScore_d_LoseScoreLoseScore_d_WHERE_Name_s
push 0x43dde8
call fcn.00414500
add esp, 0x14
jmp 0x4089f7
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov eax, dword [ebp - 0x18b4]
push dword [eax + 0x20]
push dword [eax + 0x1c]
push dword [ebp - 0x1c]
push str.INSERT_INTO_RankingDuel__Name_WinScore_LoseScore__VALUES___s__d__d_
push 0x43dde8
call fcn.00414500
add esp, 0x14
jmp 0x4089f7
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingBloodCastle_WHERE_Name_s
push 0x43dde8
mov dword [ebp - 0x1c], eax
call fcn.00414500
add esp, 0xc
test al, al
je 0x40ae27
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40ae27
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov eax, dword [ebp - 0x18b4]
push dword [ebp - 0x1c]
push dword [eax + 0x1c]
push str.UPDATE_RankingBloodCastle_SET_ScoreScore_d_WHERE_Name_s
jmp 0x4089ea
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov eax, dword [ebp - 0x18b4]
push dword [eax + 0x1c]
push dword [ebp - 0x1c]
push str.INSERT_INTO_RankingBloodCastle__Name_Score__VALUES___s__d_
jmp 0x4089ea
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingChaosCastle_WHERE_Name_s
push 0x43dde8
mov dword [ebp - 0x1c], eax
call fcn.00414500
add esp, 0xc
test al, al
je 0x40aebe
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40aebe
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov eax, dword [ebp - 0x18b4]
push dword [ebp - 0x1c]
push dword [eax + 0x1c]
push str.UPDATE_RankingChaosCastle_SET_ScoreScore_d_WHERE_Name_s
jmp 0x4089ea
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov eax, dword [ebp - 0x18b4]
push dword [eax + 0x1c]
push dword [ebp - 0x1c]
push str.INSERT_INTO_RankingChaosCastle__Name_Score__VALUES___s__d_
jmp 0x4089ea
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingDevilSquare_WHERE_Name_s
push 0x43dde8
mov dword [ebp - 0x1c], eax
call fcn.00414500
add esp, 0xc
test al, al
je 0x40af55
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40af55
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov eax, dword [ebp - 0x18b4]
push dword [ebp - 0x1c]
push dword [eax + 0x1c]
push str.UPDATE_RankingDevilSquare_SET_ScoreScore_d_WHERE_Name_s
jmp 0x4089ea
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov eax, dword [ebp - 0x18b4]
push dword [eax + 0x1c]
push dword [ebp - 0x1c]
push str.INSERT_INTO_RankingDevilSquare__Name_Score__VALUES___s__d_
jmp 0x4089ea
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingIllusionTemple_WHERE_Name_s
push 0x43dde8
mov dword [ebp - 0x1c], eax
call fcn.00414500
add esp, 0xc
test al, al
je 0x40afec
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40afec
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov eax, dword [ebp - 0x18b4]
push dword [ebp - 0x1c]
push dword [eax + 0x1c]
push str.UPDATE_RankingIllusionTemple_SET_ScoreScore_d_WHERE_Name_s
jmp 0x4089ea
push dword [0x43ddf4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ddf4]
call esi
mov eax, dword [ebp - 0x18b4]
push dword [eax + 0x1c]
push dword [ebp - 0x1c]
push str.INSERT_INTO_RankingIllusionTemple__Name_Score__VALUES___s__d_
jmp 0x4089ea
lea eax, [edi + 6]
push eax
movzx eax, byte [edi + 0x11]
push eax
push str.UPDATE_AccountCharacter_SET_ExtClass_d_WHERE_Id_s
jmp 0x40ab78
push dword [edi + 0xc]
movzx eax, word [edi + 4]
push dword [edi + 8]
push eax
push str.EXEC_WZ_CW_InfoSave__d__d__d
push 0x43dde8
call fcn.00414500
add esp, 0x14
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40ab85
push dword [edi + 0x28]
lea eax, [edi + 0x11]
push dword [edi + 0x24]
push dword [edi + 0x20]
push dword [edi + 0x1c]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_CustomMonsterReward__s__s__d__d__d__d
push 0x43dde8
call fcn.00414500
add esp, 0x20
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40ab85
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 0x43dde8
call fcn.00414500
add esp, 0x1c
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40ab85
lea esi, [edi + 0x11]
push esi
lea eax, [ebp - 0x1834]
push eax
call fcn.004044b0
test al, al
jne case.0x407922.1
push esi
lea eax, [ebp - 0x1834]
push 0xb
push eax
call fcn.0041accd
add esp, 0xc
lea eax, [edi + 6]
push eax
lea eax, [ebp - 0x1829]
push 0xb
push eax
call fcn.0041accd
mov ax, word [edi + 4]
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x1834]
mov word [ebp - 0x181e], ax
mov eax, dword [ebp - 0x18b8]
mov dx, word [eax + 0x5d191c]
mov eax, esp
mov word [ebp - 0x181c], dx
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x1824]
movq qword [eax + 0x10], xmm0
mov word [eax + 0x18], dx
call fcn.00404640
xor dl, dl
mov ecx, esi
call fcn.00406b10
jmp case.0x407922.1
lea esi, [edi + 0x11]
push esi
lea eax, [ebp - 0x1834]
push eax
call fcn.004044b0
test al, al
je case.0x407922.1
mov ax, word [ebp - 0x181e]
cmp ax, word [edi + 4]
jne case.0x407922.1
mov eax, dword [ebp - 0x18b8]
mov dx, word [ebp - 0x181c]
cmp dx, word [eax + 0x5d191c]
jne case.0x407922.1
movups xmm0, xmmword [ebp - 0x1834]
sub esp, 0x1c
mov eax, esp
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x1824]
movq qword [eax + 0x10], xmm0
mov word [eax + 0x18], dx
call fcn.00404a00
mov dl, 1
mov ecx, esi
call fcn.00406b10
jmp case.0x407922.1
movzx eax, word [edi + 4]
movq xmm0, qword [edi + 6]
mov word [ebp - 0x18ac], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x18a2], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x18a0], al
movzx eax, word [edi + 0x19]
mov word [ebp - 0x1897], ax
mov al, byte [edi + 0x1b]
mov byte [ebp - 0x1895], al
lea eax, [edi + 0x1c]
push eax
movq qword [ebp - 0x18aa], xmm0
lea eax, [ebp - 0x1834]
movq xmm0, qword [edi + 0x11]
push eax
mov word [ebp - 0x18b0], 0x64c1
mov byte [ebp - 0x18ae], 0x72
movq qword [ebp - 0x189f], xmm0
call fcn.004044b0
test al, al
jne 0x40b24c
mov byte [ebp - 0x1894], al
jmp 0x40b331
movq xmm0, qword [ebp - 0x1829]
movzx eax, word [ebp - 0x181e]
mov ecx, dword [ebp - 0x181c]
movq qword [ebp - 0xaa], xmm0
movq xmm0, qword [ebp - 0x1834]
mov word [ebp - 0xac], ax
movzx eax, word [ebp - 0x1821]
movq qword [ebp - 0x9f], xmm0
movq xmm0, qword [edi + 0x11]
mov word [ebp - 0xa2], ax
mov al, byte [ebp - 0x181f]
movq qword [ebp - 0x94], xmm0
movups xmm0, xmmword [edi + 0x27]
mov byte [ebp - 0xa0], al
movzx eax, word [ebp - 0x182c]
mov word [ebp - 0x97], ax
mov al, byte [ebp - 0x182a]
movups xmmword [ebp - 0x89], xmm0
mov byte [ebp - 0x95], al
movups xmm0, xmmword [edi + 0x37]
movzx eax, word [edi + 0x19]
mov word [ebp - 0x8c], ax
mov al, byte [edi + 0x1b]
movups xmmword [ebp - 0x79], xmm0
mov byte [ebp - 0x8a], al
movups xmm0, xmmword [edi + 0x47]
mov eax, dword [edi + 0x5f]
mov byte [ebp - 0x1894], 1
movups xmmword [ebp - 0x69], xmm0
mov word [ebp - 0xb0], 0x64c1
movq xmm0, qword [edi + 0x57]
mov byte [ebp - 0xae], 0x73
movq qword [ebp - 0x59], xmm0
mov dword [ebp - 0x51], eax
call fcn.00416e00
test eax, eax
je 0x40b331
push 0x64
lea ecx, [ebp - 0xb0]
push ecx
push dword [eax + 4]
call fcn.00415df0
movq xmm0, qword [edi + 0x1c]
mov ax, word [edi + 0x24]
movq qword [ebp - 0x1893], xmm0
movups xmm0, xmmword [edi + 0x27]
mov word [ebp - 0x188b], ax
mov al, byte [edi + 0x26]
movups xmmword [ebp - 0x1888], xmm0
mov byte [ebp - 0x1889], al
movups xmm0, xmmword [edi + 0x37]
mov eax, dword [edi + 0x5f]
mov dword [ebp - 0x1850], eax
lea eax, [ebp - 0x18b0]
movups xmmword [ebp - 0x1878], xmm0
push 0x64
movups xmm0, xmmword [edi + 0x47]
push eax
push esi
movups xmmword [ebp - 0x1868], xmm0
movq xmm0, qword [edi + 0x57]
movq qword [ebp - 0x1858], xmm0
call fcn.00415df0
jmp case.0x407922.1
cmp byte [edi], 0xc1
jne 0x40b3a7
mov al, byte [edi + 3]
jmp 0x40b3aa
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x1b
ja case.0x407922.1
jmp dword [eax*4 + 0x40cc8c]
movzx eax, word [edi + 4]
lea ecx, [ebp - 0x1848]
push ecx
push dword [edi + 8]
mov dword [ebp - 0x1888], 0x8038c1
push eax
mov word [ebp - 0x1880], ax
call fcn.004034e0
test eax, eax
je 0x40b404
push 0x38
lea eax, [ebp - 0x1888]
mov dword [ebp - 0x1884], 0
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
movzx eax, word [ebp - 0x1848]
xorps xmm0, xmm0
mov word [ebp - 0x187e], ax
mov al, byte [ebp - 0x1846]
mov byte [ebp - 0x187c], al
mov al, byte [ebp - 0x1845]
mov byte [ebp - 0x187b], al
movzx eax, word [ebp - 0x1844]
mov word [ebp - 0x187a], ax
mov al, byte [ebp - 0x1842]
mov byte [ebp - 0x1878], al
mov al, byte [ebp - 0x1841]
mov byte [ebp - 0x1877], al
mov al, byte [ebp - 0x1840]
mov ecx, dword [ebp - 0x182c]
mov byte [ebp - 0x1876], al
mov al, byte [ebp - 0x183f]
mov byte [ebp - 0x1875], al
mov al, byte [ebp - 0x183e]
mov byte [ebp - 0x1874], al
mov eax, dword [ebp - 0x1830]
mov dword [ebp - 0x1868], eax
mov eax, dword [ebp - 0x1828]
mov dword [ebp - 0x1860], eax
mov eax, dword [ebp - 0x1824]
mov dword [ebp - 0x185c], eax
mov eax, dword [ebp - 0x1820]
mov dword [ebp - 0x1858], eax
mov eax, dword [ebp - 0x181c]
mov dword [ebp - 0x1854], eax
mov eax, dword [ebp - 0x183d]
movq qword [ebp - 0x1873], xmm0
mov dword [ebp - 0x1873], eax
lea eax, [ebp - 0x1888]
push 0x38
push eax
mov dword [ebp - 0x1864], ecx
mov ecx, dword [ebp - 0x1839]
push esi
mov dword [ebp - 0x1884], 1
mov dword [ebp - 0x186f], ecx
call fcn.00415df0
jmp case.0x407922.1
mov edx, esi
mov ecx, edi
call fcn.0040f3f0
jmp case.0x407922.1
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
movzx esi, word [edi + 4]
mov dword [ebp - 0x1828], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x181c], 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 - 0x1834], 0x3801cc1
push dword [edi + 0x1c]
mov word [ebp - 0x182c], si
push dword [edi + 0x18]
mov dword [ebp - 0x1824], edx
push dword [edi + 0x14]
mov dword [ebp - 0x1820], ecx
push ecx
push edx
push esi
push str.EXEC_WZ_CS_ReqNpcBuy__d___d___d___d___d___d___d___d___d___d
push 0x43dde8
call fcn.00414500
add esp, 0x30
push dword [0x43ddf4]
test al, al
je 0x40b5fc
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b5f6
cmp ax, 0xffff
je 0x40b5f6
push str.QueryResult
call fcn.00414750
cmp eax, 0xffffffff
jne 0x40b5aa
or esi, eax
jmp 0x40b5bd
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
mov esi, eax
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1c
lea eax, [ebp - 0x1834]
mov dword [ebp - 0x1830], esi
push eax
push dword [ebp - 0x18cc]
call fcn.00415df0
jmp case.0x407922.1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1c
lea eax, [ebp - 0x1834]
mov dword [ebp - 0x1830], 0
push eax
push dword [ebp - 0x18cc]
call fcn.00415df0
jmp case.0x407922.1
mov edx, esi
mov ecx, edi
call fcn.0040f560
jmp case.0x407922.1
movzx eax, word [edi + 4]
mov word [ebp - 0x1834], ax
mov eax, dword [edi + 8]
mov edi, dword [edi + 0xc]
mov dword [ebp - 0x1830], eax
mov eax, dword [ebp - 0x18b4]
mov dword [ebp - 0x183c], 0x58024c1
mov dword [ebp - 0x182c], 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 - 0x1824], edx
mov edx, dword [ebp - 0x18b4]
push esi
mov dword [ebp - 0x181c], eax
push edi
movzx eax, word [edx + 4]
push eax
push str.EXEC_WZ_CS_ReqNpcUpgrade__d___d___d___d___d
push 0x43dde8
mov dword [ebp - 0x1828], esi
mov dword [ebp - 0x1820], ecx
call fcn.00414500
add esp, 0x1c
push dword [0x43ddf4]
test al, al
je 0x40b73d
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b737
cmp ax, 0xffff
je 0x40b737
push str.QueryResult
call fcn.00414750
cmp eax, 0xffffffff
je 0x40b6fa
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
test eax, eax
je 0x40b737
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x24
lea eax, [ebp - 0x183c]
mov dword [ebp - 0x1838], 1
push eax
push dword [ebp - 0x18cc]
call fcn.00415df0
jmp case.0x407922.1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x24
lea eax, [ebp - 0x183c]
mov dword [ebp - 0x1838], 0
push eax
push dword [ebp - 0x18cc]
call fcn.00415df0
jmp case.0x407922.1
mov edx, esi
mov ecx, edi
call fcn.0040f6c0
jmp case.0x407922.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 0x43dde8
mov dword [ebp - 0x18e8], 0x78018c1
mov word [ebp - 0x18e0], cx
mov dword [ebp - 0x18dc], eax
call fcn.00414500
add esp, 0x14
push dword [0x43ddf4]
test al, al
je 0x40b898
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b892
cmp ax, 0xffff
je 0x40b892
push str.QueryResult
call fcn.00414750
cmp eax, 0xffffffff
jne 0x40b7f7
or edi, eax
jmp 0x40b80a
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
mov edi, eax
push str.TaxKind
call fcn.00414750
cmp eax, 0xffffffff
jne 0x40b81d
or eax, eax
jmp 0x40b82e
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push str.TaxRate
mov dword [ebp - 0x18d8], eax
call fcn.00414750
cmp eax, 0xffffffff
jne 0x40b847
or eax, eax
jmp 0x40b858
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
push dword [0x43ddf4]
mov dword [ebp - 0x18d4], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x18e8]
mov dword [ebp - 0x18e4], edi
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x18e8]
mov dword [ebp - 0x18e4], 0
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
mov eax, dword [edi + 8]
lea edx, [ebp - 0x1c]
movzx ecx, word [edi + 4]
xorps xmm0, xmm0
push edx
lea edx, [ebp - 0x30]
mov dword [ebp - 0x182c], eax
mov eax, dword [edi + 0xc]
push edx
push eax
push ecx
mov dword [ebp - 0x1838], 0x88020c1
mov word [ebp - 0x1830], cx
mov dword [ebp - 0x1828], eax
mov dword [ebp - 0x1c], 0
movlpd qword [ebp - 0x30], xmm0
call fcn.004037e0
push 0x20
test eax, eax
je 0x40b931
lea eax, [ebp - 0x1838]
mov dword [ebp - 0x1834], 0
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x1834], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1820], eax
lea eax, [ebp - 0x1838]
push eax
push esi
mov dword [ebp - 0x181c], ecx
call fcn.00415df0
jmp case.0x407922.1
mov edx, esi
mov ecx, edi
call fcn.0040f830
jmp case.0x407922.1
mov eax, dword [edi + 8]
movzx edx, word [edi + 4]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x182c], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1838]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x1838], 0xa8020c1
push eax
push edx
mov word [ebp - 0x1830], dx
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x2c], ecx
call fcn.004038d0
mov ecx, dword [ebp - 0x1c]
xor edx, edx
test eax, eax
lea eax, [ebp - 0x1838]
push 0x20
push eax
cmovne ecx, edx
push esi
mov dword [ebp - 0x1834], ecx
call fcn.00415df0
jmp case.0x407922.1
push dword [edi + 8]
movzx eax, word [edi + 4]
push eax
push str.EXEC_WZ_CS_ModifySiegeEnd__d___d
push 0x43dde8
mov dword [ebp - 0x18c8], 0xb8010c1
mov word [ebp - 0x18c0], ax
call fcn.00414500
add esp, 0x10
push dword [0x43ddf4]
test al, al
je 0x40ba84
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40ba7e
cmp ax, 0xffff
je 0x40ba7e
push str.QueryResult
call fcn.00414750
cmp eax, 0xffffffff
jne 0x40ba37
or edi, eax
jmp 0x40ba4a
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
mov edi, eax
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [ebp - 0x18c8]
mov dword [ebp - 0x18c4], edi
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [ebp - 0x18c8]
mov dword [ebp - 0x18c4], 0
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
movzx eax, word [edi + 4]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x3c]
mov word [ebp - 0x18f8], ax
lea edx, [ecx + 1]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x1900], 0xc8018c1
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x3c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bae4
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x40bb17
mov dl, byte [ebp + eax - 0x3c]
cmp dl, 0x20
je 0x40bbe3
cmp dl, 0x22
je 0x40bbe3
cmp dl, 0x27
je 0x40bbe3
inc eax
cmp eax, ecx
jl 0x40baf3
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov dword [ebp - 0x18f0], ecx
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x18ec], ecx
lea ecx, [ebp - 0x3c]
push ecx
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18f4], eax
push str.EXEC_WZ_CS_ModifyCastleOwnerInfo__d___d___s
push 0x43dde8
call fcn.00414500
add esp, 0x14
push dword [0x43ddf4]
test al, al
je 0x40bbcf
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40bbc9
cmp ax, 0xffff
je 0x40bbc9
push str.QueryResult
call fcn.00414750
cmp eax, 0xffffffff
jne 0x40bb82
or edi, eax
jmp 0x40bb95
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
mov edi, eax
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1900]
mov dword [ebp - 0x18fc], edi
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1900]
mov dword [ebp - 0x18fc], 0
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
movzx ecx, word [edi + 4]
mov eax, dword [edi + 8]
mov word [ebp - 0x1910], cx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x190c], eax
lea edx, [ecx + 1]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x1918], 0xd8018c1
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x48], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bc38
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x40bc74
nop word [eax + eax]
mov dl, byte [ebp + eax - 0x48]
cmp dl, 0x20
je 0x40bd36
cmp dl, 0x22
je 0x40bd36
cmp dl, 0x27
je 0x40bd36
inc eax
cmp eax, ecx
jl 0x40bc50
mov eax, dword [ebp - 0x1908]
mov ecx, dword [ebp - 0x1904]
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x1c]
mov dword [edi + 0x10], ecx
push str.EXEC_WZ_CS_ReqRegAttackGuild__d___s
push 0x43dde8
call fcn.00414500
add esp, 0x10
push dword [0x43ddf4]
test al, al
je 0x40bd22
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40bd1c
cmp ax, 0xffff
je 0x40bd1c
push str.QueryResult
call fcn.00414750
cmp eax, 0xffffffff
jne 0x40bcd5
or edi, eax
jmp 0x40bce8
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
mov edi, eax
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1918]
mov dword [ebp - 0x1914], edi
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1918]
mov dword [ebp - 0x1914], 0
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
movzx eax, word [edi + 4]
push eax
push str.EXEC_WZ_CS_ResetCastleSiege__d
push 0x43dde8
mov dword [ebp - 0x18c4], 0xe800cc1
mov word [ebp - 0x18bc], ax
call fcn.00414500
add esp, 0xc
push dword [0x43ddf4]
test al, al
je 0x40c16a
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40c164
cmp ax, 0xffff
je 0x40c164
push str.QueryResult
call fcn.00414750
cmp eax, 0xffffffff
jne 0x40bdba
or edi, eax
jmp 0x40bdcd
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
mov edi, eax
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [ebp - 0x18c4]
mov dword [ebp - 0x18c0], edi
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
mov ax, word [edi + 4]
lea esi, [edi + 6]
mov ecx, 0x20
mov dword [ebp - 0xd0], 0xf8086c1
lea edi, [ebp - 0xca]
mov word [ebp - 0xcc], ax
rep movsd dword es:[edi], dword [esi]
xor edi, edi
xor esi, esi
nop word [eax + eax]
mov eax, dword [esi + 0x5d18c4]
test eax, eax
js 0x40be63
cmp eax, 0x14
jge 0x40be63
cmp dword [esi + 0x5d18c8], 0
je 0x40be63
cmp dword [esi + 0x5d18dc], 0xffffffff
je 0x40be63
push 0x86
lea eax, [ebp - 0xd0]
push eax
push edi
call fcn.00415df0
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x40be30
jmp case.0x407922.1
mov edx, esi
mov ecx, edi
call fcn.0040f970
jmp case.0x407922.1
mov edx, esi
mov ecx, edi
call fcn.0040faf0
jmp case.0x407922.1
mov edx, esi
mov ecx, edi
call fcn.0040fc60
jmp case.0x407922.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 0x43dde8
mov dword [ebp - 0x182c], 0x168014c1
mov word [ebp - 0x1824], dx
mov dword [ebp - 0x1820], ecx
mov dword [ebp - 0x181c], eax
call fcn.00414500
add esp, 0x14
push dword [0x43ddf4]
test al, al
je 0x40bf5d
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40bf57
cmp ax, 0xffff
je 0x40bf57
push str.QueryResult
call fcn.00414750
cmp eax, 0xffffffff
jne 0x40bf10
or edi, eax
jmp 0x40bf23
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
mov edi, eax
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x14
lea eax, [ebp - 0x182c]
mov dword [ebp - 0x1828], edi
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x14
lea eax, [ebp - 0x182c]
mov dword [ebp - 0x1828], 0
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
mov ax, word [edi + 4]
mov ecx, dword [edi + 0x1c]
mov word [ebp - 0x1834], ax
mov eax, dword [edi + 8]
mov dword [ebp - 0x1830], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x182c], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x1828], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x1824], eax
mov eax, dword [edi + 0x18]
xor edi, edi
mov dword [ebp - 0x1838], 0x178020c1
xor esi, esi
mov dword [ebp - 0x1820], eax
mov dword [ebp - 0x181c], ecx
nop
mov eax, dword [esi + 0x5d18c4]
test eax, eax
js 0x40c010
cmp eax, 0x14
jge 0x40c010
cmp dword [esi + 0x5d18c8], 0
je 0x40c010
cmp dword [esi + 0x5d18dc], 0xffffffff
je 0x40c010
push 0x20
lea eax, [ebp - 0x1838]
push eax
push edi
call fcn.00415df0
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x40bfe0
jmp case.0x407922.1
movzx eax, word [edi + 4]
xorps xmm0, xmm0
mov ecx, dword [edi + 8]
mov dword [ebp - 0x18c4], 0x18800cc1
mov word [ebp - 0x18bc], ax
mov dword [ebp - 0x1c], 0
movlpd qword [ebp - 0x30], xmm0
test ecx, ecx
jns 0x40c06a
push 0xc
lea eax, [ebp - 0x18c4]
mov dword [ebp - 0x18c0], 0
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x30]
push edx
push ecx
push eax
call fcn.004037e0
test eax, eax
jne 0x40c17e
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18c0], eax
lea eax, [ebp - 0x18c4]
push 0xc
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
movzx eax, word [edi + 4]
push eax
mov dword [ebp - 0x18c4], 0x19800cc1
push str.EXEC_WZ_CS_ResetCastleTaxInfo__d
push 0x43dde8
mov word [ebp - 0x18bc], ax
call fcn.00414500
add esp, 0xc
push dword [0x43ddf4]
test al, al
je 0x40c16a
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40c164
cmp ax, 0xffff
je 0x40c164
push str.QueryResult
call fcn.00414750
cmp eax, 0xffffffff
jne 0x40c104
or edi, eax
jmp 0x40c117
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
mov edi, eax
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [ebp - 0x18c4]
mov dword [ebp - 0x18c0], edi
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
movzx eax, word [edi + 4]
push eax
mov dword [ebp - 0x18c4], 0x1a800cc1
push str.EXEC_WZ_CS_ResetSiegeGuildInfo__d
jmp 0x40c0b2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [ebp - 0x18c4]
mov dword [ebp - 0x18c0], 0
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
movzx eax, word [edi + 4]
push eax
push str.EXEC_WZ_CS_ResetRegSiegeInfo__d
push 0x43dde8
mov dword [ebp - 0x18c4], 0x1b800cc1
mov word [ebp - 0x18bc], ax
call fcn.00414500
add esp, 0xc
push dword [0x43ddf4]
test al, al
je 0x40c16a
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40c164
cmp ax, 0xffff
je 0x40c164
push str.QueryResult
call fcn.00414750
cmp eax, 0xffffffff
jne 0x40c1f6
or edi, eax
jmp 0x40c209
shl eax, 0xd
add eax, 0x43f5ce
push eax
call fcn.0041db2e
add esp, 4
mov edi, eax
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [ebp - 0x18c4]
mov dword [ebp - 0x18c0], edi
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
mov edx, esi
mov ecx, edi
call fcn.0040fde0
jmp case.0x407922.1
test edi, edi
je case.0x407922.1
movzx eax, word [edi + 4]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x172c]
mov word [ebp - 0x1738], ax
push ecx
push eax
mov dword [ebp - 0x1c], 0xc8
mov dword [ebp - 0x1730], 0
call fcn.00403a30
mov byte [ebp - 0x1740], 0xc2
mov byte [ebp - 0x173d], 0x82
test eax, eax
je 0x40c2e9
mov edx, dword [ebp - 0x1730]
mov dword [ebp - 0x173c], 0
lea eax, [edx*8]
sub eax, edx
lea eax, [eax*4 + 0x14]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0x173e], cl
shr eax, 8
mov byte [ebp - 0x173f], al
lea eax, [edx*8]
sub eax, edx
lea eax, [eax*4 + 0x14]
push eax
lea eax, [ebp - 0x1740]
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x173c], 1
mov dword [ebp - 0x1730], edx
lea eax, [edx*8]
sub eax, edx
lea eax, [eax*4 + 0x14]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0x173e], cl
shr eax, 8
mov byte [ebp - 0x173f], al
lea eax, [edx*8]
sub eax, edx
lea eax, [eax*4 + 0x14]
push eax
lea eax, [ebp - 0x1740]
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
test edi, edi
je case.0x407922.1
mov eax, dword [edi + 8]
movzx ecx, word [edi + 4]
mov dword [ebp - 0x794], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x78c]
mov word [ebp - 0x798], cx
push eax
push ecx
mov dword [ebp - 0x1c], 0x64
mov dword [ebp - 0x790], 0
call fcn.00403ce0
mov byte [ebp - 0x7a0], 0xc2
mov byte [ebp - 0x79d], 0x83
test eax, eax
je 0x40c3d8
mov edx, dword [ebp - 0x790]
mov eax, edx
shl eax, 4
add eax, 0x14
shl edx, 4
movzx ecx, ax
add edx, 0x14
mov eax, ecx
mov dword [ebp - 0x79c], 0
shr eax, 8
mov byte [ebp - 0x79f], al
lea eax, [ebp - 0x7a0]
push edx
push eax
push esi
mov byte [ebp - 0x79e], cl
call fcn.00415df0
jmp case.0x407922.1
mov edx, dword [ebp - 0x1c]
mov eax, edx
shl eax, 4
add eax, 0x14
mov dword [ebp - 0x790], edx
movzx ecx, ax
mov eax, ecx
shl edx, 4
shr eax, 8
add edx, 0x14
mov byte [ebp - 0x79f], al
lea eax, [ebp - 0x7a0]
push edx
push eax
push esi
mov dword [ebp - 0x79c], 1
mov byte [ebp - 0x79e], cl
call fcn.00415df0
jmp case.0x407922.1
test edi, edi
je case.0x407922.1
movzx eax, word [edi + 4]
push eax
push str.DELETE_MuCastle_NPC_WHERE_MAP_SVR_GROUP___d
push 0x43dde8
mov word [ebp - 0x18c4], 0xcc1
mov byte [ebp - 0x18c2], 0x84
mov word [ebp - 0x18bc], ax
mov dword [ebp - 0x18b8], eax
call fcn.00414500
add esp, 0xc
push dword [0x43ddf4]
test al, al
je 0x40c16a
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp dword [edi + 8], 0
mov dword [ebp - 0x1c], 0
jle 0x40c504
lea ecx, [edi + 0x25]
mov dword [ebp - 0x2c], 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 - 0x18b8]
push str.EXEC_WZ_CS_ReqNpcBuy__d___d___d___d___d___d___d___d___d___d
push 0x43dde8
call fcn.00414500
add esp, 0x30
push dword [0x43ddf4]
test al, al
je 0x40c16a
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
inc eax
add ecx, 0x1c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], ecx
cmp eax, dword [edi + 8]
jl 0x40c495
push 0xc
lea eax, [ebp - 0x18c4]
mov dword [ebp - 0x18c0], 1
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
test edi, edi
je case.0x407922.1
movzx eax, word [edi + 4]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0xaa8]
mov word [ebp - 0xab0], ax
push ecx
push eax
mov dword [ebp - 0x1c], 0x64
mov dword [ebp - 0xaac], 0
call fcn.00403e90
mov byte [ebp - 0xab8], 0xc2
mov byte [ebp - 0xab5], 0x85
test eax, eax
je 0x40c5b4
mov edx, dword [ebp - 0xaac]
mov dword [ebp - 0xab4], 0
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0xab6], cl
shr eax, 8
mov byte [ebp - 0xab7], al
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
push eax
lea eax, [ebp - 0xab8]
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0xab4], 1
mov dword [ebp - 0xaac], edx
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0xab6], cl
shr eax, 8
mov byte [ebp - 0xab7], al
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
push eax
lea eax, [ebp - 0xab8]
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
mov edx, esi
mov ecx, edi
call fcn.0040ffe0
jmp case.0x407922.1
mov edx, esi
mov ecx, edi
call fcn.00410200
jmp case.0x407922.1
test edi, edi
je case.0x407922.1
movzx eax, word [edi + 4]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x918]
mov word [ebp - 0x920], ax
push ecx
push eax
mov dword [ebp - 0x1c], 0x64
mov dword [ebp - 0x91c], 0
call fcn.00404090
mov byte [ebp - 0x928], 0xc2
mov byte [ebp - 0x925], 0x88
test eax, eax
je 0x40c6b0
mov edx, dword [ebp - 0x91c]
mov dword [ebp - 0x924], 0
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0x926], cl
shr eax, 8
mov byte [ebp - 0x927], al
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
push eax
lea eax, [ebp - 0x928]
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x924], 1
mov dword [ebp - 0x91c], edx
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
movzx ecx, ax
mov eax, ecx
mov byte [ebp - 0x926], cl
shr eax, 8
mov byte [ebp - 0x927], al
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
push eax
lea eax, [ebp - 0x928]
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
test edi, edi
je case.0x407922.1
movzx eax, word [edi + 4]
push eax
push str.DELETE_MuCastle_NPC_WHERE_MAP_SVR_GROUP___d
push 0x43dde8
mov word [ebp - 0x18c4], 0xcc1
mov byte [ebp - 0x18c2], 0x89
mov word [ebp - 0x18bc], ax
mov dword [ebp - 0x18b8], eax
call fcn.00414500
add esp, 0xc
push dword [0x43ddf4]
test al, al
je 0x40c7e3
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp dword [edi + 8], 0
mov dword [ebp - 0x1c], 0
jle 0x40c504
lea ecx, [edi + 0x25]
mov dword [ebp - 0x2c], 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 - 0x18b8]
push str.EXEC_WZ_CS_ReqNpcUpdate__d___d___d___d___d___d___d___d___d___d
push 0x43dde8
call fcn.00414500
add esp, 0x30
push dword [0x43ddf4]
test al, al
je 0x40c7e3
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
inc eax
add ecx, 0x1c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], ecx
cmp eax, dword [edi + 8]
jl 0x40c773
jmp 0x40c504
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ddf4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [ebp - 0x18c4]
mov dword [ebp - 0x18c0], 0
push eax
push esi
call fcn.00415df0
jmp case.0x407922.1
push dword [ebx + 0xc]
mov ecx, esi
push edi
call fcn.004104d0
jmp 0x40c82a
push dword [ebx + 0xc]
mov ecx, esi
push edi
call fcn.00405930
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00417457
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret