Function at 0x407000
Capabilities:
Enumerate pe sections
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x1a28
call fcn.0042f3a0
mov eax, dword [0x43d008]
xor eax, esp
mov dword [esp + 0x1a24], eax
push esi
mov esi, ecx
mov byte [esp + 0x27], dl
imul eax, esi, 0x68
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x5d5754], eax
movzx eax, byte [esp + 0x2b]
cmp eax, 0xe1
ja case.0x407239.1
movzx eax, byte [eax + 0x40ba20]
jmp dword [eax*4 + 0x40b960]
push str.SELECT_ItemCount_FROM_GameServerInfo_WHERE_Number0
push 0x442698
mov dword [esp + 0x20], 0x10008c1
mov dword [esp + 0x24], 0
call fcn.00413700
add esp, 8
test al, al
je 0x4070e2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4070e2
push str.ItemCount
call fcn.00413990
cmp eax, 0xffffffff
jne 0x4070b1
or eax, eax
jmp 0x4070c2
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push dword [0x4426a4]
mov dword [esp + 0x20], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40712c
push dword [0x4426a4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x4426a4]
call esi
push str.INSERT_INTO_GameServerInfo__Number_ItemCount_ZenCount__VALUES__0_0_0_
push 0x442698
call fcn.00413700
add esp, 8
push dword [0x4426a4]
call edi
push 2
push dword [0x4426a4]
call esi
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
push 8
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00414e90
mov eax, dword [esp + 0x14]
movzx esi, word [edi + 0x38]
movzx edi, word [edi + 4]
lea ecx, [eax + 0x5d5718]
mov eax, dword [esp + 0x10]
add eax, 6
push eax
push 0x32
push ecx
call fcn.0041a083
mov ecx, dword [esp + 0x20]
add esp, 0xc
push esi
push edi
lea eax, [ecx + 0x5d5718]
mov word [ecx + 0x5d574a], di
push eax
push dword [ecx + 0x5d56f4]
mov word [ecx + 0x5d574c], si
push str._ServerManager___d__ServerInfo___s____d____d_
push 0x43dad0
call fcn.00413050
add esp, 0x18
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040bd40
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040c340
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040c740
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040ca10
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
cmp byte [edi], 0xc1
jne 0x407223
mov al, byte [edi + 3]
jmp 0x407226
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x71
ja case.0x407239.1
movzx eax, byte [eax + 0x40bb2c]
jmp dword [eax*4 + 0x40bb04]
push esi
push edi
call fcn.00415e60
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x79c], 0
lea eax, [edi + 0x13]
push 0x5d41a0
push 0
push eax
push 0
push 0x780
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
lea esi, [edi + 8]
mov dword [0x5d41a0], 0x780
push 1
push dword [0x4426a4]
mov dword [esp + 0x3c], esi
jne 0x4072f7
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push esi
push dword [edi + 0x794]
push str.UPDATE_warehouse_SET_Items__Money_d_WHERE_AccountID_s
push 0x442698
call fcn.00413700
add esp, 0x10
push dword [0x4426a4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x4426a4]
call esi
mov edx, dword [esp + 0x10]
push dword [esp + 0x14]
push dword [edx + 0x798]
push str.UPDATE_warehouse_SET_pw_d_WHERE_AccountID_s
push 0x442698
call fcn.00413700
add esp, 0x10
jmp 0x40909a
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [edi + 0x79c]
push esi
push dword [edi + 0x794]
push str.UPDATE_ExtWarehouse_SET_Items__Money_d_WHERE_AccountID_s_AND_Number_d
push 0x442698
call fcn.00413700
add esp, 0x14
jmp 0x4072b4
push edi
call fcn.00415ba0
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 4]
lea edx, [edi + 6]
movq xmm0, qword [edx]
lea ecx, [edi + 0x11]
mov word [esp + 0x25e], ax
movzx eax, word [edx + 8]
mov word [esp + 0x268], ax
mov al, byte [edx + 0xa]
push ecx
mov byte [esp + 0x26e], al
movzx eax, word [ecx + 8]
push edx
movq qword [esp + 0x268], xmm0
movq xmm0, qword [ecx]
mov word [esp + 0x27b], ax
mov al, byte [ecx + 0xa]
push str.SELECT_account_items_targetname_state_FROM_TRADE_X_WHERE_account_s_and_name_s
push 0x442698
mov dword [esp + 0x268], 0x5ac07c2
mov byte [esp + 0x26c], 0x41
movq qword [esp + 0x27b], xmm0
mov byte [esp + 0x285], al
call fcn.00413700
add esp, 0x10
test al, al
je 0x4074ac
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4074ac
push 0x780
lea eax, [esp + 0x287]
push eax
push str.Items
call fcn.00413a10
push str.targetname
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40741b
xorps xmm0, xmm0
mov word [esp + 0x27e], 0
movq qword [esp + 0x276], xmm0
mov byte [esp + 0x280], 0
jmp 0x407438
shl eax, 0xd
push 0xa
add eax, 0x443e7e
push eax
lea eax, [esp + 0x27e]
push 0xb
push eax
call fcn.00420956
add esp, 0x10
push str.state
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40744b
or eax, eax
jmp 0x40745c
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push dword [0x4426a4]
mov byte [esp + 0x286], al
mov byte [esp + 0x285], 1
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x7ac
lea eax, [esp + 0x25c]
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x7ac
lea eax, [esp + 0x25c]
mov byte [esp + 0x285], 0
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 4]
lea edx, [edi + 6]
movq xmm0, qword [edx]
lea ecx, [edi + 0x11]
mov word [esp + 0x19e], ax
movzx eax, word [edx + 8]
mov word [esp + 0x1a8], ax
mov al, byte [edx + 0xa]
push ecx
mov byte [esp + 0x1ae], al
movzx eax, word [ecx + 8]
push edx
movq qword [esp + 0x1a8], xmm0
movq xmm0, qword [ecx]
mov word [esp + 0x1bb], ax
mov al, byte [ecx + 0xa]
push str.SELECT_ElementSlot_FROM_Character_WHERE_AccountID_s_and_Name_s
push 0x442698
mov dword [esp + 0x1a8], 0x53e00c2
mov byte [esp + 0x1ac], 0x51
movq qword [esp + 0x1bb], xmm0
mov byte [esp + 0x1c5], al
call fcn.00413700
add esp, 0x10
test al, al
je 0x4075dc
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4075dc
push 0x20
lea eax, [esp + 0x1ba]
push eax
push str.ElementSlot
call fcn.00413a10
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x3e
lea eax, [esp + 0x19c]
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movaps xmm0, xmmword [0x43a410]
lea eax, [esp + 0x198]
push 0x3e
push eax
push esi
movups xmmword [esp + 0x1c2], xmm0
movups xmmword [esp + 0x1d2], xmm0
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x13]
push eax
lea ecx, [edi + 8]
mov dword [esp + 0x1c], eax
push ecx
push str.SELECT_AccountID_FROM_Character_WHERE_AccountID_s_and_name_s
push 0x442698
mov dword [esp + 0x30], ecx
call fcn.00413700
add esp, 0x10
test al, al
je 0x408b5b
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408b5b
push dword [0x4426a4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x4426a4]
call esi
mov eax, dword [esp + 0x10]
push 0x5d41a0
push 0
add eax, 0x1e
mov dword [0x5d41a0], 0x20
push eax
push 0
push 0x20
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [esp + 0x18]
push dword [esp + 0x24]
push str.UPDATE_Character_SET_ElementSlot__WHERE_AccountID_s_and_name_s
push 0x442698
call fcn.00413700
add esp, 0x10
jmp 0x40909a
movzx eax, word [edi + 4]
lea edx, [edi + 6]
movq xmm0, qword [edx]
lea ecx, [edi + 0x11]
mov word [esp + 0x25e], ax
movzx eax, word [edx + 8]
mov word [esp + 0x268], ax
mov al, byte [edx + 0xa]
push ecx
mov byte [esp + 0x26e], al
movzx eax, word [ecx + 8]
push edx
movq qword [esp + 0x268], xmm0
movq xmm0, qword [ecx]
mov word [esp + 0x27b], ax
mov al, byte [ecx + 0xa]
push str.SELECT__FROM_CHAOS_BOX_GENESIS_WHERE_Account_s_and_Name_s
push 0x442698
mov dword [esp + 0x268], 0x5a807c2
mov byte [esp + 0x26c], 0x60
movq qword [esp + 0x27b], xmm0
mov byte [esp + 0x285], al
call fcn.00413700
add esp, 0x10
test al, al
je 0x40785d
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40785d
push 0x780
lea eax, [esp + 0x284]
push eax
push str.Items
call fcn.00413a10
push str.State
call fcn.00413990
cmp eax, 0xffffffff
jne 0x4077a6
or eax, eax
jmp 0x4077b7
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.SelectedKey
mov byte [esp + 0x27b], al
call fcn.00413990
cmp eax, 0xffffffff
jne 0x4077d1
or eax, eax
jmp 0x4077e2
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.SelectedComb
mov dword [esp + 0x27c], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x4077fc
or eax, eax
jmp 0x40780d
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push dword [0x4426a4]
mov dword [esp + 0x280], eax
mov byte [esp + 0x27a], 1
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x7a8
lea eax, [esp + 0x25c]
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x7a8
lea eax, [esp + 0x25c]
mov byte [esp + 0x27a], 0
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
push edi
call fcn.00403680
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
push 0x5d56d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x5d56d0]
mov ecx, dword [0x5d56cc]
lea eax, [ecx + esi]
test al, 3
jne 0x4078fe
lea eax, [esi + 4]
shr eax, 2
cmp dword [0x5d56c8], eax
ja 0x4078fe
push ecx
call fcn.004145d0
mov esi, dword [0x5d56d0]
mov ecx, dword [0x5d56cc]
mov edx, dword [0x5d56c8]
lea eax, [edx*4 - 1]
and ecx, eax
lea eax, [edx - 1]
add esi, ecx
mov dword [0x5d56cc], ecx
mov ecx, esi
shr ecx, 2
and ecx, eax
lea eax, [ecx*4]
mov ecx, dword [0x5d56c4]
mov dword [esp + 0x14], eax
cmp dword [ecx + eax], 0
jne 0x407955
push 0x10
call fcn.00416699
mov ecx, dword [0x5d56c4]
add esp, 4
mov edx, dword [esp + 0x14]
mov dword [ecx + edx], eax
mov eax, edx
mov ecx, dword [0x5d56c4]
mov ecx, dword [ecx + eax]
and esi, 3
mov eax, dword [edi + 4]
push 0x5d56d8
mov dword [ecx + esi*4], eax
inc dword [0x5d56d0]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040d170
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040d3b0
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040d580
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
cmp byte [edi], 0xc1
lea ecx, [edi + 4]
mov dword [esp + 0x20], ecx
jne 0x4079ee
mov al, byte [edi + 3]
jmp 0x4079f0
mov al, byte [ecx]
movzx eax, al
cmp eax, 0x52
ja case.0x407239.1
movzx eax, byte [eax + 0x40bbb8]
jmp dword [eax*4 + 0x40bba0]
push esi
push edi
call fcn.00413b60
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_QuestKillCount_WHERE_Name_s
push 0x442698
mov dword [esp + 0x20], eax
call fcn.00413700
add esp, 0xc
test al, al
je 0x407ab3
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407ab3
push dword [0x4426a4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x4426a4]
call esi
mov eax, dword [esp + 0x10]
push dword [esp + 0x14]
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 0x442698
call fcn.00413700
add esp, 0x38
jmp 0x40909a
push dword [0x4426a4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x4426a4]
call esi
mov eax, dword [esp + 0x10]
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 [esp + 0x40]
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 0x442698
call fcn.00413700
add esp, 0x38
jmp 0x40909a
push 0x5d41a0
push 0
lea eax, [edi + 0x24]
mov dword [0x5d41a0], 0x10
push eax
push 0
push 0x10
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x4426a4]
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 0x442698
call fcn.00413700
add esp, 0x28
jmp 0x408b5b
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 0x442698
call fcn.00413700
add esp, 0x14
test al, al
je 0x408b5b
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408b5b
push dword [0x4426a4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x4426a4]
call esi
mov edx, dword [esp + 0x10]
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 0x442698
call fcn.00413700
add esp, 0x14
jmp 0x40909a
lea eax, [edi + 0xf]
push eax
push ecx
push str.SELECT__FROM_OFF_TRADE_SYSTEM_WHERE_Account_s_and_Name_s
push 0x442698
mov dword [esp + 0x28], eax
call fcn.00413700
add esp, 0x10
test al, al
je 0x408b5b
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408b5b
push dword [0x4426a4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x4426a4]
call esi
push dword [esp + 0x18]
mov eax, dword [esp + 0x24]
push eax
push str.DELETE_FROM_OFF_TRADE_SYSTEM_WHERE_Account_s_and_Name_s
push 0x442698
call fcn.00413700
add esp, 0x10
jmp 0x40909a
cmp byte [edi], 0xc1
jne 0x407c78
mov al, byte [edi + 3]
jmp 0x407c7b
mov al, byte [edi + 4]
movzx eax, al
add eax, 0xfffffffd
cmp eax, 0x41
ja case.0x407239.1
movzx eax, byte [eax + 0x40bc38]
jmp dword [eax*4 + 0x40bc0c]
push dword [edi + 4]
push str.DELETE_FROM_PeriodicItem_WHERE_ItemSerial_d
push 0x442698
call fcn.00413700
add esp, 0xc
jmp 0x408b5b
push esi
push edi
call fcn.00411380
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x13], 0
mov edx, 0x14
movzx eax, word [edi + 6]
movq xmm0, qword [edi + 8]
mov word [esp + 0x166], ax
movzx eax, word [edi + 0x10]
mov word [esp + 0x170], ax
mov al, byte [edi + 0x12]
mov byte [esp + 0x160], 0xc2
mov word [esp + 0x163], 0x518
mov dword [esp + 0x10], edx
movq qword [esp + 0x168], xmm0
mov byte [esp + 0x172], al
mov byte [esp + 0x173], 0
mov dword [esp + 0x18], 0
jbe 0x407e48
lea eax, [esp + 0x26c]
mov dword [esp + 0x20], eax
lea esi, [edi + 0x18]
push dword [esi]
push str.SELECT_Time_FROM_PeriodicItem_WHERE_ItemSerial_d
push 0x442698
call fcn.00413700
add esp, 0xc
test al, al
je 0x407dd0
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407dd0
mov al, byte [esi - 4]
mov byte [esp + 0x210], al
mov eax, dword [esi]
push str.Time
mov dword [esp + 0x218], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x407d9b
or eax, eax
mov dword [esp + 0x204], 0xffffffff
jmp 0x407dac
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041aca4
add esp, 4
push dword [0x4426a4]
mov dword [esp + 0x18], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esp + 0x14]
jmp 0x407dff
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [esp + 0x210], al
mov eax, dword [esi]
mov dword [esp + 0x214], eax
xor eax, eax
mov ecx, dword [esp + 0x20]
add esi, 8
movq xmm0, qword [esp + 0x210]
mov edx, dword [esp + 0x10]
inc byte [esp + 0x173]
add edx, 0xc
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
add ecx, 0xc
movzx eax, byte [edi + 0x13]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
cmp ecx, eax
jl 0x407d40
mov esi, dword [esp + 0x24]
mov eax, edx
mov byte [esp + 0x162], dl
shr eax, 8
mov byte [esp + 0x161], al
mov eax, dword [esp + 0x170]
movups xmm0, xmmword [esp + 0x160]
mov dword [esp + 0x268], eax
lea eax, [esp + 0x258]
push edx
push eax
push esi
movups xmmword [esp + 0x264], xmm0
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x13], 0
mov edx, 0x14
movzx eax, word [edi + 6]
movq xmm0, qword [edi + 8]
mov word [esp + 0x166], ax
movzx eax, word [edi + 0x10]
mov word [esp + 0x170], ax
mov al, byte [edi + 0x12]
mov byte [esp + 0x160], 0xc2
mov word [esp + 0x163], 0x618
mov dword [esp + 0x20], edx
movq qword [esp + 0x168], xmm0
mov byte [esp + 0x172], al
mov byte [esp + 0x173], 0
mov dword [esp + 0x10], 0
jbe 0x40801c
lea eax, [esp + 0x26c]
mov dword [esp + 0x14], eax
lea esi, [edi + 0x18]
nop
push dword [esi]
push str.SELECT_Time_FROM_PeriodicItem_WHERE_ItemSerial_d
push 0x442698
call fcn.00413700
add esp, 0xc
test al, al
je 0x407fa4
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407fa4
mov al, byte [esi - 4]
mov byte [esp + 0x210], al
mov eax, dword [esi]
push str.Time
mov dword [esp + 0x218], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x407f6f
or eax, eax
mov dword [esp + 0x204], 0xffffffff
jmp 0x407f80
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041aca4
add esp, 4
push dword [0x4426a4]
mov dword [esp + 0x1c], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esp + 0x18]
jmp 0x407fd3
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [esp + 0x210], al
mov eax, dword [esi]
mov dword [esp + 0x214], eax
xor eax, eax
mov ecx, dword [esp + 0x14]
add esi, 8
movq xmm0, qword [esp + 0x210]
mov edx, dword [esp + 0x20]
inc byte [esp + 0x173]
add edx, 0xc
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
add ecx, 0xc
movzx eax, byte [edi + 0x13]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x407f10
mov esi, dword [esp + 0x24]
mov eax, edx
mov byte [esp + 0x162], dl
shr eax, 8
mov byte [esp + 0x161], al
mov eax, dword [esp + 0x170]
movups xmm0, xmmword [esp + 0x160]
mov dword [esp + 0x268], eax
lea eax, [esp + 0x258]
push edx
push eax
push esi
movups xmmword [esp + 0x264], xmm0
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x13], 0
mov dword [esp + 0x18], 0
jbe case.0x407239.1
lea esi, [edi + 0x14]
nop word [eax + eax]
push dword [esi]
push str.SELECT_ItemSerial_FROM_PeriodicItem_WHERE_ItemSerial_d
push 0x442698
call fcn.00413700
add esp, 0xc
test al, al
je 0x4080e0
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4080e0
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [esi]
push dword [esi + 4]
push str.UPDATE_PeriodicItem_SET_Time_d_WHERE_ItemSerial_d
jmp 0x408104
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [esi + 4]
push dword [esi]
push str.INSERT_INTO_PeriodicItem__ItemSerial_Time__VALUES___d__d_
push 0x442698
call fcn.00413700
add esp, 0x10
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [esp + 0x18]
add esi, 8
movzx eax, byte [edi + 0x13]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, eax
jl 0x408090
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x13], 0
mov ecx, 0x14
movzx eax, word [edi + 6]
movq xmm0, qword [edi + 8]
mov word [esp + 0x166], ax
movzx eax, word [edi + 0x10]
mov word [esp + 0x170], ax
mov al, byte [edi + 0x12]
mov byte [esp + 0x160], 0xc2
mov word [esp + 0x163], 0x4018
mov dword [esp + 0x20], ecx
movq qword [esp + 0x168], xmm0
mov byte [esp + 0x172], al
mov byte [esp + 0x173], 0
mov dword [esp + 0x10], 0
jbe 0x408303
lea eax, [esp + 0x26c]
mov dword [esp + 0x14], eax
lea esi, [edi + 0x18]
nop word [eax + eax]
push dword [esi]
push str.SELECT_Deaths_FROM_DeathSystem_WHERE_m_Serial_d
push 0x442698
call fcn.00413700
add esp, 0xc
test al, al
je 0x408251
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408251
mov al, byte [esi - 4]
mov byte [esp + 0x210], al
mov eax, dword [esi]
push str.Deaths
mov dword [esp + 0x1c], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40821d
or eax, eax
jmp 0x40822e
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push dword [0x4426a4]
mov dword [esp + 0x218], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x4082b6
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_DeathSystem___m_Serial____Deaths___VALUES___d_0_
push 0x442698
call fcn.00413700
add esp, 0x10
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [esp + 0x210], al
mov eax, dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x214], 0
mov eax, dword [esp + 0x14]
add esi, 8
movq xmm0, qword [esp + 0x210]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
inc byte [esp + 0x173]
inc edx
movq qword [eax], xmm0
mov dword [eax + 8], ecx
add eax, 0xc
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
add ecx, 0xc
movzx eax, byte [edi + 0x13]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], edx
cmp edx, eax
jl 0x4081d0
mov esi, dword [esp + 0x24]
mov eax, ecx
mov byte [esp + 0x162], cl
shr eax, 8
mov byte [esp + 0x161], al
mov eax, dword [esp + 0x170]
movups xmm0, xmmword [esp + 0x160]
mov dword [esp + 0x268], eax
lea eax, [esp + 0x258]
push ecx
push eax
push esi
movups xmmword [esp + 0x264], xmm0
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x13], 0
mov ecx, 0x14
movzx eax, word [edi + 6]
movq xmm0, qword [edi + 8]
mov word [esp + 0x166], ax
movzx eax, word [edi + 0x10]
mov word [esp + 0x170], ax
mov al, byte [edi + 0x12]
mov byte [esp + 0x160], 0xc2
mov word [esp + 0x163], 0x4118
mov dword [esp + 0x20], ecx
movq qword [esp + 0x168], xmm0
mov byte [esp + 0x172], al
mov byte [esp + 0x173], 0
mov dword [esp + 0x10], 0
jbe 0x408503
lea eax, [esp + 0x26c]
mov dword [esp + 0x14], eax
lea esi, [edi + 0x18]
nop word [eax + eax]
push dword [esi]
push str.SELECT_Deaths_FROM_DeathSystem_WHERE_m_Serial_d
push 0x442698
call fcn.00413700
add esp, 0xc
test al, al
je 0x408451
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408451
mov al, byte [esi - 4]
mov byte [esp + 0x210], al
mov eax, dword [esi]
push str.Deaths
mov dword [esp + 0x1c], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40841d
or eax, eax
jmp 0x40842e
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push dword [0x4426a4]
mov dword [esp + 0x218], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x4084b6
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_DeathSystem___m_Serial____Deaths___VALUES___d_0_
push 0x442698
call fcn.00413700
add esp, 0x10
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [esp + 0x210], al
mov eax, dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x214], 0
mov eax, dword [esp + 0x14]
add esi, 8
movq xmm0, qword [esp + 0x210]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
inc byte [esp + 0x173]
inc edx
movq qword [eax], xmm0
mov dword [eax + 8], ecx
add eax, 0xc
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
add ecx, 0xc
movzx eax, byte [edi + 0x13]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], edx
cmp edx, eax
jl 0x4083d0
mov esi, dword [esp + 0x24]
mov eax, ecx
mov byte [esp + 0x162], cl
shr eax, 8
mov byte [esp + 0x161], al
mov eax, dword [esp + 0x170]
movups xmm0, xmmword [esp + 0x160]
mov dword [esp + 0x268], eax
lea eax, [esp + 0x258]
push ecx
push eax
push esi
movups xmmword [esp + 0x264], xmm0
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
mov al, byte [edi + 0x10]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
cmp al, 1
jne 0x408595
push dword [edi + 8]
push dword [edi + 0xc]
push str.UPDATE_DeathSystem_SET_DeathsDeaths_d_where_m_Serial_d
push 0x442698
call fcn.00413700
add esp, 0x10
push dword [0x4426a4]
call esi
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [edi + 0x10]
cmp al, 2
jne case.0x407239.1
push dword [edi + 8]
push dword [edi + 0xc]
push str.UPDATE_DeathSystem_SET_DeathsDeaths__d_where_m_Serial_d
push 0x442698
call fcn.00413700
add esp, 0x10
push dword [0x4426a4]
call esi
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x13], 0
mov ecx, 0x14
movzx eax, word [edi + 6]
movq xmm0, qword [edi + 8]
mov word [esp + 0x166], ax
movzx eax, word [edi + 0x10]
mov word [esp + 0x170], ax
mov al, byte [edi + 0x12]
mov byte [esp + 0x160], 0xc2
mov word [esp + 0x163], 0x4318
mov dword [esp + 0x20], ecx
movq qword [esp + 0x168], xmm0
mov byte [esp + 0x172], al
mov byte [esp + 0x173], 0
mov dword [esp + 0x10], 0
jbe 0x408785
lea eax, [esp + 0x26c]
mov dword [esp + 0x14], eax
lea esi, [edi + 0x18]
push dword [esi]
push str.SELECT_Deaths_FROM_DeathSystem_WHERE_m_Serial_d
push 0x442698
call fcn.00413700
add esp, 0xc
test al, al
je 0x4086d3
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4086d3
mov al, byte [esi - 4]
mov byte [esp + 0x210], al
mov eax, dword [esi]
push str.Deaths
mov dword [esp + 0x1c], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40869f
or eax, eax
jmp 0x4086b0
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push dword [0x4426a4]
mov dword [esp + 0x218], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x408738
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_DeathSystem___m_Serial____Deaths___VALUES___d_0_
push 0x442698
call fcn.00413700
add esp, 0x10
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [esp + 0x210], al
mov eax, dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x214], 0
mov eax, dword [esp + 0x14]
add esi, 8
movq xmm0, qword [esp + 0x210]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
inc byte [esp + 0x173]
inc edx
movq qword [eax], xmm0
mov dword [eax + 8], ecx
add eax, 0xc
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
add ecx, 0xc
movzx eax, byte [edi + 0x13]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], edx
cmp edx, eax
jl 0x408652
mov esi, dword [esp + 0x24]
mov eax, ecx
mov byte [esp + 0x162], cl
shr eax, 8
mov byte [esp + 0x161], al
mov eax, dword [esp + 0x170]
movups xmm0, xmmword [esp + 0x160]
mov dword [esp + 0x268], eax
lea eax, [esp + 0x258]
push ecx
push eax
push esi
movups xmmword [esp + 0x264], xmm0
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x13], 0
mov ecx, 0x14
movzx eax, word [edi + 6]
movq xmm0, qword [edi + 8]
mov word [esp + 0x166], ax
movzx eax, word [edi + 0x10]
mov word [esp + 0x170], ax
mov al, byte [edi + 0x12]
mov byte [esp + 0x160], 0xc2
mov word [esp + 0x163], 0x4418
mov dword [esp + 0x20], ecx
movq qword [esp + 0x168], xmm0
mov byte [esp + 0x172], al
mov byte [esp + 0x173], 0
mov dword [esp + 0x10], 0
jbe 0x408983
lea eax, [esp + 0x26c]
mov dword [esp + 0x14], eax
lea esi, [edi + 0x18]
nop dword [eax]
push dword [esi]
push str.SELECT_Deaths_FROM_DeathSystem_WHERE_m_Serial_d
push 0x442698
call fcn.00413700
add esp, 0xc
test al, al
je 0x4088d1
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4088d1
mov al, byte [esi - 4]
mov byte [esp + 0x210], al
mov eax, dword [esi]
push str.Deaths
mov dword [esp + 0x1c], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40889d
or eax, eax
jmp 0x4088ae
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push dword [0x4426a4]
mov dword [esp + 0x218], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x408936
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_DeathSystem___m_Serial____Deaths___VALUES___d_0_
push 0x442698
call fcn.00413700
add esp, 0x10
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [esp + 0x210], al
mov eax, dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x214], 0
mov eax, dword [esp + 0x14]
add esi, 8
movq xmm0, qword [esp + 0x210]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
inc byte [esp + 0x173]
inc edx
movq qword [eax], xmm0
mov dword [eax + 8], ecx
add eax, 0xc
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
add ecx, 0xc
movzx eax, byte [edi + 0x13]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], edx
cmp edx, eax
jl 0x408850
mov esi, dword [esp + 0x24]
mov eax, ecx
mov byte [esp + 0x162], cl
shr eax, 8
mov byte [esp + 0x161], al
mov eax, dword [esp + 0x170]
movups xmm0, xmmword [esp + 0x160]
mov dword [esp + 0x268], eax
lea eax, [esp + 0x258]
push ecx
push eax
push esi
movups xmmword [esp + 0x264], xmm0
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
cmp byte [edi], 0xc1
jne 0x4089e1
mov al, byte [edi + 3]
jmp 0x4089e4
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x31
ja case.0x407239.1
movzx eax, byte [eax + 0x40bc90]
jmp dword [eax*4 + 0x40bc7c]
movzx eax, word [edi + 4]
lea ecx, [edi + 6]
movq xmm0, qword [ecx]
mov word [esp + 0x164], ax
movzx eax, word [ecx + 8]
mov word [esp + 0x16e], ax
mov al, byte [ecx + 0xa]
mov byte [esp + 0x170], al
mov eax, dword [edi + 0x14]
push ecx
mov dword [esp + 0x178], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x17c], eax
mov eax, dword [edi + 0x1c]
push str.SELECT__FROM_MEMB_INFO_WHERE_memb___id_s
push 0x442698
mov dword [esp + 0x16c], 0x21924c1
movq qword [esp + 0x172], xmm0
mov dword [esp + 0x188], eax
call fcn.00413700
add esp, 0xc
test al, al
je 0x408aeb
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408aeb
push str.cash
call fcn.00413990
cmp eax, 0xffffffff
jne 0x408a95
or eax, eax
jmp 0x408aa6
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push dword [0x4426a4]
mov dword [esp + 0x184], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x24
lea eax, [esp + 0x164]
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x24
lea eax, [esp + 0x164]
mov dword [esp + 0x184], 0
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
lea eax, [edi + 6]
push eax
push dword [edi + 0x14]
push str.UPDATE_MEMB_INFO_SET_cashcash_d_WHERE_memb___id_s
jmp 0x408b4e
lea eax, [edi + 6]
push eax
push dword [edi + 0x14]
push str.UPDATE_MEMB_INFO_SET_cashcash__d_WHERE_memb___id_s
push 0x442698
call fcn.00413700
add esp, 0x10
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
mov ax, word [edi + 4]
mov cl, 0x10
mov word [esp + 0x214], ax
mov eax, dword [edi + 8]
mov dword [esp + 0x218], eax
mov eax, dword [edi + 0xc]
xor edi, edi
mov word [esp + 0x210], 0x10c1
xor esi, esi
mov byte [esp + 0x212], 0x1e
mov dword [esp + 0x21c], eax
mov eax, dword [esi + 0x5d56f4]
test eax, eax
js 0x408bfb
cmp eax, 0x14
jge 0x408bfb
cmp dword [esi + 0x5d56f8], 0
je 0x408bfb
cmp dword [esi + 0x5d570c], 0xffffffff
je 0x408bfb
movzx eax, cl
push eax
lea eax, [esp + 0x214]
push eax
push edi
call fcn.00414e90
mov cl, byte [esp + 0x211]
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x408bc1
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 4]
push eax
push str.EXEC_WZ_CW_InfoLoad__d
push 0x442698
mov word [esp + 0x21c], 0x10c1
mov byte [esp + 0x21e], 0x1f
mov word [esp + 0x220], ax
call fcn.00413700
add esp, 0xc
test al, al
je 0x408cfe
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408cfe
push str.CRYWOLF_STATE
call fcn.00413990
cmp eax, 0xffffffff
jne 0x408c7d
or eax, eax
jmp 0x408c8e
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push str.CRYWOLF_OCCUFY
mov dword [esp + 0x21c], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x408ca8
or eax, eax
jmp 0x408cb9
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
push dword [0x4426a4]
mov dword [esp + 0x220], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [esp + 0x214]
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [esp + 0x214]
mov dword [esp + 0x21c], 0
push eax
push esi
mov dword [esp + 0x228], 0
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
movq xmm0, qword [edi + 7]
mov cl, 0x4e
movzx eax, word [edi + 4]
movq qword [esp + 0x19f], xmm0
movups xmm0, xmmword [edi + 0x12]
mov word [esp + 0x19c], ax
mov al, byte [edi + 6]
movups xmmword [esp + 0x1aa], xmm0
mov byte [esp + 0x19e], al
movups xmm0, xmmword [edi + 0x22]
movzx eax, word [edi + 0xf]
mov word [esp + 0x1a7], ax
mov al, byte [edi + 0x11]
movups xmmword [esp + 0x1ba], xmm0
mov byte [esp + 0x1a9], al
movups xmm0, xmmword [edi + 0x32]
mov eax, dword [edi + 0x4a]
mov word [esp + 0x198], 0x4ec1
movups xmmword [esp + 0x1ca], xmm0
mov byte [esp + 0x19a], 0x20
movq xmm0, qword [edi + 0x42]
xor edi, edi
movq qword [esp + 0x1da], xmm0
xor esi, esi
mov dword [esp + 0x1e2], eax
mov eax, dword [esi + 0x5d56f4]
test eax, eax
js 0x408e1a
cmp eax, 0x14
jge 0x408e1a
cmp dword [esi + 0x5d56f8], 0
je 0x408e1a
cmp dword [esi + 0x5d570c], 0xffffffff
je 0x408e1a
movzx eax, cl
push eax
lea eax, [esp + 0x19c]
push eax
push edi
call fcn.00414e90
mov cl, byte [esp + 0x199]
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x408de0
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 4]
lea esi, [edi + 0x11]
mov word [esp + 0x25c], ax
mov ecx, 0x20
mov al, byte [edi + 6]
mov byte [esp + 0x25e], al
mov al, byte [edi + 7]
mov byte [esp + 0x25f], al
mov al, byte [edi + 8]
mov byte [esp + 0x260], al
movzx eax, word [edi + 0xa]
mov word [esp + 0x262], ax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x264], eax
mov al, byte [edi + 0x10]
lea edi, [esp + 0x269]
mov word [esp + 0x258], 0x94c1
mov byte [esp + 0x25a], 0x21
mov byte [esp + 0x268], al
rep movsd dword es:[edi], dword [esi]
xor edi, edi
xor esi, esi
nop dword [eax + eax]
mov eax, dword [esi + 0x5d56f4]
test eax, eax
js 0x408ee8
cmp eax, 0x14
jge 0x408ee8
cmp dword [esi + 0x5d56f8], 0
je 0x408ee8
cmp dword [esi + 0x5d570c], 0xffffffff
je 0x408ee8
movzx eax, byte [esp + 0x259]
push eax
lea eax, [esp + 0x25c]
push eax
push edi
call fcn.00414e90
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x408eb0
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0040d7c0
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
push 0x5d41a0
push 0
lea eax, [edi + 0x1c]
mov dword [0x5d41a0], 0x6c0
push eax
push 0
push 0x6c0
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
lea eax, [edi + 0x11]
push eax
lea eax, [edi + 6]
push eax
push str.UPDATE_Character_SET_Inventory__WHERE_AccountID_s_AND_Name_s
jmp 0x408b4e
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_OptionData_WHERE_Name_s
push 0x442698
mov dword [esp + 0x24], eax
call fcn.00413700
add esp, 0xc
test al, al
je 0x409018
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409018
push dword [0x4426a4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x4426a4]
call esi
mov eax, dword [esp + 0x10]
push 0x5d41a0
push 0
add eax, 0x1c
mov dword [0x5d41a0], 0xa
push eax
push 0
push 0xa
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push eax
movzx eax, byte [ecx + 0x2a]
push eax
movzx eax, byte [ecx + 0x29]
push eax
movzx eax, byte [ecx + 0x28]
push eax
movzx eax, byte [ecx + 0x27]
push eax
movzx eax, byte [ecx + 0x26]
push eax
push str.UPDATE_OptionData_SET_SkillKey__GameOption_d_Qkey_d_Wkey_d_Ekey_d_ChatWindow_d_WHERE_Name_s
jmp 0x40908d
push dword [0x4426a4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x4426a4]
call esi
mov eax, dword [esp + 0x10]
push 0x5d41a0
push 0
add eax, 0x1c
mov dword [0x5d41a0], 0xa
push eax
push 0
push 0xa
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov ecx, dword [esp + 0x10]
movzx eax, byte [ecx + 0x2a]
push eax
movzx eax, byte [ecx + 0x29]
push eax
movzx eax, byte [ecx + 0x28]
push eax
movzx eax, byte [ecx + 0x27]
push eax
movzx eax, byte [ecx + 0x26]
push eax
lea eax, [ecx + 0x11]
push eax
push str.INSERT_INTO_OptionData__Name_SkillKey_GameOption_Qkey_Wkey_Ekey_ChatWindow__VALUES___s____d__d__d__d__d_
push 0x442698
call fcn.00413700
add esp, 0x20
push dword [0x4426a4]
call edi
push 2
push dword [0x4426a4]
call esi
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x11], 0
mov dword [esp + 0x18], 0
jbe case.0x407239.1
lea esi, [edi + 0x16]
nop word [eax + eax]
push dword [esi - 4]
push str.SELECT_ItemSerial_FROM_T_PetItem_Info_WHERE_ItemSerial_d
push 0x442698
call fcn.00413700
add esp, 0xc
test al, al
je 0x409136
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409136
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
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 0x40915f
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
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 0x442698
call fcn.00413700
add esp, 0x14
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [esp + 0x18]
add esi, 0xc
movzx eax, byte [edi + 0x11]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, eax
jl 0x4090e0
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
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 0x442698
call fcn.00413700
add esp, 0x20
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x408b5b
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 0x442698
call fcn.00413700
add esp, 0x24
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x408b5b
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingDuel_WHERE_Name_s
push 0x442698
mov dword [esp + 0x24], eax
call fcn.00413700
add esp, 0xc
test al, al
je 0x409297
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409297
push dword [0x4426a4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x4426a4]
call esi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push eax
push dword [edx + 0x20]
push dword [edx + 0x1c]
push str.UPDATE_RankingDuel_SET_WinScoreWinScore_d_LoseScoreLoseScore_d_WHERE_Name_s
push 0x442698
call fcn.00413700
add esp, 0x14
jmp 0x40909a
push dword [0x4426a4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x4426a4]
call esi
mov edx, dword [esp + 0x10]
push dword [edx + 0x20]
lea eax, [edx + 0x11]
push dword [edx + 0x1c]
push eax
push str.INSERT_INTO_RankingDuel__Name_WinScore_LoseScore__VALUES___s__d__d_
push 0x442698
call fcn.00413700
add esp, 0x14
jmp 0x40909a
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingBloodCastle_WHERE_Name_s
push 0x442698
mov dword [esp + 0x24], eax
call fcn.00413700
add esp, 0xc
test al, al
je 0x40934b
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40934b
push dword [0x4426a4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x4426a4]
call esi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push eax
push dword [edx + 0x1c]
push str.UPDATE_RankingBloodCastle_SET_ScoreScore_d_WHERE_Name_s
push 0x442698
call fcn.00413700
add esp, 0x10
jmp 0x40909a
push dword [0x4426a4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x4426a4]
call esi
mov edx, dword [esp + 0x10]
push dword [edx + 0x1c]
lea eax, [edx + 0x11]
push eax
push str.INSERT_INTO_RankingBloodCastle__Name_Score__VALUES___s__d_
push 0x442698
call fcn.00413700
add esp, 0x10
jmp 0x40909a
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingChaosCastle_WHERE_Name_s
push 0x442698
mov dword [esp + 0x24], eax
call fcn.00413700
add esp, 0xc
test al, al
je 0x4093fc
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4093fc
push dword [0x4426a4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x4426a4]
call esi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push eax
push dword [edx + 0x1c]
push str.UPDATE_RankingChaosCastle_SET_ScoreScore_d_WHERE_Name_s
push 0x442698
call fcn.00413700
add esp, 0x10
jmp 0x40909a
push dword [0x4426a4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x4426a4]
call esi
mov edx, dword [esp + 0x10]
push dword [edx + 0x1c]
lea eax, [edx + 0x11]
push eax
push str.INSERT_INTO_RankingChaosCastle__Name_Score__VALUES___s__d_
push 0x442698
call fcn.00413700
add esp, 0x10
jmp 0x40909a
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingDevilSquare_WHERE_Name_s
push 0x442698
mov dword [esp + 0x24], eax
call fcn.00413700
add esp, 0xc
test al, al
je 0x4094ad
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4094ad
push dword [0x4426a4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x4426a4]
call esi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push eax
push dword [edx + 0x1c]
push str.UPDATE_RankingDevilSquare_SET_ScoreScore_d_WHERE_Name_s
push 0x442698
call fcn.00413700
add esp, 0x10
jmp 0x40909a
push dword [0x4426a4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x4426a4]
call esi
mov edx, dword [esp + 0x10]
push dword [edx + 0x1c]
lea eax, [edx + 0x11]
push eax
push str.INSERT_INTO_RankingDevilSquare__Name_Score__VALUES___s__d_
push 0x442698
call fcn.00413700
add esp, 0x10
jmp 0x40909a
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingIllusionTemple_WHERE_Name_s
push 0x442698
mov dword [esp + 0x24], eax
call fcn.00413700
add esp, 0xc
test al, al
je 0x40955e
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40955e
push dword [0x4426a4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x4426a4]
call esi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push eax
push dword [edx + 0x1c]
push str.UPDATE_RankingIllusionTemple_SET_ScoreScore_d_WHERE_Name_s
push 0x442698
call fcn.00413700
add esp, 0x10
jmp 0x40909a
push dword [0x4426a4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x4426a4]
call esi
mov edx, dword [esp + 0x10]
push dword [edx + 0x1c]
lea eax, [edx + 0x11]
push eax
push str.INSERT_INTO_RankingIllusionTemple__Name_Score__VALUES___s__d_
push 0x442698
call fcn.00413700
add esp, 0x10
jmp 0x40909a
lea eax, [edi + 6]
push eax
movzx eax, byte [edi + 0x11]
push eax
push str.UPDATE_AccountCharacter_SET_ExtClass_d_WHERE_Id_s
jmp 0x408b4e
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 0x442698
call fcn.00413700
add esp, 0x14
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x408b5b
push dword [edi + 0x28]
lea eax, [edi + 0x11]
push dword [edi + 0x24]
push dword [edi + 0x20]
push dword [edi + 0x1c]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_CustomMonsterReward__s__s__d__d__d__d
jmp 0x4091cb
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 0x442698
call fcn.00413700
add esp, 0x1c
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x408b5b
lea esi, [edi + 0x11]
push esi
lea eax, [esp + 0x164]
push eax
call fcn.00403910
test al, al
jne case.0x407239.1
push esi
lea eax, [esp + 0x164]
push 0xb
push eax
call fcn.0041a083
add esp, 0xc
lea eax, [edi + 6]
push eax
lea eax, [esp + 0x16f]
push 0xb
push eax
call fcn.0041a083
mov ax, word [edi + 4]
sub esp, 0x10
movups xmm0, xmmword [esp + 0x17c]
mov word [esp + 0x192], ax
mov eax, dword [esp + 0x30]
mov dx, word [eax + 0x5d574c]
mov eax, esp
mov word [esp + 0x194], dx
movups xmmword [eax], xmm0
movq xmm0, qword [esp + 0x18c]
movq qword [eax + 0x10], xmm0
mov word [eax + 0x18], dx
call fcn.00403a80
xor dl, dl
mov ecx, esi
call fcn.00406330
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040da50
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 4]
movq xmm0, qword [edi + 6]
mov word [esp + 0x19c], ax
movzx eax, word [edi + 0xe]
mov word [esp + 0x1a6], ax
mov al, byte [edi + 0x10]
mov byte [esp + 0x1a8], al
movzx eax, word [edi + 0x19]
mov word [esp + 0x1b1], ax
mov al, byte [edi + 0x1b]
mov byte [esp + 0x1b3], al
lea eax, [edi + 0x1c]
push eax
movq qword [esp + 0x1a2], xmm0
lea eax, [esp + 0x164]
movq xmm0, qword [edi + 0x11]
push eax
mov word [esp + 0x1a0], 0x64c1
mov byte [esp + 0x1a2], 0x72
movq qword [esp + 0x1b1], xmm0
call fcn.00403910
test al, al
jne 0x409777
mov byte [esp + 0x1b4], al
jmp 0x4098c0
movq xmm0, qword [esp + 0x16b]
xor edx, edx
movzx eax, word [esp + 0x176]
movq qword [esp + 0x25e], xmm0
movq xmm0, qword [esp + 0x160]
mov word [esp + 0x25c], ax
movzx eax, word [esp + 0x173]
movq qword [esp + 0x269], xmm0
movq xmm0, qword [edi + 0x11]
mov word [esp + 0x266], ax
mov al, byte [esp + 0x175]
movq qword [esp + 0x274], xmm0
movups xmm0, xmmword [edi + 0x27]
mov byte [esp + 0x268], al
movzx eax, word [esp + 0x168]
mov word [esp + 0x271], ax
mov al, byte [esp + 0x16a]
movups xmmword [esp + 0x27f], xmm0
mov byte [esp + 0x273], al
movups xmm0, xmmword [edi + 0x37]
movzx eax, word [edi + 0x19]
mov word [esp + 0x27c], ax
mov al, byte [edi + 0x1b]
movups xmmword [esp + 0x28f], xmm0
mov byte [esp + 0x27e], al
movups xmm0, xmmword [edi + 0x47]
mov eax, dword [edi + 0x5f]
mov dword [esp + 0x2b7], eax
xor eax, eax
movups xmmword [esp + 0x29f], xmm0
mov byte [esp + 0x1b4], 1
movq xmm0, qword [edi + 0x57]
mov word [esp + 0x258], 0x64c1
mov byte [esp + 0x25a], 0x73
movq qword [esp + 0x2af], xmm0
mov ecx, dword [eax + 0x5d56f4]
test ecx, ecx
js 0x409897
cmp ecx, 0x14
jge 0x409897
cmp dword [eax + 0x5d56f8], 0
je 0x409897
cmp dword [eax + 0x5d570c], 0xffffffff
je 0x409897
mov cx, word [esp + 0x178]
cmp word [eax + 0x5d574c], cx
je 0x4098a4
add eax, 0x68
inc edx
cmp eax, 0x820
jl 0x409865
jmp 0x4098c0
imul eax, edx, 0x68
add eax, 0x5d56f0
je 0x4098c0
push 0x64
lea ecx, [esp + 0x25c]
push ecx
push dword [eax + 4]
call fcn.00414e90
movq xmm0, qword [edi + 0x1c]
mov ax, word [edi + 0x24]
movq qword [esp + 0x1b5], xmm0
movups xmm0, xmmword [edi + 0x27]
mov word [esp + 0x1bd], ax
mov al, byte [edi + 0x26]
movups xmmword [esp + 0x1c0], xmm0
mov byte [esp + 0x1bf], al
movups xmm0, xmmword [edi + 0x37]
mov eax, dword [edi + 0x5f]
mov dword [esp + 0x1f8], eax
lea eax, [esp + 0x198]
movups xmmword [esp + 0x1d0], xmm0
push 0x64
movups xmm0, xmmword [edi + 0x47]
push eax
push esi
movups xmmword [esp + 0x1ec], xmm0
movq xmm0, qword [edi + 0x57]
movq qword [esp + 0x1fc], xmm0
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
cmp byte [edi], 0xc1
jne 0x40994e
mov al, byte [edi + 3]
jmp 0x409951
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x1b
ja case.0x407239.1
jmp dword [eax*4 + 0x40bcc4]
movzx eax, word [edi + 4]
lea ecx, [esp + 0x160]
push ecx
push dword [edi + 8]
mov dword [esp + 0x1a0], 0x8038c1
push eax
mov word [esp + 0x1ac], ax
call fcn.00402c80
test eax, eax
je 0x4099bf
push 0x38
lea eax, [esp + 0x19c]
mov dword [esp + 0x1a0], 0
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
movzx eax, word [esp + 0x160]
xorps xmm0, xmm0
mov word [esp + 0x1a2], ax
mov al, byte [esp + 0x162]
mov byte [esp + 0x1a4], al
mov al, byte [esp + 0x163]
mov byte [esp + 0x1a5], al
movzx eax, word [esp + 0x164]
mov word [esp + 0x1a6], ax
mov al, byte [esp + 0x166]
mov byte [esp + 0x1a8], al
mov al, byte [esp + 0x167]
mov byte [esp + 0x1a9], al
mov al, byte [esp + 0x168]
mov byte [esp + 0x1aa], al
mov al, byte [esp + 0x169]
mov byte [esp + 0x1ab], al
mov al, byte [esp + 0x16a]
mov byte [esp + 0x1ac], al
mov eax, dword [esp + 0x178]
mov dword [esp + 0x1b8], eax
mov eax, dword [esp + 0x17c]
mov dword [esp + 0x1bc], eax
mov eax, dword [esp + 0x180]
mov dword [esp + 0x1c0], eax
mov eax, dword [esp + 0x184]
mov dword [esp + 0x1c4], eax
mov eax, dword [esp + 0x188]
mov dword [esp + 0x1c8], eax
mov eax, dword [esp + 0x18c]
mov dword [esp + 0x1cc], eax
mov eax, dword [esp + 0x16b]
movq qword [esp + 0x1ad], xmm0
mov dword [esp + 0x1ad], eax
mov eax, dword [esp + 0x16f]
mov dword [esp + 0x1b1], eax
lea eax, [esp + 0x198]
push 0x38
push eax
push esi
mov dword [esp + 0x1a8], 1
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
movzx ecx, word [edi + 4]
mov eax, dword [edi + 8]
push ecx
push str.EXEC_WZ_CS_GetOwnerGuildMaster__d
push 0x442698
mov dword [esp + 0x120], 0x18024c1
mov word [esp + 0x128], cx
mov dword [esp + 0x12c], eax
call fcn.00413700
add esp, 0xc
push dword [0x4426a4]
test al, al
jne 0x409b6d
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x24
lea eax, [esp + 0x118]
mov dword [esp + 0x11c], 0
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x409c40
cmp ax, 0xffff
je 0x409c40
xorps xmm0, xmm0
push str.QueryResult
movaps xmmword [esp + 0x214], xmm0
movaps xmmword [esp + 0x204], xmm0
call fcn.004139e0
push str.OwnerGuild
mov dword [esp + 0x11c], eax
call fcn.00413990
cmp eax, 0xffffffff
je 0x409bda
shl eax, 0xd
push 0xf
add eax, 0x443e7e
push eax
lea eax, [esp + 0x218]
push 0x10
push eax
call fcn.00420956
add esp, 0x10
push str.OwnerGuildMaster
call fcn.00413990
cmp eax, 0xffffffff
je 0x409c06
shl eax, 0xd
push 0xf
add eax, 0x443e7e
push eax
lea eax, [esp + 0x208]
push 0x10
push eax
call fcn.00420956
add esp, 0x10
mov eax, dword [esp + 0x210]
movaps xmm0, xmmword [esp + 0x200]
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0x214]
mov dword [esp + 0x128], eax
pextrw eax, xmm0, 4
movq qword [esp + 0x12c], xmm0
mov word [esp + 0x134], ax
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x24
lea eax, [esp + 0x118]
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
movzx esi, word [edi + 4]
mov dword [esp + 0x16c], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x178], 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 [esp + 0x170], 0x3801cc1
push dword [edi + 0x1c]
mov word [esp + 0x17c], si
push dword [edi + 0x18]
mov dword [esp + 0x188], edx
push dword [edi + 0x14]
mov dword [esp + 0x190], ecx
push ecx
push edx
push esi
push str.EXEC_WZ_CS_ReqNpcBuy__d___d___d___d___d___d___d___d___d___d
push 0x442698
call fcn.00413700
add esp, 0x30
push dword [0x4426a4]
test al, al
je 0x409d51
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x409d4b
cmp ax, 0xffff
je 0x409d4b
push str.QueryResult
call fcn.004139e0
mov esi, eax
call fcn.00413970
push 0x1c
lea eax, [esp + 0x164]
mov dword [esp + 0x168], esi
push eax
push dword [esp + 0x2c]
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1c
lea eax, [esp + 0x164]
mov dword [esp + 0x168], 0
push eax
push dword [esp + 0x2c]
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
movzx esi, word [edi + 4]
mov eax, dword [edi + 8]
push ecx
push edx
push esi
mov dword [esp + 0x108], eax
mov eax, dword [edi + 0x14]
push str.EXEC_WZ_CS_ReqNpcRepair__d___d___d
push 0x442698
mov dword [esp + 0x104], 0x48024c1
mov word [esp + 0x10c], si
mov dword [esp + 0x114], edx
mov dword [esp + 0x118], ecx
mov dword [esp + 0x124], eax
call fcn.00413700
add esp, 0x14
push dword [0x4426a4]
test al, al
je 0x409e75
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x409e6f
cmp ax, 0xffff
je 0x409e6f
push str.QueryResult
call fcn.004139e0
push str.NPC_HP
mov esi, eax
call fcn.004139e0
push str.NPC_MAXHP
mov dword [esp + 0x110], eax
call fcn.004139e0
mov dword [esp + 0x108], eax
call fcn.00413970
push 0x24
lea eax, [esp + 0xf4]
mov dword [esp + 0xf8], esi
push eax
push dword [esp + 0x2c]
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x24
lea eax, [esp + 0xf4]
mov dword [esp + 0xf8], 0
push eax
push dword [esp + 0x2c]
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 4]
mov word [esp + 0x168], ax
mov eax, dword [edi + 8]
mov edi, dword [edi + 0xc]
mov dword [esp + 0x16c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x160], 0x58024c1
mov dword [esp + 0x170], 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 [esp + 0x180], edx
mov edx, dword [esp + 0x18]
push esi
mov dword [esp + 0x18c], eax
push edi
movzx eax, word [edx + 4]
push eax
push str.EXEC_WZ_CS_ReqNpcUpgrade__d___d___d___d___d
push 0x442698
mov dword [esp + 0x190], esi
mov dword [esp + 0x198], ecx
call fcn.00413700
add esp, 0x1c
push dword [0x4426a4]
test al, al
je 0x409fa2
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x409f9c
cmp ax, 0xffff
je 0x409f9c
push str.QueryResult
call fcn.004139e0
test eax, eax
jne 0x409f65
call fcn.00413970
jmp 0x409fb6
call fcn.00413970
push 0x24
lea eax, [esp + 0x164]
mov dword [esp + 0x168], 1
push eax
push dword [esp + 0x2c]
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x24
lea eax, [esp + 0x164]
mov dword [esp + 0x168], 0
push eax
push dword [esp + 0x2c]
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
movzx ecx, word [edi + 4]
mov eax, dword [edi + 8]
push ecx
push str.EXEC_WZ_CS_GetCastleTaxInfo__d
push 0x442698
mov dword [esp + 0x144], 0x68028c1
mov word [esp + 0x14c], cx
mov dword [esp + 0x150], eax
call fcn.00413700
add esp, 0xc
push dword [0x4426a4]
test al, al
je 0x40a0fe
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40a0f8
cmp ax, 0xffff
je 0x40a0f8
push str.MONEY
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40a05d
or eax, eax
or edx, 0xffffffff
jmp 0x40a06e
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041aca4
add esp, 4
push str.TAX_RATE_CHAOS
mov dword [esp + 0x14c], eax
mov dword [esp + 0x150], edx
call fcn.004139e0
push str.TAX_RATE_STORE
mov dword [esp + 0x154], eax
call fcn.004139e0
push str.TAX_HUNT_ZONE
mov dword [esp + 0x158], eax
call fcn.004139e0
push dword [0x4426a4]
mov dword [esp + 0x15c], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x28
lea eax, [esp + 0x13c]
mov dword [esp + 0x140], 1
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x28
lea eax, [esp + 0x13c]
mov dword [esp + 0x140], 0
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
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 0x442698
mov dword [esp + 0x60], 0x78018c1
mov word [esp + 0x68], cx
mov dword [esp + 0x6c], eax
call fcn.00413700
add esp, 0x14
push dword [0x4426a4]
test al, al
je 0x40a1ed
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40a1e7
cmp ax, 0xffff
je 0x40a1e7
push str.QueryResult
call fcn.004139e0
push str.TaxKind
mov esi, eax
call fcn.004139e0
push str.TaxRate
mov dword [esp + 0x60], eax
call fcn.004139e0
mov dword [esp + 0x60], eax
call fcn.00413970
push 0x18
lea eax, [esp + 0x50]
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x28]
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [esp + 0x50]
mov dword [esp + 0x54], 0
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 8]
movzx ecx, word [edi + 4]
mov dword [esp + 0x16c], eax
mov eax, dword [edi + 0xc]
push eax
push ecx
push str.EXEC_WZ_CS_ModifyMoney__d___d
push 0x442698
mov dword [esp + 0x170], 0x88020c1
mov word [esp + 0x178], cx
mov dword [esp + 0x180], eax
call fcn.00413700
add esp, 0x10
push dword [0x4426a4]
test al, al
je 0x40a31c
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40a316
cmp ax, 0xffff
je 0x40a316
push str.QueryResult
call fcn.004139e0
push str.MONEY
mov dword [esp + 0x24], eax
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40a2b9
or edi, eax
mov dword [esp + 0x18], eax
jmp 0x40a2d0
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041aca4
add esp, 4
mov dword [esp + 0x18], edx
mov edi, eax
call fcn.00413970
mov eax, dword [esp + 0x20]
mov dword [esp + 0x164], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x17c], eax
lea eax, [esp + 0x160]
push 0x20
push eax
push esi
mov dword [esp + 0x184], edi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x20
lea eax, [esp + 0x164]
mov dword [esp + 0x168], 0
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 8]
movzx ecx, word [edi + 4]
mov dword [esp + 0x16c], eax
movzx eax, byte [edi + 0x13]
push eax
movzx eax, byte [edi + 0x12]
push eax
movzx eax, word [edi + 0x10]
push eax
movzx eax, byte [edi + 0xf]
push eax
movzx eax, byte [edi + 0xe]
push eax
movzx eax, word [edi + 0xc]
push eax
push ecx
push str.EXEC_WZ_CS_ModifyCastleSchedule__d___d__d__d_00:00:00___d__d__d_00:00:00
push 0x442698
mov dword [esp + 0x184], 0x98018c1
mov word [esp + 0x18c], cx
call fcn.00413700
add esp, 0x24
push dword [0x4426a4]
test al, al
je 0x40a476
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40a470
cmp ax, 0xffff
je 0x40a470
push str.QueryResult
call fcn.004139e0
push dword [0x4426a4]
mov esi, eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, word [edi + 0xc]
mov word [esp + 0x170], ax
mov al, byte [edi + 0xe]
mov byte [esp + 0x172], al
mov al, byte [edi + 0xf]
mov byte [esp + 0x173], al
movzx eax, word [edi + 0x10]
mov word [esp + 0x174], ax
mov al, byte [edi + 0x12]
mov byte [esp + 0x176], al
mov al, byte [edi + 0x13]
mov byte [esp + 0x177], al
lea eax, [esp + 0x160]
push 0x18
push eax
push dword [esp + 0x2c]
mov dword [esp + 0x170], esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [esp + 0x164]
mov dword [esp + 0x168], 0
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 8]
movzx ecx, word [edi + 4]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x228], eax
mov eax, dword [edi + 0x10]
mov edi, ecx
mov word [esp + 0x34], cx
lea ecx, [esp + 0x228]
mov dword [esp + 0x2c], 0xa8020c1
lea edx, [ecx + 1]
mov byte [esp + 0x230], 0
mov dword [esp + 0x22c], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a500
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x40a533
nop
mov dl, byte [esp + eax + 0x228]
cmp dl, 0x20
je 0x40a5a9
cmp dl, 0x22
je 0x40a5a9
cmp dl, 0x27
je 0x40a5a9
inc eax
cmp eax, ecx
jl 0x40a510
lea eax, [esp + 0x228]
push eax
push edi
push str.EXEC_WZ_CS_GetGuildMarkRegInfo__d___s
push 0x442698
call fcn.00413700
add esp, 0x10
push dword [0x4426a4]
test al, al
jne 0x40a595
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x20
lea eax, [esp + 0x30]
mov dword [esp + 0x34], 0
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx ecx, ax
cmp cx, 0xffff
jne 0x40a5d2
call fcn.00413970
push 0x20
lea eax, [esp + 0x30]
mov dword [esp + 0x34], 0
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x228]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x22c]
mov dword [esp + 0x40], eax
cmp cx, 0x64
jne 0x40a5fd
mov dword [esp + 0x44], 0
mov edi, 2
jmp 0x40a62f
push str.REG_MARKS
mov edi, 1
call fcn.004139e0
push str.SEQ_NUM
mov dword [esp + 0x48], eax
call fcn.004139e0
push str.IS_GIVEUP
mov byte [esp + 0x4d], al
call fcn.004139e0
test eax, eax
setg byte [esp + 0x48]
call fcn.00413970
push 0x20
lea eax, [esp + 0x30]
mov dword [esp + 0x34], edi
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
push dword [edi + 8]
movzx eax, word [edi + 4]
push eax
push str.EXEC_WZ_CS_ModifySiegeEnd__d___d
push 0x442698
mov dword [esp + 0x220], 0xb8010c1
mov word [esp + 0x228], ax
call fcn.00413700
add esp, 0x10
push dword [0x4426a4]
test al, al
je 0x40a700
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40a6fa
cmp ax, 0xffff
je 0x40a6fa
push str.QueryResult
call fcn.004139e0
push dword [0x4426a4]
mov esi, eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [esp + 0x214]
mov dword [esp + 0x218], esi
mov esi, dword [esp + 0x28]
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [esp + 0x214]
mov dword [esp + 0x218], 0
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 4]
lea edx, [esp + 0x200]
mov word [esp + 0x6c], ax
lea ecx, [edx + 1]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x200], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x64], 0xc8018c1
mov byte [esp + 0x208], 0
mov dword [esp + 0x204], eax
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x40a780
sub edx, ecx
lea ecx, [esp + 0x200]
call fcn.00415de0
test al, al
je 0x40a833
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov dword [esp + 0x74], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x200]
push eax
movzx eax, word [edi + 4]
push ecx
push eax
push str.EXEC_WZ_CS_ModifyCastleOwnerInfo__d___d___s
push 0x442698
mov dword [esp + 0x84], ecx
call fcn.00413700
add esp, 0x14
test al, al
je 0x40a82e
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40a82e
cmp ax, 0xffff
je 0x40a82e
push str.QueryResult
call fcn.004139e0
mov esi, eax
call fcn.00413970
push 0x18
lea eax, [esp + 0x68]
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0x28]
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
call fcn.00413970
push 0x18
lea eax, [esp + 0x68]
mov dword [esp + 0x6c], 0
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 4]
lea edx, [esp + 0x200]
mov word [esp + 0x84], ax
lea ecx, [edx + 1]
mov eax, dword [edi + 8]
mov dword [esp + 0x88], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x200], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x7c], 0xd8018c1
mov byte [esp + 0x208], 0
mov dword [esp + 0x204], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x40a8a0
sub edx, ecx
lea ecx, [esp + 0x200]
call fcn.00415de0
test al, al
je 0x40a94f
mov eax, dword [esp + 0x8c]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x90]
mov dword [edi + 0x10], eax
mov eax, ecx
push eax
movzx eax, word [edi + 4]
push eax
push str.EXEC_WZ_CS_ReqRegAttackGuild__d___s
push 0x442698
call fcn.00413700
add esp, 0x10
test al, al
je 0x40a94a
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40a94a
cmp ax, 0xffff
je 0x40a94a
push str.QueryResult
call fcn.004139e0
mov esi, eax
call fcn.00413970
push 0x18
lea eax, [esp + 0x80]
mov dword [esp + 0x84], esi
mov esi, dword [esp + 0x28]
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
call fcn.00413970
push 0x18
lea eax, [esp + 0x80]
mov dword [esp + 0x84], 0
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 4]
push eax
push str.EXEC_WZ_CS_ResetCastleSiege__d
push 0x442698
mov dword [esp + 0x20c], 0xe800cc1
mov word [esp + 0x214], ax
call fcn.00413700
add esp, 0xc
push dword [0x4426a4]
test al, al
je 0x40b184
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b17e
cmp ax, 0xffff
je 0x40b17e
push str.QueryResult
call fcn.004139e0
push dword [0x4426a4]
mov esi, eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [esp + 0x204]
mov dword [esp + 0x208], esi
mov esi, dword [esp + 0x28]
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
mov ax, word [edi + 4]
lea esi, [edi + 6]
mov ecx, 0x20
mov dword [esp + 0x258], 0xf8086c1
lea edi, [esp + 0x25e]
mov word [esp + 0x25c], ax
rep movsd dword es:[edi], dword [esi]
xor edi, edi
xor esi, esi
mov eax, dword [esi + 0x5d56f4]
test eax, eax
js 0x40aa88
cmp eax, 0x14
jge 0x40aa88
cmp dword [esi + 0x5d56f8], 0
je 0x40aa88
cmp dword [esi + 0x5d570c], 0xffffffff
je 0x40aa88
push 0x86
lea eax, [esp + 0x25c]
push eax
push edi
call fcn.00414e90
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x40aa54
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 8]
movzx ecx, word [edi + 4]
mov dword [esp + 0xa0], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0xac], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x234], eax
mov eax, dword [edi + 0x10]
mov edi, ecx
mov word [esp + 0x9c], cx
lea ecx, [esp + 0x234]
mov dword [esp + 0x94], 0x108020c1
lea edx, [ecx + 1]
mov byte [esp + 0x23c], 0
mov dword [esp + 0x238], eax
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ab00
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x40ab37
nop
mov dl, byte [esp + eax + 0x234]
cmp dl, 0x20
je 0x40abfc
cmp dl, 0x22
je 0x40abfc
cmp dl, 0x27
je 0x40abfc
inc eax
cmp eax, ecx
jl 0x40ab10
lea eax, [esp + 0x234]
push eax
push edi
push str.EXEC_WZ_CS_ReqRegGuildMark__d___s
push 0x442698
call fcn.00413700
add esp, 0x10
push dword [0x4426a4]
test al, al
jne 0x40ab75
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40abfc
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40abf7
cmp ax, 0xffff
je 0x40abf7
mov eax, dword [esp + 0x234]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x238]
push str.QueryResult
mov dword [esp + 0xac], eax
call fcn.004139e0
push str.REG_MARKS
mov esi, eax
call fcn.004139e0
mov dword [esp + 0xb0], eax
call fcn.00413970
push 0x20
lea eax, [esp + 0x98]
mov dword [esp + 0x9c], esi
mov esi, dword [esp + 0x28]
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
call fcn.00413970
push 0x20
lea eax, [esp + 0x98]
mov dword [esp + 0x9c], 0
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xc]
movzx ecx, word [edi + 4]
mov dword [esp + 0x240], eax
mov eax, dword [edi + 0x10]
mov edi, ecx
mov word [esp + 0xdc], cx
lea ecx, [esp + 0x240]
mov dword [esp + 0xd4], 0x11801cc1
lea edx, [ecx + 1]
mov byte [esp + 0x248], 0
mov dword [esp + 0x244], eax
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ac70
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x40aca7
nop
mov dl, byte [esp + eax + 0x240]
cmp dl, 0x20
je 0x40ad66
cmp dl, 0x22
je 0x40ad66
cmp dl, 0x27
je 0x40ad66
inc eax
cmp eax, ecx
jl 0x40ac80
lea eax, [esp + 0x240]
push eax
push edi
push str.EXEC_WZ_CS_ModifyGuildMarkReset__d___s
push 0x442698
call fcn.00413700
add esp, 0x10
push dword [0x4426a4]
test al, al
jne 0x40ace5
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40ad66
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40ad61
cmp ax, 0xffff
je 0x40ad61
mov eax, dword [esp + 0x240]
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0x244]
push str.QueryResult
mov dword [esp + 0xec], eax
call fcn.004139e0
push str.DEL_MARKS
mov dword [esp + 0xdc], eax
call fcn.004139e0
mov dword [esp + 0xec], eax
call fcn.00413970
push 0x1c
lea eax, [esp + 0xd8]
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
call fcn.00413970
push 0x1c
lea eax, [esp + 0xd8]
mov dword [esp + 0xdc], 0
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
movzx ecx, word [edi + 4]
mov eax, dword [edi + 8]
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 0xc]
mov word [esp + 0xbc], cx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x24c]
mov dword [esp + 0x24c], eax
lea edx, [ecx + 1]
mov eax, dword [edi + 0x10]
mov edi, dword [edi + 0x14]
mov dword [esp + 0xb4], 0x128020c1
mov byte [esp + 0x254], 0
mov dword [esp + 0x250], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ade3
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x40ae27
nop dword [eax]
nop word [eax + eax]
mov dl, byte [esp + eax + 0x24c]
cmp dl, 0x20
je 0x40aef1
cmp dl, 0x22
je 0x40aef1
cmp dl, 0x27
je 0x40aef1
inc eax
cmp eax, ecx
jl 0x40ae00
push edi
lea eax, [esp + 0x250]
push eax
push dword [esp + 0x20]
push str.EXEC_WZ_CS_ModifyGuildGiveUp__d___s___d
push 0x442698
call fcn.00413700
add esp, 0x14
push dword [0x4426a4]
test al, al
jne 0x40ae69
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40aef1
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40aeec
cmp ax, 0xffff
je 0x40aeec
mov eax, dword [esp + 0x24c]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x250]
push str.QueryResult
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], edi
call fcn.004139e0
push str.DEL_MARKS
mov dword [esp + 0xbc], eax
call fcn.004139e0
mov dword [esp + 0xd0], eax
call fcn.00413970
push 0x20
lea eax, [esp + 0xb8]
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
call fcn.00413970
push 0x20
lea eax, [esp + 0xb8]
mov dword [esp + 0xbc], 0
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
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 0x442698
mov dword [esp + 0x174], 0x168014c1
mov word [esp + 0x17c], dx
mov dword [esp + 0x180], ecx
mov dword [esp + 0x184], eax
call fcn.00413700
add esp, 0x14
push dword [0x4426a4]
test al, al
je 0x40afda
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40afd4
cmp ax, 0xffff
je 0x40afd4
push str.QueryResult
call fcn.004139e0
push dword [0x4426a4]
mov esi, eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x14
lea eax, [esp + 0x164]
mov dword [esp + 0x168], esi
mov esi, dword [esp + 0x28]
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x14
lea eax, [esp + 0x164]
mov dword [esp + 0x168], 0
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
mov ax, word [edi + 4]
mov word [esp + 0x164], ax
mov eax, dword [edi + 8]
mov dword [esp + 0x168], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x16c], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x170], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x174], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x178], eax
mov eax, dword [edi + 0x1c]
xor edi, edi
mov dword [esp + 0x160], 0x178020c1
xor esi, esi
mov dword [esp + 0x17c], eax
mov eax, dword [esi + 0x5d56f4]
test eax, eax
js 0x40b0a5
cmp eax, 0x14
jge 0x40b0a5
cmp dword [esi + 0x5d56f8], 0
je 0x40b0a5
cmp dword [esi + 0x5d570c], 0xffffffff
je 0x40b0a5
push 0x20
lea eax, [esp + 0x164]
push eax
push edi
call fcn.00414e90
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x40b074
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 4]
mov ecx, dword [edi + 8]
mov dword [esp + 0x200], 0x18800cc1
mov word [esp + 0x208], ax
test ecx, ecx
js 0x40b5d0
push ecx
push eax
push str.EXEC_WZ_CS_ModifyMoney__d___d
push 0x442698
call fcn.00413700
add esp, 0x10
push dword [0x4426a4]
test al, al
je 0x40b184
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b17e
cmp ax, 0xffff
je 0x40b17e
push str.QueryResult
call fcn.004139e0
push str.MONEY
mov edi, eax
call fcn.00413990
cmp eax, 0xffffffff
je 0x40b146
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041aca4
add esp, 4
call fcn.00413970
jmp 0x40b258
movzx eax, word [edi + 4]
push eax
mov dword [esp + 0x204], 0x19800cc1
push str.EXEC_WZ_CS_ResetCastleTaxInfo__d
jmp 0x40b1dc
movzx eax, word [edi + 4]
push eax
mov dword [esp + 0x204], 0x1a800cc1
push str.EXEC_WZ_CS_ResetSiegeGuildInfo__d
jmp 0x40b1dc
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [esp + 0x204]
mov dword [esp + 0x208], 0
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 4]
push eax
mov dword [esp + 0x204], 0x1b800cc1
push str.EXEC_WZ_CS_ResetRegSiegeInfo__d
push 0x442698
mov word [esp + 0x214], ax
call fcn.00413700
add esp, 0xc
push dword [0x4426a4]
test al, al
je 0x40b184
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40b17e
cmp ax, 0xffff
je 0x40b17e
push str.QueryResult
call fcn.00413990
cmp eax, 0xffffffff
jne 0x40b22b
or edi, eax
jmp 0x40b23e
shl eax, 0xd
add eax, 0x443e7e
push eax
call fcn.0041acc9
add esp, 4
mov edi, eax
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [esp + 0x204], edi
push 0xc
lea eax, [esp + 0x204]
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040dc10
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
test edi, edi
je case.0x407239.1
movzx eax, word [edi + 4]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x270]
mov word [esp + 0x264], ax
push ecx
push eax
mov dword [esp + 0x24], 0xc8
mov dword [esp + 0x274], 0
call fcn.00402e30
mov byte [esp + 0x258], 0xc2
mov byte [esp + 0x25b], 0x82
test eax, eax
je 0x40b343
mov edx, dword [esp + 0x268]
mov dword [esp + 0x25c], 0
lea eax, [edx*8]
sub eax, edx
lea eax, [eax*4 + 0x14]
movzx ecx, ax
mov eax, ecx
mov byte [esp + 0x25a], cl
shr eax, 8
mov byte [esp + 0x259], al
lea eax, [edx*8]
sub eax, edx
lea eax, [eax*4 + 0x14]
push eax
lea eax, [esp + 0x25c]
jmp 0x40b268
mov edx, dword [esp + 0x18]
mov dword [esp + 0x25c], 1
mov dword [esp + 0x268], edx
lea eax, [edx*8]
sub eax, edx
lea eax, [eax*4 + 0x14]
movzx ecx, ax
mov eax, ecx
mov byte [esp + 0x25a], cl
shr eax, 8
mov byte [esp + 0x259], al
lea eax, [edx*8]
sub eax, edx
lea eax, [eax*4 + 0x14]
push eax
lea eax, [esp + 0x25c]
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
test edi, edi
je case.0x407239.1
mov eax, dword [edi + 8]
movzx ecx, word [edi + 4]
mov dword [esp + 0x264], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x270]
mov word [esp + 0x264], cx
push eax
push ecx
mov dword [esp + 0x24], 0x64
mov dword [esp + 0x274], 0
call fcn.004030e0
mov byte [esp + 0x258], 0xc2
mov byte [esp + 0x25b], 0x83
test eax, eax
je 0x40b44d
mov edx, dword [esp + 0x268]
mov eax, edx
shl eax, 4
add eax, 0x14
shl edx, 4
movzx ecx, ax
mov eax, ecx
mov dword [esp + 0x25c], 0
shr eax, 8
add edx, 0x14
mov byte [esp + 0x259], al
lea eax, [esp + 0x258]
mov byte [esp + 0x25a], cl
push edx
jmp 0x40b268
mov edx, dword [esp + 0x18]
mov eax, edx
shl eax, 4
add eax, 0x14
mov dword [esp + 0x268], edx
movzx ecx, ax
mov eax, ecx
shl edx, 4
shr eax, 8
add edx, 0x14
mov byte [esp + 0x259], al
lea eax, [esp + 0x258]
push edx
push eax
push esi
mov dword [esp + 0x268], 1
mov byte [esp + 0x266], cl
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
test edi, edi
je case.0x407239.1
movzx eax, word [edi + 4]
push eax
push str.DELETE_MuCastle_NPC_WHERE_MAP_SVR_GROUP___d
push 0x442698
mov word [esp + 0x20c], 0xcc1
mov byte [esp + 0x20e], 0x84
mov word [esp + 0x214], ax
mov dword [esp + 0x20], eax
call fcn.00413700
add esp, 0xc
push dword [0x4426a4]
test al, al
je 0x40b5bc
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp dword [edi + 8], 0
mov dword [esp + 0x18], 0
jle 0x40b58d
lea ecx, [edi + 0x25]
mov dword [esp + 0x20], 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 [esp + 0x38]
push str.EXEC_WZ_CS_ReqNpcBuy__d___d___d___d___d___d___d___d___d___d
push 0x442698
call fcn.00413700
add esp, 0x30
push dword [0x4426a4]
test al, al
je 0x40b5bc
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
inc eax
add ecx, 0x1c
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
cmp eax, dword [edi + 8]
jl 0x40b520
mov dword [esp + 0x204], 1
push 0xc
lea eax, [esp + 0x204]
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [esp + 0x204], 0
jmp 0x40b25f
test edi, edi
je case.0x407239.1
movzx eax, word [edi + 4]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x26c]
mov word [esp + 0x264], ax
push ecx
push eax
mov dword [esp + 0x24], 0x64
mov dword [esp + 0x270], 0
call fcn.00403290
mov byte [esp + 0x258], 0xc2
mov byte [esp + 0x25b], 0x85
test eax, eax
je 0x40b677
mov edx, dword [esp + 0x264]
mov dword [esp + 0x25c], 0
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
movzx ecx, ax
mov eax, ecx
mov byte [esp + 0x25a], cl
shr eax, 8
mov byte [esp + 0x259], al
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
push eax
lea eax, [esp + 0x25c]
jmp 0x40b268
mov edx, dword [esp + 0x18]
mov dword [esp + 0x25c], 1
mov dword [esp + 0x264], edx
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
movzx ecx, ax
mov eax, ecx
mov byte [esp + 0x25a], cl
shr eax, 8
mov byte [esp + 0x259], al
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
push eax
lea eax, [esp + 0x25c]
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040de10
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040e010
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
test edi, edi
je case.0x407239.1
movzx eax, word [edi + 4]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x26c]
mov word [esp + 0x264], ax
push ecx
push eax
mov dword [esp + 0x24], 0x64
mov dword [esp + 0x270], 0
call fcn.004034a0
mov byte [esp + 0x258], 0xc2
mov byte [esp + 0x25b], 0x88
test eax, eax
je 0x40b7ab
mov edx, dword [esp + 0x264]
mov dword [esp + 0x25c], 0
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
movzx ecx, ax
mov eax, ecx
mov byte [esp + 0x25a], cl
shr eax, 8
mov byte [esp + 0x259], al
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
push eax
lea eax, [esp + 0x25c]
jmp 0x40b268
mov edx, dword [esp + 0x18]
mov dword [esp + 0x25c], 1
mov dword [esp + 0x264], edx
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
movzx ecx, ax
mov eax, ecx
mov byte [esp + 0x25a], cl
shr eax, 8
mov byte [esp + 0x259], al
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
push eax
lea eax, [esp + 0x25c]
push eax
push esi
call fcn.00414e90
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
test edi, edi
je case.0x407239.1
movzx eax, word [edi + 4]
push eax
push str.DELETE_MuCastle_NPC_WHERE_MAP_SVR_GROUP___d
push 0x442698
mov word [esp + 0x20c], 0xcc1
mov byte [esp + 0x20e], 0x89
mov word [esp + 0x214], ax
mov dword [esp + 0x20], eax
call fcn.00413700
add esp, 0xc
push dword [0x4426a4]
test al, al
je 0x40b8f8
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp dword [edi + 8], 0
mov dword [esp + 0x18], 0
jle 0x40b58d
lea ecx, [edi + 0x25]
mov dword [esp + 0x20], ecx
movzx eax, byte [ecx + 1]
push eax
movzx eax, byte [ecx]
push eax
movzx eax, byte [ecx - 1]
push eax
push dword [ecx - 5]
push dword [ecx - 9]
push dword [ecx - 0xd]
push dword [ecx - 0x11]
push dword [ecx - 0x15]
push dword [ecx - 0x19]
push dword [esp + 0x38]
push str.EXEC_WZ_CS_ReqNpcUpdate__d___d___d___d___d___d___d___d___d___d
push 0x442698
call fcn.00413700
add esp, 0x30
push dword [0x4426a4]
test al, al
je 0x40b8f8
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
inc eax
add ecx, 0x1c
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
cmp eax, dword [edi + 8]
jl 0x40b886
jmp 0x40b58d
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [esp + 0x204], 0
jmp 0x40b598
push dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.0040e2f0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0x1a24]
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret
push dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.00404f80
add esp, 8
mov ecx, dword [esp + 0x1a2c]
pop edi
pop esi
xor ecx, esp
call fcn.004163e0
mov esp, ebp
pop ebp
ret