Function at 0x407770
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 0x42eeed
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1908
call fcn.0042ea10
mov eax, dword [0x43e040]
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 + 0x5d290c], eax
movzx eax, byte [ebp - 0x18cd]
cmp eax, 0xe1
ja case.0x407992.1
movzx eax, byte [eax + 0x40c998]
jmp dword [eax*4 + 0x40c8b8]
push str.SELECT_ItemCount_FROM_GameServerInfo_WHERE_Number0
push 0x43edd8
mov dword [ebp - 0x20], 0x10008c1
mov dword [ebp - 0x1c], 0
call fcn.00414560
add esp, 8
test al, al
je 0x407880
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407880
push str.ItemCount
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x407850
or eax, eax
jmp 0x407861
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push dword [0x43ede4]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x4078ce
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
call esi
push str.INSERT_INTO_GameServerInfo__Number_ItemCount_ZenCount_AceItemCount__VALUES__0_0_0_0_
push 0x43edd8
call fcn.00414560
add esp, 8
push dword [0x43ede4]
call edi
push 2
push dword [0x43ede4]
call esi
mov edi, dword [ebp - 0x18b4]
mov esi, dword [ebp - 0x18cc]
push 8
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.00415e20
mov eax, dword [ebp - 0x18b8]
movzx esi, word [edi + 0x38]
movzx edi, word [edi + 4]
lea ecx, [eax + 0x5d28d0]
mov eax, dword [ebp - 0x18b4]
add eax, 6
push eax
push 0x32
push ecx
call fcn.0041ab8d
mov ecx, dword [ebp - 0x18b8]
add esp, 0xc
push esi
push edi
lea eax, [ecx + 0x5d28d0]
mov word [ecx + 0x5d2902], di
push eax
push dword [ecx + 0x5d28ac]
mov word [ecx + 0x5d2904], si
push str._ServerManager___d__ServerInfo___s____d____d_
push 0
call fcn.00416cd0
add esp, 0x18
jmp case.0x407992.1
mov edx, esi
mov ecx, edi
call fcn.0040cd70
jmp case.0x407992.1
mov edx, esi
mov ecx, edi
call fcn.0040d510
jmp case.0x407992.1
mov edx, esi
mov ecx, edi
call fcn.0040db80
jmp case.0x407992.1
mov edx, esi
mov ecx, edi
call fcn.0040dfd0
jmp case.0x407992.1
cmp byte [edi], 0xc1
jne 0x40797c
mov al, byte [edi + 3]
jmp 0x40797f
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x71
ja case.0x407992.1
movzx eax, byte [eax + 0x40caa4]
jmp dword [eax*4 + 0x40ca7c]
push esi
push edi
call fcn.00416ed0
jmp case.0x407992.1
cmp dword [edi + 0xf1c], 0
lea eax, [edi + 0x13]
push 0x5d08e0
push 0
push eax
push 0
push 0xf00
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
lea esi, [edi + 8]
mov dword [0x5d08e0], 0xf00
push 1
push dword [0x43ede4]
mov dword [ebp - 0x18b8], esi
jne 0x407a3a
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 0x43edd8
call fcn.00414560
add esp, 0x10
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x408a4a
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 0x43edd8
call fcn.00414560
add esp, 0x14
jmp 0x407a00
push edi
call fcn.00416a40
jmp case.0x407992.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 0x43edd8
mov dword [ebp - 0x7f8], 0x5ac07c2
mov byte [ebp - 0x7f4], 0x41
movq qword [ebp - 0x7e5], xmm0
mov byte [ebp - 0x7db], al
call fcn.00414560
add esp, 0x10
test al, al
je 0x407bb0
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407bb0
push 0x780
lea eax, [ebp - 0x7cd]
push eax
push str.items
call fcn.00414800
push str.targetname
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x407b42
xorps xmm0, xmm0
mov word [ebp - 0x7d2], 0
movq qword [ebp - 0x7da], xmm0
mov byte [ebp - 0x7d0], 0
jmp 0x407b5e
shl eax, 0xd
push 0xa
add eax, 0x4405be
push eax
lea eax, [ebp - 0x7da]
push 0xb
push eax
call fcn.00420d9d
add esp, 0x10
push str.state
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x407b71
or eax, eax
jmp 0x407b82
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push dword [0x43ede4]
mov byte [ebp - 0x7ce], al
mov byte [ebp - 0x7cf], 1
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, str.GDTradeXItemSaveRecv___Else
jmp 0x407bd6
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x7cf], 0
mov eax, str.GCTradeXGetItemSave___If
push eax
push 0
call fcn.00416cd0
add esp, 8
lea eax, [ebp - 0x7f8]
push 0x7ac
push eax
push esi
call fcn.00415e20
jmp case.0x407992.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 0x43edd8
mov dword [ebp - 0x188c], 0x53e00c2
mov byte [ebp - 0x1888], 0x51
movq qword [ebp - 0x1879], xmm0
mov byte [ebp - 0x186f], al
call fcn.00414560
add esp, 0x10
test al, al
je 0x407cc5
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407cc5
push 0x20
lea eax, [ebp - 0x186e]
push eax
push str.ElementSlot
call fcn.00414800
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x3e
lea eax, [ebp - 0x188c]
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movaps xmm0, xmmword [0x43a4e0]
lea eax, [ebp - 0x188c]
push 0x3e
push eax
push esi
movups xmmword [ebp - 0x186e], xmm0
movups xmmword [ebp - 0x185e], xmm0
call fcn.00415e20
jmp case.0x407992.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 0x43edd8
mov dword [ebp - 0x2c], ecx
call fcn.00414560
add esp, 0x10
test al, al
je 0x40ac05
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40ac05
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
call esi
mov eax, dword [ebp - 0x18b4]
push 0x5d08e0
push 0
add eax, 0x1e
mov dword [0x5d08e0], 0x20
push eax
push 0
push 0x20
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ede4]
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 0x408a4a
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 0x43edd8
mov dword [ebp - 0x7f0], 0x5a807c2
mov byte [ebp - 0x7ec], 0x60
movq qword [ebp - 0x7dd], xmm0
mov byte [ebp - 0x7d3], al
call fcn.00414560
add esp, 0x10
test al, al
je 0x407f07
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407f07
push 0x780
lea eax, [ebp - 0x7c8]
push eax
push str.Items
call fcn.00414800
push str.State
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x407e64
or eax, eax
jmp 0x407e75
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push str.SelectedKey
mov byte [ebp - 0x7d1], al
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x407e8e
or eax, eax
jmp 0x407e9f
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push str.SelectedComb
mov dword [ebp - 0x7d0], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x407eb8
or eax, eax
jmp 0x407ec9
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push dword [0x43ede4]
mov dword [ebp - 0x7cc], eax
mov byte [ebp - 0x7d2], 1
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x7a8
lea eax, [ebp - 0x7f0]
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x7a8
lea eax, [ebp - 0x7f0]
mov byte [ebp - 0x7d2], 0
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
push edi
call fcn.00404260
jmp case.0x407992.1
push 0x5d2890
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x5d2888]
mov esi, dword [0x5d2884]
lea eax, [edx + esi]
test al, 3
jne 0x407f88
lea eax, [edx + 4]
shr eax, 2
cmp dword [0x5d2880], eax
ja 0x407f88
push ecx
call fcn.00415400
mov edx, dword [0x5d2888]
mov esi, dword [0x5d2884]
mov ecx, dword [0x5d2880]
lea eax, [ecx*4 - 1]
and eax, esi
lea esi, [ecx - 1]
mov ecx, dword [0x5d287c]
add edx, eax
mov dword [0x5d2884], eax
mov eax, edx
shr eax, 2
and esi, eax
mov dword [ebp - 0x1c], edx
cmp dword [ecx + esi*4], 0
jne 0x407fd3
push 0x10
call fcn.004176e4
mov ecx, dword [0x5d287c]
add esp, 4
mov edx, dword [ebp - 0x1c]
mov dword [ecx + esi*4], eax
mov ecx, dword [0x5d287c]
mov ecx, dword [ecx + esi*4]
and edx, 3
mov eax, dword [edi + 4]
push 0x5d2890
mov dword [ecx + edx*4], eax
inc dword [0x5d2888]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.0x407992.1
mov edx, esi
mov ecx, edi
call fcn.0040e7b0
jmp case.0x407992.1
mov edx, esi
mov ecx, edi
call fcn.0040e9f0
jmp case.0x407992.1
mov edx, esi
mov ecx, edi
call fcn.0040ec20
jmp case.0x407992.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
mov cl, byte [edi + eax]
cmp cl, 0x20
je 0x40812a
cmp cl, 0x22
je 0x40812a
cmp cl, 0x27
je 0x40812a
inc eax
cmp eax, 0xb
jl 0x408080
mov esi, dword [0x43eac0]
cmp esi, dword [0x43eac4]
je 0x4080cb
push esi
push edi
call fcn.004187e0
add esp, 8
test eax, eax
jne 0x40812a
add esi, 0x20
cmp esi, dword [0x43eac4]
jne 0x4080b2
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.00405170
test al, al
jne 0x40810a
cmp dword [0x5d26fc], 0
je 0x40812a
push 0x1e
lea eax, [ebp - 0x1838]
mov byte [ebp - 0x181c], 0
push eax
push dword [ebp - 0x18cc]
call fcn.00415e20
jmp case.0x407992.1
push 0x1e
lea eax, [ebp - 0x1838]
mov byte [ebp - 0x181c], 1
push eax
push dword [ebp - 0x18cc]
call fcn.00415e20
jmp case.0x407992.1
mov edx, esi
mov ecx, edi
call fcn.0040ee60
jmp case.0x407992.1
cmp byte [edi], 0xc1
lea ecx, [edi + 4]
mov dword [ebp - 0x2c], ecx
jne 0x408168
mov al, byte [edi + 3]
jmp 0x40816a
mov al, byte [ecx]
movzx eax, al
cmp eax, 0x52
ja case.0x407992.1
movzx eax, byte [eax + 0x40cb30]
jmp dword [eax*4 + 0x40cb18]
push esi
push edi
call fcn.004148d0
jmp case.0x407992.1
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_QuestKillCount_WHERE_Name_s
push 0x43edd8
mov dword [ebp - 0x18b8], eax
call fcn.00414560
add esp, 0xc
test al, al
je 0x408224
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408224
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x43edd8
call fcn.00414560
add esp, 0x38
jmp 0x408a57
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x43edd8
call fcn.00414560
add esp, 0x38
jmp 0x408a57
push 0x5d08e0
push 0
lea eax, [edi + 0x24]
mov dword [0x5d08e0], 0x10
push eax
push 0
push 0x10
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ede4]
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 0x43edd8
call fcn.00414560
add esp, 0x28
jmp 0x40ac05
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 0x43edd8
call fcn.00414560
add esp, 0x14
test al, al
je 0x40ac05
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40ac05
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x43edd8
call fcn.00414560
add esp, 0x14
jmp 0x408a57
lea eax, [edi + 0xf]
push eax
push ecx
push str.SELECT__FROM_OFF_TRADE_SYSTEM_WHERE_Account_s_and_Name_s
push 0x43edd8
mov dword [ebp - 0x1c], eax
call fcn.00414560
add esp, 0x10
test al, al
je 0x40ac05
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40ac05
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x408a4a
cmp byte [edi], 0xc1
jne 0x4083df
mov al, byte [edi + 3]
jmp 0x4083e2
mov al, byte [edi + 4]
test al, al
je 0x408532
cmp al, 0x30
jne case.0x407992.1
lea eax, [edi + 0x13]
push eax
push str.SELECT_Name_FROM_MasterSkillTree_WHERE_Name_s
push 0x43edd8
mov dword [ebp - 0x18b8], eax
call fcn.00414560
add esp, 0xc
test al, al
je 0x4084af
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4084af
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
call esi
mov eax, dword [ebp - 0x18b4]
push 0x5d08e0
push 0
add eax, 0x30
mov dword [0x5d08e0], 0xb4
push eax
push 0
push 0xb4
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ede4]
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 0x43edd8
call fcn.00414560
add esp, 0x1c
jmp 0x408a57
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
call esi
mov eax, dword [ebp - 0x18b4]
push 0x5d08e0
push 0
add eax, 0x30
mov dword [0x5d08e0], 0xb4
push eax
push 0
push 0xb4
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ede4]
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 0x43edd8
call fcn.00414560
add esp, 0x1c
jmp 0x408a57
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 0x43edd8
mov dword [ebp - 0x130], 0xde800c2
mov byte [ebp - 0x12c], 0
movq qword [ebp - 0x11d], xmm0
mov byte [ebp - 0x113], al
call fcn.00414560
add esp, 0xc
test al, al
je 0x408691
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408691
push str.MasterLevel
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x4085d6
or eax, eax
jmp 0x4085e7
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push str.MasterPoint
mov dword [ebp - 0x110], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x408600
or eax, eax
jmp 0x408611
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push str.MasterExperience
mov dword [ebp - 0x10c], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40862d
or eax, eax
or edx, 0xffffffff
jmp 0x40863e
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d952
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.00414800
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xe8
lea eax, [ebp - 0x130]
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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.00418c90
add esp, 0xc
lea eax, [ebp - 0x130]
push 0xe8
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
cmp byte [edi], 0xc1
jne 0x408704
mov al, byte [edi + 3]
jmp 0x408707
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x31
ja case.0x407992.1
movzx eax, byte [eax + 0x40cb98]
jmp dword [eax*4 + 0x40cb84]
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 0x43edd8
mov dword [ebp - 0x1838], 0xe1ec1
mov dword [ebp - 0x1c], ecx
movq qword [ebp - 0x1827], xmm0
mov byte [ebp - 0x181d], al
call fcn.00414560
add esp, 0xc
test al, al
je 0x4087fe
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4087fe
push str.Status
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x4087b9
or eax, eax
jmp 0x4087ca
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push dword [0x43ede4]
mov byte [ebp - 0x181c], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1e
lea eax, [ebp - 0x1838]
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
call esi
push dword [ebp - 0x1c]
push str.INSERT_INTO_EventLeoTheHelper__Name_Status__VALUES___s_0_
push 0x43edd8
call fcn.00414560
add esp, 0xc
push dword [0x43ede4]
call edi
push 2
push dword [0x43ede4]
call esi
mov esi, dword [ebp - 0x18cc]
lea eax, [ebp - 0x1838]
push 0x1e
push eax
push esi
mov byte [ebp - 0x181c], 0
call fcn.00415e20
jmp case.0x407992.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 0x43edd8
mov dword [ebp - 0x1838], 0x10e1ec1
mov dword [ebp - 0x1c], ecx
movq qword [ebp - 0x1827], xmm0
mov byte [ebp - 0x181d], al
call fcn.00414560
add esp, 0xc
test al, al
je 0x4088ed
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x4087a6
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
call esi
push dword [ebp - 0x1c]
push str.INSERT_INTO_EventSantaClaus__Name_Status__VALUES___s_0_
jmp 0x408824
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_EventLeoTheHelper_WHERE_Name_s
push 0x43edd8
mov dword [ebp - 0x1c], eax
call fcn.00414560
add esp, 0xc
test al, al
je 0x40897e
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40897e
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x408a4a
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x408a4a
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_EventSantaClaus_WHERE_Name_s
push 0x43edd8
mov dword [ebp - 0x1c], eax
call fcn.00414560
add esp, 0xc
test al, al
je 0x408a18
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408a18
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x408a4a
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x43edd8
call fcn.00414560
add esp, 0x10
push dword [0x43ede4]
call edi
push 2
push dword [0x43ede4]
call esi
jmp case.0x407992.1
cmp byte [edi], 0xc1
jne 0x408a78
mov al, byte [edi + 3]
jmp 0x408a7b
mov al, byte [edi + 4]
test al, al
je 0x408ba3
cmp al, 0x30
jne case.0x407992.1
lea eax, [edi + 0x13]
push eax
push str.SELECT_Name_FROM_QuestWorld_WHERE_Name_s
push 0x43edd8
mov dword [ebp - 0x18b8], eax
call fcn.00414560
add esp, 0xc
test al, al
je 0x408b32
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408b32
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
call esi
mov eax, dword [ebp - 0x18b4]
push 0x5d08e0
push 0
add eax, 0x1e
mov dword [0x5d08e0], 0x190
push eax
push 0
push 0x190
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x18b8]
push str.UPDATE_QuestWorld_SET_QuestWorldList__WHERE_Name_s
push 0x43edd8
call fcn.00414560
add esp, 0xc
jmp 0x408a57
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
call esi
mov eax, dword [ebp - 0x18b4]
push 0x5d08e0
push 0
add eax, 0x1e
mov dword [0x5d08e0], 0x190
push eax
push 0
push 0x190
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x18b8]
push str.INSERT_INTO_QuestWorld__Name_QuestWorldList__VALUES___s___
push 0x43edd8
call fcn.00414560
add esp, 0xc
jmp 0x408a57
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 0x43edd8
mov dword [ebp - 0x1f8], 0x10ae01c2
mov byte [ebp - 0x1f4], 0
movq qword [ebp - 0x1e5], xmm0
mov byte [ebp - 0x1db], al
call fcn.00414560
add esp, 0xc
test al, al
je 0x408c73
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408c73
push 0x190
lea eax, [ebp - 0x1da]
push eax
push str.QuestWorldList
call fcn.00414800
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1ae
lea eax, [ebp - 0x1f8]
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x190
lea eax, [ebp - 0x1da]
push 0xff
push eax
call fcn.00418c90
add esp, 0xc
lea eax, [ebp - 0x1f8]
push 0x1ae
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
cmp byte [edi], 0xc1
jne 0x408cc7
mov al, byte [edi + 3]
jmp 0x408cca
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x30
ja case.0x407992.1
movzx eax, byte [eax + 0x40cbe8]
jmp dword [eax*4 + 0x40cbcc]
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 0x43edd8
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.00414560
add esp, 0x10
push dword [0x43ede4]
test al, al
jne 0x408dab
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x28
lea eax, [ebp - 0x1840]
mov byte [ebp - 0x1824], 1
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
mov al, byte [edi + 0x1c]
mov byte [ebp - 0x1823], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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 0x43edd8
call fcn.00414560
add esp, 0x10
test al, al
je 0x408e85
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408e85
push str.Rank
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x408e14
or eax, eax
jmp 0x408e25
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push str.Contribution
mov dword [ebp - 0x1820], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x408e3e
or eax, eax
jmp 0x408e4f
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push dword [0x43ede4]
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 [0x43ede4]
call eax
push 0x28
lea eax, [ebp - 0x1840]
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
push dword [0x43ede4]
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
call eax
push 0x28
lea eax, [ebp - 0x1840]
mov byte [ebp - 0x1824], 1
push eax
push esi
call fcn.00415e20
jmp case.0x407992.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 0x43edd8
mov dword [ebp - 0x1838], 0x1111ec1
movq qword [ebp - 0x1827], xmm0
mov byte [ebp - 0x181d], al
call fcn.00414560
add esp, 0xc
push dword [0x43ede4]
test al, al
jne 0x408f4f
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x181c], 1
jmp 0x408f6a
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x181c], 0
push 0x1e
lea eax, [ebp - 0x1838]
push eax
push esi
call fcn.00415e20
mov eax, dword [edi + 0x20]
push 0xffffffffffffffff
inc eax
push eax
movzx eax, byte [edi + 0x1c]
push eax
call fcn.00412270
jmp case.0x407992.1
push esi
push edi
call fcn.00411ef0
jmp case.0x407992.1
push esi
push edi
call fcn.004120b0
jmp case.0x407992.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 0x43edd8
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.00414560
add esp, 0xc
test al, al
je 0x4090d9
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4090d9
mov al, byte [edi + 0x1c]
push str.Rank
mov byte [ebp - 0x1823], al
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40906a
or eax, eax
jmp 0x40907b
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push str.Status
mov dword [ebp - 0x1820], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x409094
or eax, eax
jmp 0x4090a5
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push dword [0x43ede4]
mov dword [ebp - 0x181c], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x28
lea eax, [ebp - 0x1840]
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x28
lea eax, [ebp - 0x1840]
mov byte [ebp - 0x1824], 1
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_Gens_Reward_WHERE_Name_s
push 0x43edd8
mov dword [ebp - 0x18b8], eax
call fcn.00414560
add esp, 0xc
test al, al
je 0x409177
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409177
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x408a4a
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x43edd8
call fcn.00414560
add esp, 0x14
jmp 0x408a57
cmp byte [edi], 0xc1
jne 0x4091c8
mov al, byte [edi + 3]
jmp 0x4091cb
mov al, byte [edi + 4]
test al, al
je 0x4092f3
cmp al, 0x30
jne case.0x407992.1
lea eax, [edi + 0x13]
push eax
push str.SELECT_Name_FROM_HelperData_WHERE_Name_s
push 0x43edd8
mov dword [ebp - 0x18b8], eax
call fcn.00414560
add esp, 0xc
test al, al
je 0x409282
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409282
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
call esi
mov eax, dword [ebp - 0x18b4]
push 0x5d08e0
push 0
add eax, 0x1e
mov dword [0x5d08e0], 0x100
push eax
push 0
push pe_nt_image_headers32
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x18b8]
push str.UPDATE_HelperData_SET_Data__WHERE_Name_s
push 0x43edd8
call fcn.00414560
add esp, 0xc
jmp 0x408a57
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
call esi
mov eax, dword [ebp - 0x18b4]
push 0x5d08e0
push 0
add eax, 0x1e
mov dword [0x5d08e0], 0x100
push eax
push 0
push pe_nt_image_headers32
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebp - 0x18b8]
push str.INSERT_INTO_HelperData__Name_Data__VALUES___s___
push 0x43edd8
call fcn.00414560
add esp, 0xc
jmp 0x408a57
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 0x43edd8
mov dword [ebp - 0x168], 0x172001c2
mov byte [ebp - 0x164], 0
movq qword [ebp - 0x155], xmm0
mov byte [ebp - 0x14b], al
call fcn.00414560
add esp, 0xc
test al, al
je 0x4093ca
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4093ca
push pe_nt_image_headers32
lea eax, [ebp - 0x149]
mov byte [ebp - 0x14a], 0
push eax
push str.Data
call fcn.00414800
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x120
lea eax, [ebp - 0x168]
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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.00418c90
add esp, 0xc
lea eax, [ebp - 0x168]
push 0x120
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
cmp byte [edi], 0xc1
jne 0x409425
mov al, byte [edi + 3]
jmp 0x409428
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x44
ja case.0x407992.1
movzx eax, byte [eax + 0x40cc64]
jmp dword [eax*4 + 0x40cc1c]
push esi
push edi
call fcn.00402460
jmp case.0x407992.1
push esi
push edi
call fcn.004025f0
jmp case.0x407992.1
push esi
push edi
call fcn.004027b0
jmp case.0x407992.1
push esi
push edi
call fcn.00402ab0
jmp case.0x407992.1
push esi
push edi
call fcn.00402e30
jmp case.0x407992.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 0x40ab71
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 0x43edd8
call fcn.00414560
add esp, 0xc
test al, al
je 0x409577
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409577
mov al, byte [esi - 4]
mov byte [ebp - 0x18c4], al
mov eax, dword [esi]
push str.Time
mov dword [ebp - 0x18c0], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40953e
or eax, eax
jmp 0x40954f
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push dword [0x43ede4]
mov dword [ebp - 0x18b8], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x18b8]
jmp 0x4095d4
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_CashShopPeriodicItem__ItemSerial_Time__VALUES___d__d_
push 0x43edd8
call fcn.00414560
add esp, 0x10
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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 0x4094f0
jmp 0x40ab6b
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 0x43edd8
mov dword [ebp - 0x1844], 0x6182cc1
movq qword [ebp - 0x183e], xmm0
mov dword [ebp - 0x1828], eax
call fcn.00414560
add esp, 0xc
test al, al
je 0x40974c
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40974c
push str.WCoinC
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x4096b3
or eax, eax
jmp 0x4096c4
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push str.WCoinP
mov dword [ebp - 0x1824], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x4096dd
or eax, eax
jmp 0x4096ee
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push str.GoblinPoint
mov dword [ebp - 0x1820], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x409707
or eax, eax
jmp 0x409718
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push dword [0x43ede4]
mov dword [ebp - 0x181c], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x2c
lea eax, [ebp - 0x1844]
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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.00415e20
jmp case.0x407992.1
push edi
call fcn.00403120
jmp case.0x407992.1
push edi
call fcn.004032d0
jmp case.0x407992.1
cmp byte [edi + 0x13], 0
mov eax, 0x13
mov esi, dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov ecx, 8
cmovne ecx, eax
push 0x5d08e0
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 [0x43ede4]
movq qword [ebp - 0x20], xmm0
mov dword [0x5d08e0], 0xfffffffd
call esi
push 0x5d08e4
push 0
lea eax, [edi + 0x44]
mov dword [0x5d08e4], 0xfffffffd
push eax
push 0
push 0xc8
push 0xc
push 1
push 1
push 2
push dword [0x43ede4]
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 0x43edd8
call fcn.00414560
add esp, 0x2c
jmp 0x40ac05
push dword [edi + 0x1c]
push str.DELETE_FROM_CashShopInventory_WHERE_BaseItemCode_d
push 0x43edd8
call fcn.00414560
add esp, 0xc
jmp 0x40ac05
cmp byte [edi + 0x13], 0
mov dword [ebp - 0x1c], 0
jbe case.0x407992.1
lea esi, [edi + 0x14]
nop
push dword [esi]
push str.SELECT_ItemSerial_FROM_CashShopPeriodicItem_WHERE_ItemSerial_d
push 0x43edd8
call fcn.00414560
add esp, 0xc
test al, al
je 0x4098f0
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4098f0
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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 0x409914
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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 0x43edd8
call fcn.00414560
add esp, 0x10
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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 0x4098a0
jmp case.0x407992.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 0x40a052
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 0x43edd8
call fcn.00414560
add esp, 0xc
test al, al
je 0x409a42
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409a42
mov al, byte [esi - 4]
mov byte [ebp - 0x18c4], al
mov eax, dword [esi]
push str.Deaths
mov dword [ebp - 0x1c], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x409a0f
or eax, eax
jmp 0x409a20
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push dword [0x43ede4]
mov dword [ebp - 0x18c0], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x409aa4
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_DeathSystem___m_Serial____Deaths___VALUES___d_0_
push 0x43edd8
call fcn.00414560
add esp, 0x10
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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 0x4099c4
jmp 0x40a04c
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 0x40a052
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 0x43edd8
call fcn.00414560
add esp, 0xc
test al, al
je 0x409be1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409be1
mov al, byte [esi - 4]
mov byte [ebp - 0x18c4], al
mov eax, dword [esi]
push str.Deaths
mov dword [ebp - 0x1c], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x409bae
or eax, eax
jmp 0x409bbf
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push dword [0x43ede4]
mov dword [ebp - 0x18c0], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x409c43
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_DeathSystem___m_Serial____Deaths___VALUES___d_0_
push 0x43edd8
call fcn.00414560
add esp, 0x10
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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 0x409b63
jmp 0x40a04c
cmp byte [edi + 0x10], 1
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
jne 0x409cce
push dword [edi + 8]
push dword [edi + 0xc]
push str.UPDATE_DeathSystem_SET_DeathsDeaths_d_where_m_Serial_d
push 0x43edd8
call fcn.00414560
add esp, 0x10
push dword [0x43ede4]
call esi
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp byte [edi + 0x10], 2
jne case.0x407992.1
push dword [edi + 8]
push dword [edi + 0xc]
push str.UPDATE_DeathSystem_SET_DeathsDeaths__d_where_m_Serial_d
push 0x43edd8
call fcn.00414560
add esp, 0x10
push dword [0x43ede4]
call esi
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp case.0x407992.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 0x40a052
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 0x43edd8
call fcn.00414560
add esp, 0xc
test al, al
je 0x409dfe
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409dfe
mov al, byte [esi - 4]
mov byte [ebp - 0x18c4], al
mov eax, dword [esi]
push str.Deaths
mov dword [ebp - 0x1c], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x409dcb
or eax, eax
jmp 0x409ddc
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push dword [0x43ede4]
mov dword [ebp - 0x18c0], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x409e60
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_DeathSystem___m_Serial____Deaths___VALUES___d_0_
push 0x43edd8
call fcn.00414560
add esp, 0x10
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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 0x409d80
jmp 0x40a04c
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 0x40a052
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 0x43edd8
call fcn.00414560
add esp, 0xc
test al, al
je 0x409f9e
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409f9e
mov al, byte [esi - 4]
mov byte [ebp - 0x18c4], al
mov eax, dword [esi]
push str.Deaths
mov dword [ebp - 0x1c], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x409f6b
or eax, eax
jmp 0x409f7c
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push dword [0x43ede4]
mov dword [ebp - 0x18c0], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40a000
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_DeathSystem___m_Serial____Deaths___VALUES___d_0_
push 0x43edd8
call fcn.00414560
add esp, 0x10
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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 0x409f20
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.00415e20
jmp case.0x407992.1
cmp byte [edi], 0xc1
jne 0x40a09a
mov al, byte [edi + 3]
jmp 0x40a09d
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x31
ja case.0x407992.1
movzx eax, byte [eax + 0x40ccc4]
jmp dword [eax*4 + 0x40ccac]
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 0x43edd8
mov dword [ebp - 0x1830], 0x1a18c1
movq qword [ebp - 0x182a], xmm0
mov byte [ebp - 0x1820], al
mov byte [ebp - 0x181f], 0
call fcn.00414560
add esp, 0xc
test al, al
je 0x40a177
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a177
push str.LuckyCoin
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40a132
or eax, eax
jmp 0x40a143
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push dword [0x43ede4]
mov dword [ebp - 0x181c], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1830]
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push str.INSERT_INTO_LuckyCoin__AccountID_LuckyCoin__VALUES___s_0_
push 0x43edd8
call fcn.00414560
add esp, 0xc
test al, al
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push dword [0x43ede4]
jne 0x40a1df
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
call eax
push 0x18
lea eax, [ebp - 0x1830]
mov byte [ebp - 0x181f], 1
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
call eax
push 0x18
lea eax, [ebp - 0x1830]
mov dword [ebp - 0x181c], 0
push eax
push esi
call fcn.00415e20
jmp case.0x407992.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 0x43edd8
mov dword [ebp - 0x1830], 0x11a18c1
movq qword [ebp - 0x182a], xmm0
mov byte [ebp - 0x181f], 0
mov byte [ebp - 0x181e], al
call fcn.00414560
add esp, 0xc
test al, al
je 0x40a2d7
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a2d7
push str.LuckyCoin
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40a292
or eax, eax
jmp 0x40a2a3
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push dword [0x43ede4]
mov dword [ebp - 0x181c], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1830]
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1830]
mov byte [ebp - 0x181f], 1
push eax
push esi
call fcn.00415e20
jmp case.0x407992.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 0x43edd8
mov dword [ebp - 0x1834], 0x21a1cc1
movq qword [ebp - 0x182e], xmm0
mov byte [ebp - 0x1823], 0
mov dword [ebp - 0x1820], eax
call fcn.00414560
add esp, 0xc
test al, al
je 0x40a3d5
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a3d5
push str.LuckyCoin
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40a390
or eax, eax
jmp 0x40a3a1
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push dword [0x43ede4]
mov dword [ebp - 0x181c], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1c
lea eax, [ebp - 0x1834]
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1c
lea eax, [ebp - 0x1834]
mov byte [ebp - 0x1823], 1
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
lea eax, [edi + 6]
push eax
push str.SELECT_LuckyCoin_FROM_LuckyCoin_WHERE_AccountID_s
push 0x43edd8
call fcn.00414560
add esp, 0xc
test al, al
je 0x40a4a5
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a4a5
push str.LuckyCoin
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40a44e
mov dword [ebp - 0x1c], eax
jmp 0x40a462
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
mov dword [ebp - 0x1c], eax
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x408a4a
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x408a4a
lea eax, [edi + 6]
push eax
push str.SELECT_LuckyCoin_FROM_LuckyCoin_WHERE_AccountID_s
push 0x43edd8
mov dword [ebp - 0x1c], eax
call fcn.00414560
add esp, 0xc
test al, al
je 0x40a583
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a583
push str.LuckyCoin
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40a524
mov dword [ebp - 0x18b8], eax
jmp 0x40a53b
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
mov dword [ebp - 0x18b8], eax
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x408a4a
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
call esi
push 0
push 0
push 0
push dword [ebp - 0x1c]
push str.INSERT_INTO_LuckyCoin__AccountID_LuckyCoin__VALUES___s__d_
push 0x43edd8
call fcn.00414560
add esp, 0x18
jmp 0x408a57
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 dword [ebp - 0x18bc], eax
xor esi, esi
mov word [ebp - 0x18c8], 0x10c1
mov eax, 0x5d28ac
mov byte [ebp - 0x18c6], 0x1e
nop dword [eax]
mov eax, dword [esi + eax]
test eax, eax
js 0x40a635
cmp eax, 0x14
jge 0x40a635
cmp dword [esi + 0x5d28b0], 0
je 0x40a635
cmp dword [esi + 0x5d28c4], 0xffffffff
je 0x40a635
movzx eax, cl
push eax
lea eax, [ebp - 0x18c8]
push eax
push edi
call fcn.00415e20
mov cl, byte [ebp - 0x18c7]
add esi, 0x68
inc edi
mov eax, 0x5d28ac
cmp esi, 0x820
jl 0x40a600
jmp case.0x407992.1
movzx eax, word [edi + 4]
push eax
push str.EXEC_WZ_CW_InfoLoad__d
push 0x43edd8
mov word [ebp - 0x18c8], 0x10c1
mov byte [ebp - 0x18c6], 0x1f
mov word [ebp - 0x18c4], ax
call fcn.00414560
add esp, 0xc
test al, al
je 0x40a719
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a719
push str.CRYWOLF_STATE
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40a6aa
or eax, eax
jmp 0x40a6bb
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push str.CRYWOLF_OCCUFY
mov dword [ebp - 0x18c0], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40a6d4
or eax, eax
jmp 0x40a6e5
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push dword [0x43ede4]
mov dword [ebp - 0x18bc], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [ebp - 0x18c8]
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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.00415e20
jmp case.0x407992.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 dword [ebp - 0x1856], eax
mov eax, 0x5d28ac
movups xmmword [ebp - 0x186e], xmm0
mov word [ebp - 0x18a0], 0x4ec1
movq xmm0, qword [edi + 0x42]
xor edi, edi
mov byte [ebp - 0x189e], 0x20
xor esi, esi
movq qword [ebp - 0x185e], xmm0
mov eax, dword [esi + eax]
test eax, eax
js 0x40a817
cmp eax, 0x14
jge 0x40a817
cmp dword [esi + 0x5d28b0], 0
je 0x40a817
cmp dword [esi + 0x5d28c4], 0xffffffff
je 0x40a817
movzx eax, cl
push eax
lea eax, [ebp - 0x18a0]
push eax
push edi
call fcn.00415e20
mov cl, byte [ebp - 0x189f]
add esi, 0x68
inc edi
mov eax, 0x5d28ac
cmp esi, 0x820
jl 0x40a7e2
jmp case.0x407992.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 byte [ebp - 0xd0], al
mov eax, 0x5d28ac
mov word [ebp - 0xe0], 0x94c1
mov byte [ebp - 0xde], 0x21
rep movsd dword es:[edi], dword [esi]
xor edi, edi
xor esi, esi
nop dword [eax]
mov eax, dword [esi + eax]
test eax, eax
js 0x40a8d3
cmp eax, 0x14
jge 0x40a8d3
cmp dword [esi + 0x5d28b0], 0
je 0x40a8d3
cmp dword [esi + 0x5d28c4], 0xffffffff
je 0x40a8d3
movzx eax, byte [ebp - 0xdf]
push eax
lea eax, [ebp - 0xe0]
push eax
push edi
call fcn.00415e20
add esi, 0x68
inc edi
mov eax, 0x5d28ac
cmp esi, 0x820
jl 0x40a8a0
jmp case.0x407992.1
cmp byte [edi], 0xc1
jne 0x40a8f3
mov al, byte [edi + 3]
jmp 0x40a8f6
mov al, byte [edi + 4]
test al, al
je 0x40a9d6
cmp al, 0x4a
jne case.0x407992.1
cmp byte [edi + 0x13], 0
mov dword [ebp - 0x1c], 0
jbe case.0x407992.1
lea esi, [edi + 0x14]
nop word [eax + eax]
push dword [esi]
push str.SELECT_ItemSerial_FROM_LuckyItem_WHERE_ItemSerial_d
push 0x43edd8
call fcn.00414560
add esp, 0xc
test al, al
je 0x40a970
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40a970
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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 0x40a994
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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 0x43edd8
call fcn.00414560
add esp, 0x10
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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 0x40a920
jmp case.0x407992.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 0x40ab71
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 0x43edd8
call fcn.00414560
add esp, 0xc
test al, al
je 0x40aac5
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40aac5
mov al, byte [esi - 4]
mov byte [ebp - 0x18c4], al
mov eax, dword [esi]
push str.DurabilitySmall
mov dword [ebp - 0x18c0], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40aa92
or eax, eax
jmp 0x40aaa3
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push dword [0x43ede4]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x1c]
jmp 0x40ab22
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_LuckyItem__ItemSerial_DurabilitySmall__VALUES___d__d_
push 0x43edd8
call fcn.00414560
add esp, 0x10
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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 0x40aa44
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.00415e20
jmp case.0x407992.1
mov ecx, edi
call fcn.0040f030
jmp case.0x407992.1
push 0x5d08e0
push 0
lea eax, [edi + 0x1c]
mov dword [0x5d08e0], 0xf90
push eax
push 0
push 0xf90
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ede4]
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 0x43edd8
call fcn.00414560
add esp, 0x10
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp case.0x407992.1
mov ecx, edi
call fcn.0040f300
jmp case.0x407992.1
cmp byte [edi + 0x11], 0
mov dword [ebp - 0x1c], 0
jbe case.0x407992.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 0x43edd8
call fcn.00414560
add esp, 0xc
test al, al
je 0x40aca6
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40aca6
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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 0x40accf
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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 0x43edd8
call fcn.00414560
add esp, 0x14
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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 0x40ac50
jmp case.0x407992.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 0x43edd8
call fcn.00414560
add esp, 0x20
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp case.0x407992.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 0x43edd8
call fcn.00414560
add esp, 0x24
jmp 0x40ad37
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingDuel_WHERE_Name_s
push 0x43edd8
mov dword [ebp - 0x1c], eax
call fcn.00414560
add esp, 0xc
test al, al
je 0x40ae00
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40ae00
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x43edd8
call fcn.00414560
add esp, 0x14
jmp 0x408a57
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x43edd8
call fcn.00414560
add esp, 0x14
jmp 0x408a57
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingBloodCastle_WHERE_Name_s
push 0x43edd8
mov dword [ebp - 0x1c], eax
call fcn.00414560
add esp, 0xc
test al, al
je 0x40aea7
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40aea7
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x408a4a
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x408a4a
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingChaosCastle_WHERE_Name_s
push 0x43edd8
mov dword [ebp - 0x1c], eax
call fcn.00414560
add esp, 0xc
test al, al
je 0x40af3e
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40af3e
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x408a4a
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x408a4a
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingDevilSquare_WHERE_Name_s
push 0x43edd8
mov dword [ebp - 0x1c], eax
call fcn.00414560
add esp, 0xc
test al, al
je 0x40afd5
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40afd5
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x408a4a
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x408a4a
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingIllusionTemple_WHERE_Name_s
push 0x43edd8
mov dword [ebp - 0x1c], eax
call fcn.00414560
add esp, 0xc
test al, al
je 0x40b06c
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40b06c
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x408a4a
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
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 0x408a4a
lea eax, [edi + 6]
push eax
movzx eax, byte [edi + 0x11]
push eax
push str.UPDATE_AccountCharacter_SET_ExtClass_d_WHERE_Id_s
jmp 0x40abf8
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 0x43edd8
call fcn.00414560
add esp, 0x14
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40ac05
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 0x43edd8
call fcn.00414560
add esp, 0x20
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40ac05
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 0x43edd8
call fcn.00414560
add esp, 0x1c
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40ac05
lea esi, [edi + 0x11]
push esi
lea eax, [ebp - 0x1834]
push eax
call fcn.004044b0
test al, al
jne case.0x407992.1
push esi
lea eax, [ebp - 0x1834]
push 0xb
push eax
call fcn.0041ab8d
add esp, 0xc
lea eax, [edi + 6]
push eax
lea eax, [ebp - 0x1829]
push 0xb
push eax
call fcn.0041ab8d
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 + 0x5d2904]
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.00406b90
jmp case.0x407992.1
lea esi, [edi + 0x11]
push esi
lea eax, [ebp - 0x1834]
push eax
call fcn.004044b0
test al, al
je case.0x407992.1
mov ax, word [ebp - 0x181e]
cmp ax, word [edi + 4]
jne case.0x407992.1
mov eax, dword [ebp - 0x18b8]
mov dx, word [ebp - 0x181c]
cmp dx, word [eax + 0x5d2904]
jne case.0x407992.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.00404a80
mov dl, 1
mov ecx, esi
call fcn.00406b90
jmp case.0x407992.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 0x40b2cc
mov byte [ebp - 0x1894], al
jmp 0x40b3b1
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.00416e20
test eax, eax
je 0x40b3b1
push 0x64
lea ecx, [ebp - 0xb0]
push ecx
push dword [eax + 4]
call fcn.00415e20
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.00415e20
jmp case.0x407992.1
cmp byte [edi], 0xc1
jne 0x40b427
mov al, byte [edi + 3]
jmp 0x40b42a
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x1b
ja case.0x407992.1
jmp dword [eax*4 + 0x40ccf8]
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 0x40b484
push 0x38
lea eax, [ebp - 0x1888]
mov dword [ebp - 0x1884], 0
push eax
push esi
call fcn.00415e20
jmp case.0x407992.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.00415e20
jmp case.0x407992.1
mov edx, esi
mov ecx, edi
call fcn.0040f450
jmp case.0x407992.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 0x43edd8
call fcn.00414560
add esp, 0x30
push dword [0x43ede4]
test al, al
je 0x40b678
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b672
cmp ax, 0xffff
je 0x40b672
push str.QueryResult
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40b626
or esi, eax
jmp 0x40b639
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
mov esi, eax
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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.00415e20
jmp case.0x407992.1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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.00415e20
jmp case.0x407992.1
mov edx, esi
mov ecx, edi
call fcn.0040f5c0
jmp case.0x407992.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 0x43edd8
mov dword [ebp - 0x1828], esi
mov dword [ebp - 0x1820], ecx
call fcn.00414560
add esp, 0x1c
push dword [0x43ede4]
test al, al
je 0x40b7b5
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b7af
cmp ax, 0xffff
je 0x40b7af
push str.QueryResult
call fcn.004147b0
cmp eax, 0xffffffff
je 0x40b772
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
test eax, eax
je 0x40b7af
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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.00415e20
jmp case.0x407992.1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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.00415e20
jmp case.0x407992.1
mov edx, esi
mov ecx, edi
call fcn.0040f720
jmp case.0x407992.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 0x43edd8
mov dword [ebp - 0x18e8], 0x78018c1
mov word [ebp - 0x18e0], cx
mov dword [ebp - 0x18dc], eax
call fcn.00414560
add esp, 0x14
push dword [0x43ede4]
test al, al
je 0x40b910
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b90a
cmp ax, 0xffff
je 0x40b90a
push str.QueryResult
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40b86f
or edi, eax
jmp 0x40b882
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
mov edi, eax
push str.TaxKind
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40b895
or eax, eax
jmp 0x40b8a6
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push str.TaxRate
mov dword [ebp - 0x18d8], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40b8bf
or eax, eax
jmp 0x40b8d0
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push dword [0x43ede4]
mov dword [ebp - 0x18d4], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x18e8]
mov dword [ebp - 0x18e4], edi
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x18e8]
mov dword [ebp - 0x18e4], 0
push eax
push esi
call fcn.00415e20
jmp case.0x407992.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 0x40b9a9
lea eax, [ebp - 0x1838]
mov dword [ebp - 0x1834], 0
push eax
push esi
call fcn.00415e20
jmp case.0x407992.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.00415e20
jmp case.0x407992.1
mov edx, esi
mov ecx, edi
call fcn.0040f890
jmp case.0x407992.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.00415e20
jmp case.0x407992.1
push dword [edi + 8]
movzx eax, word [edi + 4]
push eax
push str.EXEC_WZ_CS_ModifySiegeEnd__d___d
push 0x43edd8
mov dword [ebp - 0x18c8], 0xb8010c1
mov word [ebp - 0x18c0], ax
call fcn.00414560
add esp, 0x10
push dword [0x43ede4]
test al, al
je 0x40bafc
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40baf6
cmp ax, 0xffff
je 0x40baf6
push str.QueryResult
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40baaf
or edi, eax
jmp 0x40bac2
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
mov edi, eax
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [ebp - 0x18c8]
mov dword [ebp - 0x18c4], edi
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [ebp - 0x18c8]
mov dword [ebp - 0x18c4], 0
push eax
push esi
call fcn.00415e20
jmp case.0x407992.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
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bb60
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x40bb94
nop
mov dl, byte [ebp + eax - 0x3c]
cmp dl, 0x20
je 0x40bc5c
cmp dl, 0x22
je 0x40bc5c
cmp dl, 0x27
je 0x40bc5c
inc eax
cmp eax, ecx
jl 0x40bb70
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 0x43edd8
call fcn.00414560
add esp, 0x14
push dword [0x43ede4]
test al, al
je 0x40bc48
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40bc42
cmp ax, 0xffff
je 0x40bc42
push str.QueryResult
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40bbfb
or edi, eax
jmp 0x40bc0e
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
mov edi, eax
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1900]
mov dword [ebp - 0x18fc], edi
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1900]
mov dword [ebp - 0x18fc], 0
push eax
push esi
call fcn.00415e20
jmp case.0x407992.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 0x40bcb1
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x40bce4
mov dl, byte [ebp + eax - 0x48]
cmp dl, 0x20
je 0x40bda2
cmp dl, 0x22
je 0x40bda2
cmp dl, 0x27
je 0x40bda2
inc eax
cmp eax, ecx
jl 0x40bcc0
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 0x43edd8
call fcn.00414560
add esp, 0x10
push dword [0x43ede4]
test al, al
je 0x40bd8e
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40bd88
cmp ax, 0xffff
je 0x40bd88
push str.QueryResult
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40bd41
or edi, eax
jmp 0x40bd54
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
mov edi, eax
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1918]
mov dword [ebp - 0x1914], edi
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [ebp - 0x1918]
mov dword [ebp - 0x1914], 0
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
movzx eax, word [edi + 4]
push eax
push str.EXEC_WZ_CS_ResetCastleSiege__d
push 0x43edd8
mov dword [ebp - 0x18c4], 0xe800cc1
mov word [ebp - 0x18bc], ax
call fcn.00414560
add esp, 0xc
push dword [0x43ede4]
test al, al
je 0x40c1d5
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40c1cf
cmp ax, 0xffff
je 0x40c1cf
push str.QueryResult
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40be26
or edi, eax
jmp 0x40be39
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
mov edi, eax
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [ebp - 0x18c4]
mov dword [ebp - 0x18c0], edi
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
mov ax, word [edi + 4]
lea esi, [edi + 6]
mov word [ebp - 0xcc], ax
lea edi, [ebp - 0xca]
mov ecx, 0x20
mov dword [ebp - 0xd0], 0xf8086c1
rep movsd dword es:[edi], dword [esi]
xor edi, edi
mov eax, 0x5d28ac
xor esi, esi
nop dword [eax + eax]
mov eax, dword [esi + eax]
test eax, eax
js 0x40bed0
cmp eax, 0x14
jge 0x40bed0
cmp dword [esi + 0x5d28b0], 0
je 0x40bed0
cmp dword [esi + 0x5d28c4], 0xffffffff
je 0x40bed0
push 0x86
lea eax, [ebp - 0xd0]
push eax
push edi
call fcn.00415e20
add esi, 0x68
inc edi
mov eax, 0x5d28ac
cmp esi, 0x820
jl 0x40bea0
jmp case.0x407992.1
mov edx, esi
mov ecx, edi
call fcn.0040f9d0
jmp case.0x407992.1
mov edx, esi
mov ecx, edi
call fcn.0040fb50
jmp case.0x407992.1
mov edx, esi
mov ecx, edi
call fcn.0040fcc0
jmp case.0x407992.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 0x43edd8
mov dword [ebp - 0x182c], 0x168014c1
mov word [ebp - 0x1824], dx
mov dword [ebp - 0x1820], ecx
mov dword [ebp - 0x181c], eax
call fcn.00414560
add esp, 0x14
push dword [0x43ede4]
test al, al
je 0x40bfcb
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40bfc5
cmp ax, 0xffff
je 0x40bfc5
push str.QueryResult
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40bf7e
or edi, eax
jmp 0x40bf91
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
mov edi, eax
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x14
lea eax, [ebp - 0x182c]
mov dword [ebp - 0x1828], edi
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x14
lea eax, [ebp - 0x182c]
mov dword [ebp - 0x1828], 0
push eax
push esi
call fcn.00415e20
jmp case.0x407992.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 - 0x1820], eax
xor esi, esi
mov dword [ebp - 0x1838], 0x178020c1
mov eax, 0x5d28ac
mov dword [ebp - 0x181c], ecx
mov eax, dword [esi + eax]
test eax, eax
js 0x40c07e
cmp eax, 0x14
jge 0x40c07e
cmp dword [esi + 0x5d28b0], 0
je 0x40c07e
cmp dword [esi + 0x5d28c4], 0xffffffff
je 0x40c07e
push 0x20
lea eax, [ebp - 0x1838]
push eax
push edi
call fcn.00415e20
add esi, 0x68
inc edi
mov eax, 0x5d28ac
cmp esi, 0x820
jl 0x40c051
jmp case.0x407992.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 0x40c0dd
push 0xc
lea eax, [ebp - 0x18c4]
mov dword [ebp - 0x18c0], 0
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x30]
push edx
push ecx
push eax
call fcn.004037e0
test eax, eax
jne 0x40c1e9
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18c0], eax
lea eax, [ebp - 0x18c4]
push 0xc
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
movzx eax, word [edi + 4]
push eax
mov dword [ebp - 0x18c4], 0x19800cc1
push str.EXEC_WZ_CS_ResetCastleTaxInfo__d
push 0x43edd8
mov word [ebp - 0x18bc], ax
call fcn.00414560
add esp, 0xc
push dword [0x43ede4]
test al, al
je 0x40c1d5
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40c1cf
cmp ax, 0xffff
je 0x40c1cf
push str.QueryResult
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40c16f
or edi, eax
jmp 0x40c182
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
mov edi, eax
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [ebp - 0x18c4]
mov dword [ebp - 0x18c0], edi
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
movzx eax, word [edi + 4]
push eax
mov dword [ebp - 0x18c4], 0x1a800cc1
push str.EXEC_WZ_CS_ResetSiegeGuildInfo__d
jmp 0x40c125
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [ebp - 0x18c4]
mov dword [ebp - 0x18c0], 0
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
movzx eax, word [edi + 4]
push eax
push str.EXEC_WZ_CS_ResetRegSiegeInfo__d
push 0x43edd8
mov dword [ebp - 0x18c4], 0x1b800cc1
mov word [ebp - 0x18bc], ax
call fcn.00414560
add esp, 0xc
push dword [0x43ede4]
test al, al
je 0x40c1d5
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40c1cf
cmp ax, 0xffff
je 0x40c1cf
push str.QueryResult
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40c261
or edi, eax
jmp 0x40c274
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
mov edi, eax
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [ebp - 0x18c4]
mov dword [ebp - 0x18c0], edi
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
mov edx, esi
mov ecx, edi
call fcn.0040fe40
jmp case.0x407992.1
test edi, edi
je case.0x407992.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 0x40c354
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.00415e20
jmp case.0x407992.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.00415e20
jmp case.0x407992.1
test edi, edi
je case.0x407992.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 0x40c443
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.00415e20
jmp case.0x407992.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.00415e20
jmp case.0x407992.1
test edi, edi
je case.0x407992.1
movzx eax, word [edi + 4]
push eax
push str.DELETE_MuCastle_NPC_WHERE_MAP_SVR_GROUP___d
push 0x43edd8
mov word [ebp - 0x18c4], 0xcc1
mov byte [ebp - 0x18c2], 0x84
mov word [ebp - 0x18bc], ax
mov dword [ebp - 0x18b8], eax
call fcn.00414560
add esp, 0xc
push dword [0x43ede4]
test al, al
je 0x40c1d5
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp dword [edi + 8], 0
mov dword [ebp - 0x1c], 0
jle 0x40c56f
lea ecx, [edi + 0x25]
mov dword [ebp - 0x2c], ecx
nop dword [eax]
movzx eax, byte [ecx + 1]
push eax
movzx eax, byte [ecx]
push eax
movzx eax, byte [ecx - 1]
push eax
push dword [ecx - 5]
push dword [ecx - 9]
push dword [ecx - 0xd]
push dword [ecx - 0x11]
push dword [ecx - 0x15]
push dword [ecx - 0x19]
push dword [ebp - 0x18b8]
push str.EXEC_WZ_CS_ReqNpcBuy__d___d___d___d___d___d___d___d___d___d
push 0x43edd8
call fcn.00414560
add esp, 0x30
push dword [0x43ede4]
test al, al
je 0x40c1d5
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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 0x40c500
push 0xc
lea eax, [ebp - 0x18c4]
mov dword [ebp - 0x18c0], 1
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
test edi, edi
je case.0x407992.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 0x40c61f
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.00415e20
jmp case.0x407992.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.00415e20
jmp case.0x407992.1
mov edx, esi
mov ecx, edi
call fcn.00410040
jmp case.0x407992.1
mov edx, esi
mov ecx, edi
call fcn.00410260
jmp case.0x407992.1
test edi, edi
je case.0x407992.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 0x40c71b
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.00415e20
jmp case.0x407992.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.00415e20
jmp case.0x407992.1
test edi, edi
je case.0x407992.1
movzx eax, word [edi + 4]
push eax
push str.DELETE_MuCastle_NPC_WHERE_MAP_SVR_GROUP___d
push 0x43edd8
mov word [ebp - 0x18c4], 0xcc1
mov byte [ebp - 0x18c2], 0x89
mov word [ebp - 0x18bc], ax
mov dword [ebp - 0x18b8], eax
call fcn.00414560
add esp, 0xc
push dword [0x43ede4]
test al, al
je 0x40c850
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp dword [edi + 8], 0
mov dword [ebp - 0x1c], 0
jle 0x40c56f
lea ecx, [edi + 0x25]
mov dword [ebp - 0x2c], ecx
nop
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 0x43edd8
call fcn.00414560
add esp, 0x30
push dword [0x43ede4]
test al, al
je 0x40c850
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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 0x40c7e0
jmp 0x40c56f
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [ebp - 0x18c4]
mov dword [ebp - 0x18c0], 0
push eax
push esi
call fcn.00415e20
jmp case.0x407992.1
push dword [ebx + 0xc]
mov ecx, esi
push edi
call fcn.00410530
jmp 0x40c897
push dword [ebx + 0xc]
mov ecx, esi
push edi
call fcn.004059b0
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.00417477
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret