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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x1928
call fcn.0042b580
mov eax, dword [0x439008]
xor eax, esp
mov dword [esp + 0x1924], eax
push esi
mov esi, ecx
mov byte [esp + 0x43], dl
imul eax, esi, 0x68
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x40], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x5cd824], eax
movzx eax, byte [esp + 0x47]
cmp eax, 0xe1
ja case.0x406906.1
movzx eax, byte [eax + 0x40a478]
jmp dword [eax*4 + 0x40a3bc]
push str.SELECT_ItemCount_FROM_GameServerInfo_WHERE_Number0
push 0x439d58
mov dword [esp + 0x1c], 0x10008c1
mov dword [esp + 0x20], 0
call fcn.004112b0
add esp, 8
test al, al
je 0x4067b2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4067b2
push str.ItemCount
call fcn.00411500
cmp eax, 0xffffffff
jne 0x406781
or eax, eax
jmp 0x406792
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push dword [0x439d64]
mov dword [esp + 0x1c], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x4067fc
push dword [0x439d64]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x439d64]
call esi
push str.INSERT_INTO_GameServerInfo__Number_ItemCount_ZenCount__VALUES__0_0_0_
push 0x439d58
call fcn.004112b0
add esp, 8
push dword [0x439d64]
call edi
push 2
push dword [0x439d64]
call esi
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x40]
push 8
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00412cb0
mov eax, dword [esp + 0x1c]
movzx esi, word [edi + 0x38]
movzx edi, word [edi + 4]
lea ecx, [eax + 0x5cd7e8]
mov eax, dword [esp + 0x10]
add eax, 6
push eax
push 0x32
push ecx
call fcn.0041789d
mov ecx, dword [esp + 0x28]
add esp, 0xc
push esi
push edi
lea eax, [ecx + 0x5cd7e8]
mov word [ecx + 0x5cd81a], di
push eax
push dword [ecx + 0x5cd7c4]
mov word [ecx + 0x5cd81c], si
push str._ServerManager___d__ServerInfo___s____d____d_
push 0
call fcn.004139f0
add esp, 0x18
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040a740
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040ad40
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040b170
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040b470
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
cmp byte [edi], 0xc1
jne 0x4068f0
mov al, byte [edi + 3]
jmp 0x4068f3
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x71
ja case.0x406906.1
movzx eax, byte [eax + 0x40a57c]
jmp dword [eax*4 + 0x40a55c]
push esi
push edi
call fcn.00413bd0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x79c], 0
lea eax, [edi + 0x13]
push 0x5cb860
push 0
push eax
push 0
push 0x780
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
lea esi, [edi + 8]
mov dword [0x5cb860], 0x780
push 1
push dword [0x439d64]
mov dword [esp + 0x44], esi
jne 0x4069c4
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 0x439d58
call fcn.004112b0
add esp, 0x10
push dword [0x439d64]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x439d64]
call esi
mov edx, dword [esp + 0x10]
push dword [esp + 0x1c]
push dword [edx + 0x798]
push str.UPDATE_warehouse_SET_pw_d_WHERE_AccountID_s
push 0x439d58
call fcn.004112b0
add esp, 0x10
jmp 0x408370
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 0x439d58
call fcn.004112b0
add esp, 0x14
jmp 0x406981
push edi
call fcn.004137b0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
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 + 0x15e], ax
movzx eax, word [edx + 8]
mov word [esp + 0x168], ax
mov al, byte [edx + 0xa]
push ecx
mov byte [esp + 0x16e], al
movzx eax, word [ecx + 8]
push edx
movq qword [esp + 0x168], xmm0
movq xmm0, qword [ecx]
mov word [esp + 0x17b], ax
mov al, byte [ecx + 0xa]
push str.SELECT_account_items_targetname_state_FROM_TRADE_X_WHERE_account_s_and_name_s
push 0x439d58
mov dword [esp + 0x168], 0x5ac07c2
mov byte [esp + 0x16c], 0x41
movq qword [esp + 0x17b], xmm0
mov byte [esp + 0x185], al
call fcn.004112b0
add esp, 0x10
test al, al
je 0x406b79
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x406b79
push 0x780
lea eax, [esp + 0x187]
push eax
push str.Items
call fcn.00411550
push str.targetname
call fcn.00411500
cmp eax, 0xffffffff
jne 0x406ae8
xorps xmm0, xmm0
mov word [esp + 0x17e], 0
movq qword [esp + 0x176], xmm0
mov byte [esp + 0x180], 0
jmp 0x406b05
shl eax, 0xd
push 0xa
add eax, 0x43b53e
push eax
lea eax, [esp + 0x17e]
push 0xb
push eax
call fcn.0041d9ba
add esp, 0x10
push str.state
call fcn.00411500
cmp eax, 0xffffffff
jne 0x406b18
or eax, eax
jmp 0x406b29
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push dword [0x439d64]
mov byte [esp + 0x186], al
mov byte [esp + 0x185], 1
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x7ac
lea eax, [esp + 0x15c]
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x7ac
lea eax, [esp + 0x15c]
mov byte [esp + 0x185], 0
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
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 + 0xce], ax
movzx eax, word [edx + 8]
mov word [esp + 0xd8], ax
mov al, byte [edx + 0xa]
push ecx
mov byte [esp + 0xde], al
movzx eax, word [ecx + 8]
push edx
movq qword [esp + 0xd8], xmm0
movq xmm0, qword [ecx]
mov word [esp + 0xeb], ax
mov al, byte [ecx + 0xa]
push str.SELECT_ElementSlot_FROM_Character_WHERE_AccountID_s_and_Name_s
push 0x439d58
mov dword [esp + 0xd8], 0x53e00c2
mov byte [esp + 0xdc], 0x51
movq qword [esp + 0xeb], xmm0
mov byte [esp + 0xf5], al
call fcn.004112b0
add esp, 0x10
test al, al
je 0x406ca9
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x406ca9
push 0x20
lea eax, [esp + 0xea]
push eax
push str.ElementSlot
call fcn.00411550
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x3e
lea eax, [esp + 0xcc]
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movaps xmm0, xmmword [0x436280]
lea eax, [esp + 0xc8]
push 0x3e
push eax
push esi
movups xmmword [esp + 0xf2], xmm0
movups xmmword [esp + 0x102], xmm0
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x13]
push eax
lea ecx, [edi + 8]
mov dword [esp + 0x18], eax
push ecx
push str.SELECT_AccountID_FROM_Character_WHERE_AccountID_s_and_name_s
push 0x439d58
mov dword [esp + 0x30], ecx
call fcn.004112b0
add esp, 0x10
test al, al
je 0x40820d
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40820d
push dword [0x439d64]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x439d64]
call esi
mov eax, dword [esp + 0x10]
push 0x5cb860
push 0
add eax, 0x1e
mov dword [0x5cb860], 0x20
push eax
push 0
push 0x20
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [esp + 0x14]
push dword [esp + 0x24]
push str.UPDATE_Character_SET_ElementSlot__WHERE_AccountID_s_and_name_s
push 0x439d58
call fcn.004112b0
add esp, 0x10
jmp 0x408370
push 0x5cd7a4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x5cd79c]
mov esi, dword [0x5cd798]
lea eax, [esi + edx]
test al, 3
jne 0x406dea
lea eax, [edx + 4]
shr eax, 2
cmp dword [0x5cd794], eax
ja 0x406dea
push ecx
call fcn.00412150
mov edx, dword [0x5cd79c]
mov esi, dword [0x5cd798]
mov ecx, dword [0x5cd794]
lea eax, [ecx*4 - 1]
dec ecx
and eax, esi
mov dword [0x5cd798], eax
lea esi, [edx + eax]
mov eax, esi
shr eax, 2
and ecx, eax
lea eax, [ecx*4]
mov ecx, dword [0x5cd790]
mov dword [esp + 0x1c], eax
cmp dword [ecx + eax], 0
jne 0x406e3f
push 0x10
call fcn.004143e4
mov ecx, dword [0x5cd790]
add esp, 4
mov edx, dword [esp + 0x1c]
mov dword [ecx + edx], eax
mov eax, edx
mov ecx, dword [0x5cd790]
mov ecx, dword [ecx + eax]
and esi, 3
mov eax, dword [edi + 4]
push 0x5cd7a4
mov dword [ecx + esi*4], eax
inc dword [0x5cd79c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040bb40
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040bd80
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040bf50
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
cmp byte [edi], 0xc1
lea ecx, [edi + 4]
mov dword [esp + 0x20], ecx
jne 0x406ed8
mov al, byte [edi + 3]
jmp 0x406eda
mov al, byte [ecx]
movzx eax, al
cmp eax, 0x52
ja case.0x406906.1
movzx eax, byte [eax + 0x40a608]
jmp dword [eax*4 + 0x40a5f0]
push esi
push edi
call fcn.00411620
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_QuestKillCount_WHERE_Name_s
push 0x439d58
mov dword [esp + 0x28], eax
call fcn.004112b0
add esp, 0xc
test al, al
je 0x406f9d
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x406f9d
push dword [0x439d64]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x439d64]
call esi
mov eax, dword [esp + 0x10]
push dword [esp + 0x1c]
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 0x439d58
call fcn.004112b0
add esp, 0x38
jmp 0x408370
push dword [0x439d64]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x439d64]
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 + 0x48]
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 0x439d58
call fcn.004112b0
add esp, 0x38
jmp 0x408370
push 0x5cb860
push 0
lea eax, [edi + 0x24]
mov dword [0x5cb860], 0x10
push eax
push 0
push 0x10
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x439d64]
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 0x439d58
call fcn.004112b0
add esp, 0x28
jmp 0x40820d
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 0x439d58
call fcn.004112b0
add esp, 0x14
test al, al
je 0x40820d
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40820d
push dword [0x439d64]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x439d64]
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 0x439d58
call fcn.004112b0
add esp, 0x14
jmp 0x408370
lea eax, [edi + 0xf]
push eax
push ecx
push str.SELECT__FROM_OFF_TRADE_SYSTEM_WHERE_Account_s_and_Name_s
push 0x439d58
mov dword [esp + 0x24], eax
call fcn.004112b0
add esp, 0x10
test al, al
je 0x40820d
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40820d
push dword [0x439d64]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x439d64]
call esi
push dword [esp + 0x14]
mov eax, dword [esp + 0x24]
push eax
push str.DELETE_FROM_OFF_TRADE_SYSTEM_WHERE_Account_s_and_Name_s
push 0x439d58
call fcn.004112b0
add esp, 0x10
jmp 0x408370
cmp byte [edi], 0xc1
jne 0x407162
mov al, byte [edi + 3]
jmp 0x407165
mov al, byte [edi + 4]
movzx eax, al
add eax, 0xfffffffd
cmp eax, 0x41
ja case.0x406906.1
movzx eax, byte [eax + 0x40a688]
jmp dword [eax*4 + 0x40a65c]
push dword [edi + 4]
push str.DELETE_FROM_PeriodicItem_WHERE_ItemSerial_d
push 0x439d58
call fcn.004112b0
add esp, 0xc
jmp 0x40820d
push esi
push edi
call fcn.004103c0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
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 + 0x96], ax
movzx eax, word [edi + 0x10]
mov word [esp + 0xa0], ax
mov al, byte [edi + 0x12]
mov byte [esp + 0x90], 0xc2
mov word [esp + 0x93], 0x518
mov dword [esp + 0x10], edx
movq qword [esp + 0x98], xmm0
mov byte [esp + 0xa2], al
mov byte [esp + 0xa3], 0
mov dword [esp + 0x14], 0
jbe 0x407329
lea eax, [esp + 0x16c]
mov dword [esp + 0x20], eax
lea esi, [edi + 0x18]
nop word [eax + eax]
push dword [esi]
push str.SELECT_Time_FROM_PeriodicItem_WHERE_ItemSerial_d
push 0x439d58
call fcn.004112b0
add esp, 0xc
test al, al
je 0x4072ba
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4072ba
mov al, byte [esi - 4]
mov byte [esp + 0x30], al
mov eax, dword [esi]
push str.Time
mov dword [esp + 0x38], eax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x407285
or eax, eax
mov dword [esp + 0x134], 0xffffffff
jmp 0x407296
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a63e
add esp, 4
push dword [0x439d64]
mov dword [esp + 0x20], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esp + 0x1c]
jmp 0x4072e3
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [esp + 0x30], al
mov eax, dword [esi]
mov dword [esp + 0x34], eax
xor eax, eax
mov ecx, dword [esp + 0x20]
add esi, 8
movq xmm0, qword [esp + 0x30]
mov edx, dword [esp + 0x10]
inc byte [esp + 0xa3]
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 + 0x14]
inc ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
cmp ecx, eax
jl 0x407230
mov esi, dword [esp + 0x40]
mov eax, edx
mov byte [esp + 0x92], dl
shr eax, 8
mov byte [esp + 0x91], al
mov eax, dword [esp + 0xa0]
movups xmm0, xmmword [esp + 0x90]
mov dword [esp + 0x168], eax
lea eax, [esp + 0x158]
push edx
push eax
push esi
movups xmmword [esp + 0x164], xmm0
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
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 + 0x96], ax
movzx eax, word [edi + 0x10]
mov word [esp + 0xa0], ax
mov al, byte [edi + 0x12]
mov byte [esp + 0x90], 0xc2
mov word [esp + 0x93], 0x618
mov dword [esp + 0x20], edx
movq qword [esp + 0x98], xmm0
mov byte [esp + 0xa2], al
mov byte [esp + 0xa3], 0
mov dword [esp + 0x10], 0
jbe 0x4074e9
lea eax, [esp + 0x16c]
mov dword [esp + 0x1c], eax
lea esi, [edi + 0x18]
push dword [esi]
push str.SELECT_Time_FROM_PeriodicItem_WHERE_ItemSerial_d
push 0x439d58
call fcn.004112b0
add esp, 0xc
test al, al
je 0x40747a
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40747a
mov al, byte [esi - 4]
mov byte [esp + 0x30], al
mov eax, dword [esi]
push str.Time
mov dword [esp + 0x38], eax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x407445
or eax, eax
mov dword [esp + 0x134], 0xffffffff
jmp 0x407456
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a63e
add esp, 4
push dword [0x439d64]
mov dword [esp + 0x18], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esp + 0x14]
jmp 0x4074a3
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [esp + 0x30], al
mov eax, dword [esi]
mov dword [esp + 0x34], eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
add esi, 8
movq xmm0, qword [esp + 0x30]
mov edx, dword [esp + 0x20]
inc byte [esp + 0xa3]
add edx, 0xc
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
add ecx, 0xc
movzx eax, byte [edi + 0x13]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x4073f0
mov esi, dword [esp + 0x40]
mov eax, edx
mov byte [esp + 0x92], dl
shr eax, 8
mov byte [esp + 0x91], al
mov eax, dword [esp + 0xa0]
movups xmm0, xmmword [esp + 0x90]
mov dword [esp + 0x168], eax
lea eax, [esp + 0x158]
push edx
push eax
push esi
movups xmmword [esp + 0x164], xmm0
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x13], 0
mov dword [esp + 0x14], 0
jbe case.0x406906.1
lea esi, [edi + 0x14]
push dword [esi]
push str.SELECT_ItemSerial_FROM_PeriodicItem_WHERE_ItemSerial_d
push 0x439d58
call fcn.004112b0
add esp, 0xc
test al, al
je 0x4075a2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4075a2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
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 0x4075c6
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
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 0x439d58
call fcn.004112b0
add esp, 0x10
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [esp + 0x14]
add esi, 8
movzx eax, byte [edi + 0x13]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, eax
jl 0x407552
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
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 + 0x96], ax
movzx eax, word [edi + 0x10]
mov word [esp + 0xa0], ax
mov al, byte [edi + 0x12]
mov byte [esp + 0x90], 0xc2
mov word [esp + 0x93], 0x4018
mov dword [esp + 0x20], ecx
movq qword [esp + 0x98], xmm0
mov byte [esp + 0xa2], al
mov byte [esp + 0xa3], 0
mov dword [esp + 0x10], 0
jbe 0x4077b4
lea eax, [esp + 0x16c]
mov dword [esp + 0x1c], eax
lea esi, [edi + 0x18]
nop dword [eax]
push dword [esi]
push str.SELECT_Deaths_FROM_DeathSystem_WHERE_m_Serial_d
push 0x439d58
call fcn.004112b0
add esp, 0xc
test al, al
je 0x40770b
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40770b
mov al, byte [esi - 4]
mov byte [esp + 0x30], al
mov eax, dword [esi]
push str.Deaths
mov dword [esp + 0x18], eax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x4076da
or eax, eax
jmp 0x4076eb
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push dword [0x439d64]
mov dword [esp + 0x38], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40776a
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_DeathSystem___m_Serial____Deaths___VALUES___d_0_
push 0x439d58
call fcn.004112b0
add esp, 0x10
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [esp + 0x30], al
mov eax, dword [esi]
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x1c]
add esi, 8
movq xmm0, qword [esp + 0x30]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc byte [esp + 0xa3]
inc edx
movq qword [eax], xmm0
mov dword [eax + 8], ecx
add eax, 0xc
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
add ecx, 0xc
movzx eax, byte [edi + 0x13]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], edx
cmp edx, eax
jl 0x407690
mov esi, dword [esp + 0x40]
mov eax, ecx
mov byte [esp + 0x92], cl
shr eax, 8
mov byte [esp + 0x91], al
mov eax, dword [esp + 0xa0]
movups xmm0, xmmword [esp + 0x90]
mov dword [esp + 0x168], eax
lea eax, [esp + 0x158]
push ecx
push eax
push esi
movups xmmword [esp + 0x164], xmm0
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
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 + 0x96], ax
movzx eax, word [edi + 0x10]
mov word [esp + 0xa0], ax
mov al, byte [edi + 0x12]
mov byte [esp + 0x90], 0xc2
mov word [esp + 0x93], 0x4118
mov dword [esp + 0x20], ecx
movq qword [esp + 0x98], xmm0
mov byte [esp + 0xa2], al
mov byte [esp + 0xa3], 0
mov dword [esp + 0x10], 0
jbe 0x4079a4
lea eax, [esp + 0x16c]
mov dword [esp + 0x1c], eax
lea esi, [edi + 0x18]
nop dword [eax + eax]
push dword [esi]
push str.SELECT_Deaths_FROM_DeathSystem_WHERE_m_Serial_d
push 0x439d58
call fcn.004112b0
add esp, 0xc
test al, al
je 0x4078fb
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4078fb
mov al, byte [esi - 4]
mov byte [esp + 0x30], al
mov eax, dword [esi]
push str.Deaths
mov dword [esp + 0x18], eax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x4078ca
or eax, eax
jmp 0x4078db
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push dword [0x439d64]
mov dword [esp + 0x38], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40795a
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_DeathSystem___m_Serial____Deaths___VALUES___d_0_
push 0x439d58
call fcn.004112b0
add esp, 0x10
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [esp + 0x30], al
mov eax, dword [esi]
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x1c]
add esi, 8
movq xmm0, qword [esp + 0x30]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc byte [esp + 0xa3]
inc edx
movq qword [eax], xmm0
mov dword [eax + 8], ecx
add eax, 0xc
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
add ecx, 0xc
movzx eax, byte [edi + 0x13]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], edx
cmp edx, eax
jl 0x407880
mov esi, dword [esp + 0x40]
mov eax, ecx
mov byte [esp + 0x92], cl
shr eax, 8
mov byte [esp + 0x91], al
mov eax, dword [esp + 0xa0]
movups xmm0, xmmword [esp + 0x90]
mov dword [esp + 0x168], eax
lea eax, [esp + 0x158]
push ecx
push eax
push esi
movups xmmword [esp + 0x164], xmm0
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x10], 1
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
jne 0x407a32
push dword [edi + 8]
push dword [edi + 0xc]
push str.UPDATE_DeathSystem_SET_DeathsDeaths_d_where_m_Serial_d
push 0x439d58
call fcn.004112b0
add esp, 0x10
push dword [0x439d64]
call esi
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp byte [edi + 0x10], 2
jne case.0x406906.1
push dword [edi + 8]
push dword [edi + 0xc]
push str.UPDATE_DeathSystem_SET_DeathsDeaths__d_where_m_Serial_d
push 0x439d58
call fcn.004112b0
add esp, 0x10
push dword [0x439d64]
call esi
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
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 + 0x96], ax
movzx eax, word [edi + 0x10]
mov word [esp + 0xa0], ax
mov al, byte [edi + 0x12]
mov byte [esp + 0x90], 0xc2
mov word [esp + 0x93], 0x4318
mov dword [esp + 0x20], ecx
movq qword [esp + 0x98], xmm0
mov byte [esp + 0xa2], al
mov byte [esp + 0xa3], 0
mov dword [esp + 0x10], 0
jbe 0x407c15
lea eax, [esp + 0x16c]
mov dword [esp + 0x1c], eax
lea esi, [edi + 0x18]
push dword [esi]
push str.SELECT_Deaths_FROM_DeathSystem_WHERE_m_Serial_d
push 0x439d58
call fcn.004112b0
add esp, 0xc
test al, al
je 0x407b6c
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407b6c
mov al, byte [esi - 4]
mov byte [esp + 0x30], al
mov eax, dword [esi]
push str.Deaths
mov dword [esp + 0x18], eax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x407b3b
or eax, eax
jmp 0x407b4c
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push dword [0x439d64]
mov dword [esp + 0x38], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x407bcb
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_DeathSystem___m_Serial____Deaths___VALUES___d_0_
push 0x439d58
call fcn.004112b0
add esp, 0x10
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [esp + 0x30], al
mov eax, dword [esi]
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x1c]
add esi, 8
movq xmm0, qword [esp + 0x30]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc byte [esp + 0xa3]
inc edx
movq qword [eax], xmm0
mov dword [eax + 8], ecx
add eax, 0xc
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
add ecx, 0xc
movzx eax, byte [edi + 0x13]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], edx
cmp edx, eax
jl 0x407af1
mov esi, dword [esp + 0x40]
mov eax, ecx
mov byte [esp + 0x92], cl
shr eax, 8
mov byte [esp + 0x91], al
mov eax, dword [esp + 0xa0]
movups xmm0, xmmword [esp + 0x90]
mov dword [esp + 0x168], eax
lea eax, [esp + 0x158]
push ecx
push eax
push esi
movups xmmword [esp + 0x164], xmm0
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
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 + 0x96], ax
movzx eax, word [edi + 0x10]
mov word [esp + 0xa0], ax
mov al, byte [edi + 0x12]
mov byte [esp + 0x90], 0xc2
mov word [esp + 0x93], 0x4418
mov dword [esp + 0x20], ecx
movq qword [esp + 0x98], xmm0
mov byte [esp + 0xa2], al
mov byte [esp + 0xa3], 0
mov dword [esp + 0x10], 0
jbe 0x407e04
lea eax, [esp + 0x16c]
mov dword [esp + 0x1c], eax
lea esi, [edi + 0x18]
nop dword [eax]
push dword [esi]
push str.SELECT_Deaths_FROM_DeathSystem_WHERE_m_Serial_d
push 0x439d58
call fcn.004112b0
add esp, 0xc
test al, al
je 0x407d5b
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407d5b
mov al, byte [esi - 4]
mov byte [esp + 0x30], al
mov eax, dword [esi]
push str.Deaths
mov dword [esp + 0x18], eax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x407d2a
or eax, eax
jmp 0x407d3b
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push dword [0x439d64]
mov dword [esp + 0x38], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x407dba
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [esi]
push str.INSERT_INTO_DeathSystem___m_Serial____Deaths___VALUES___d_0_
push 0x439d58
call fcn.004112b0
add esp, 0x10
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [esp + 0x30], al
mov eax, dword [esi]
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x1c]
add esi, 8
movq xmm0, qword [esp + 0x30]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc byte [esp + 0xa3]
inc edx
movq qword [eax], xmm0
mov dword [eax + 8], ecx
add eax, 0xc
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
add ecx, 0xc
movzx eax, byte [edi + 0x13]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], edx
cmp edx, eax
jl 0x407ce0
mov esi, dword [esp + 0x40]
mov eax, ecx
mov byte [esp + 0x92], cl
shr eax, 8
mov byte [esp + 0x91], al
mov eax, dword [esp + 0xa0]
movups xmm0, xmmword [esp + 0x90]
mov dword [esp + 0x168], eax
lea eax, [esp + 0x158]
push ecx
push eax
push esi
movups xmmword [esp + 0x164], xmm0
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
mov ax, word [edi + 4]
mov cl, 0x10
mov word [esp + 0x34], ax
mov eax, dword [edi + 8]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0xc]
xor edi, edi
mov word [esp + 0x30], 0x10c1
xor esi, esi
mov byte [esp + 0x32], 0x1e
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x5cd7c4]
test eax, eax
js 0x407eb5
cmp eax, 0x14
jge 0x407eb5
cmp dword [esi + 0x5cd7c8], 0
je 0x407eb5
cmp dword [esi + 0x5cd7dc], 0xffffffff
je 0x407eb5
movzx eax, cl
push eax
lea eax, [esp + 0x34]
push eax
push edi
call fcn.00412cb0
mov cl, byte [esp + 0x31]
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x407e81
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 4]
push eax
push str.EXEC_WZ_CW_InfoLoad__d
push 0x439d58
mov word [esp + 0x3c], 0x10c1
mov byte [esp + 0x3e], 0x1f
mov word [esp + 0x40], ax
call fcn.004112b0
add esp, 0xc
test al, al
je 0x407fa6
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407fa6
push str.CRYWOLF_STATE
call fcn.00411500
cmp eax, 0xffffffff
jne 0x407f2e
or eax, eax
jmp 0x407f3f
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push str.CRYWOLF_OCCUFY
mov dword [esp + 0x3c], eax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x407f56
or eax, eax
jmp 0x407f67
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push dword [0x439d64]
mov dword [esp + 0x40], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [esp + 0x34]
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [esp + 0x34]
mov dword [esp + 0x3c], 0
push eax
push esi
mov dword [esp + 0x48], 0
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
movq xmm0, qword [edi + 7]
mov cl, 0x4e
movzx eax, word [edi + 4]
movq qword [esp + 0xcf], xmm0
movups xmm0, xmmword [edi + 0x12]
mov word [esp + 0xcc], ax
mov al, byte [edi + 6]
movups xmmword [esp + 0xda], xmm0
mov byte [esp + 0xce], al
movups xmm0, xmmword [edi + 0x22]
movzx eax, word [edi + 0xf]
mov word [esp + 0xd7], ax
mov al, byte [edi + 0x11]
movups xmmword [esp + 0xea], xmm0
mov byte [esp + 0xd9], al
movups xmm0, xmmword [edi + 0x32]
mov eax, dword [edi + 0x4a]
mov word [esp + 0xc8], 0x4ec1
movups xmmword [esp + 0xfa], xmm0
mov byte [esp + 0xca], 0x20
movq xmm0, qword [edi + 0x42]
xor edi, edi
movq qword [esp + 0x10a], xmm0
xor esi, esi
mov dword [esp + 0x112], eax
nop
mov eax, dword [esi + 0x5cd7c4]
test eax, eax
js 0x4080ba
cmp eax, 0x14
jge 0x4080ba
cmp dword [esi + 0x5cd7c8], 0
je 0x4080ba
cmp dword [esi + 0x5cd7dc], 0xffffffff
je 0x4080ba
movzx eax, cl
push eax
lea eax, [esp + 0xcc]
push eax
push edi
call fcn.00412cb0
mov cl, byte [esp + 0xc9]
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x408080
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 4]
lea esi, [edi + 0x11]
mov word [esp + 0x15c], ax
mov ecx, 0x20
mov al, byte [edi + 6]
mov byte [esp + 0x15e], al
mov al, byte [edi + 7]
mov byte [esp + 0x15f], al
mov al, byte [edi + 8]
mov byte [esp + 0x160], al
movzx eax, word [edi + 0xa]
mov word [esp + 0x162], ax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x164], eax
mov al, byte [edi + 0x10]
lea edi, [esp + 0x169]
mov word [esp + 0x158], 0x94c1
mov byte [esp + 0x15a], 0x21
mov byte [esp + 0x168], al
rep movsd dword es:[edi], dword [esi]
xor edi, edi
xor esi, esi
nop dword [eax + eax]
mov eax, dword [esi + 0x5cd7c4]
test eax, eax
js 0x408188
cmp eax, 0x14
jge 0x408188
cmp dword [esi + 0x5cd7c8], 0
je 0x408188
cmp dword [esi + 0x5cd7dc], 0xffffffff
je 0x408188
movzx eax, byte [esp + 0x159]
push eax
lea eax, [esp + 0x15c]
push eax
push edi
call fcn.00412cb0
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x408150
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0040c190
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
push 0x5cb860
push 0
lea eax, [edi + 0x1c]
mov dword [0x5cb860], 0x6c0
push eax
push 0
push 0x6c0
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
lea eax, [edi + 0x11]
push eax
lea eax, [edi + 6]
push eax
push str.UPDATE_Character_SET_Inventory__WHERE_AccountID_s_AND_Name_s
push 0x439d58
call fcn.004112b0
add esp, 0x10
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_OptionData_WHERE_Name_s
push 0x439d58
mov dword [esp + 0x20], eax
call fcn.004112b0
add esp, 0xc
test al, al
je 0x4082ee
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4082ee
push dword [0x439d64]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x439d64]
call esi
mov eax, dword [esp + 0x10]
push 0x5cb860
push 0
add eax, 0x1c
mov dword [0x5cb860], 0xa
push eax
push 0
push 0xa
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
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 0x408363
push dword [0x439d64]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x439d64]
call esi
mov eax, dword [esp + 0x10]
push 0x5cb860
push 0
add eax, 0x1c
mov dword [0x5cb860], 0xa
push eax
push 0
push 0xa
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x439d64]
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 0x439d58
call fcn.004112b0
add esp, 0x20
push dword [0x439d64]
call edi
push 2
push dword [0x439d64]
call esi
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x11], 0
mov dword [esp + 0x14], 0
jbe case.0x406906.1
lea esi, [edi + 0x16]
nop dword [eax + eax]
push dword [esi - 4]
push str.SELECT_ItemSerial_FROM_T_PetItem_Info_WHERE_ItemSerial_d
push 0x439d58
call fcn.004112b0
add esp, 0xc
test al, al
je 0x408406
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408406
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
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 0x40842f
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
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 0x439d58
call fcn.004112b0
add esp, 0x14
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [esp + 0x14]
add esi, 0xc
movzx eax, byte [edi + 0x11]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, eax
jl 0x4083b0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
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 0x439d58
call fcn.004112b0
add esp, 0x20
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
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 0x439d58
call fcn.004112b0
add esp, 0x24
jmp 0x4084a8
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingDuel_WHERE_Name_s
push 0x439d58
mov dword [esp + 0x20], eax
call fcn.004112b0
add esp, 0xc
test al, al
je 0x408581
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408581
push dword [0x439d64]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x439d64]
call esi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push eax
push dword [edx + 0x20]
push dword [edx + 0x1c]
push str.UPDATE_RankingDuel_SET_WinScoreWinScore_d_LoseScoreLoseScore_d_WHERE_Name_s
push 0x439d58
call fcn.004112b0
add esp, 0x14
jmp 0x408370
push dword [0x439d64]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x439d64]
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 0x439d58
call fcn.004112b0
add esp, 0x14
jmp 0x408370
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingBloodCastle_WHERE_Name_s
push 0x439d58
mov dword [esp + 0x20], eax
call fcn.004112b0
add esp, 0xc
test al, al
je 0x408635
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408635
push dword [0x439d64]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x439d64]
call esi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push eax
push dword [edx + 0x1c]
push str.UPDATE_RankingBloodCastle_SET_ScoreScore_d_WHERE_Name_s
push 0x439d58
call fcn.004112b0
add esp, 0x10
jmp 0x408370
push dword [0x439d64]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x439d64]
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 0x439d58
call fcn.004112b0
add esp, 0x10
jmp 0x408370
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingChaosCastle_WHERE_Name_s
push 0x439d58
mov dword [esp + 0x20], eax
call fcn.004112b0
add esp, 0xc
test al, al
je 0x4086e6
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4086e6
push dword [0x439d64]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x439d64]
call esi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push eax
push dword [edx + 0x1c]
push str.UPDATE_RankingChaosCastle_SET_ScoreScore_d_WHERE_Name_s
push 0x439d58
call fcn.004112b0
add esp, 0x10
jmp 0x408370
push dword [0x439d64]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x439d64]
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 0x439d58
call fcn.004112b0
add esp, 0x10
jmp 0x408370
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingDevilSquare_WHERE_Name_s
push 0x439d58
mov dword [esp + 0x20], eax
call fcn.004112b0
add esp, 0xc
test al, al
je 0x408797
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408797
push dword [0x439d64]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x439d64]
call esi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push eax
push dword [edx + 0x1c]
push str.UPDATE_RankingDevilSquare_SET_ScoreScore_d_WHERE_Name_s
push 0x439d58
call fcn.004112b0
add esp, 0x10
jmp 0x408370
push dword [0x439d64]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x439d64]
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 0x439d58
call fcn.004112b0
add esp, 0x10
jmp 0x408370
lea eax, [edi + 0x11]
push eax
push str.SELECT_Name_FROM_RankingIllusionTemple_WHERE_Name_s
push 0x439d58
mov dword [esp + 0x20], eax
call fcn.004112b0
add esp, 0xc
test al, al
je 0x408848
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408848
push dword [0x439d64]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x439d64]
call esi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push eax
push dword [edx + 0x1c]
push str.UPDATE_RankingIllusionTemple_SET_ScoreScore_d_WHERE_Name_s
push 0x439d58
call fcn.004112b0
add esp, 0x10
jmp 0x408370
push dword [0x439d64]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x439d64]
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 0x439d58
call fcn.004112b0
add esp, 0x10
jmp 0x408370
lea eax, [edi + 6]
push eax
movzx eax, byte [edi + 0x11]
push eax
push str.UPDATE_AccountCharacter_SET_ExtClass_d_WHERE_Id_s
jmp 0x408200
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 0x439d58
call fcn.004112b0
add esp, 0x14
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40820d
push dword [edi + 0x28]
lea eax, [edi + 0x11]
push dword [edi + 0x24]
push dword [edi + 0x20]
push dword [edi + 0x1c]
push eax
lea eax, [edi + 6]
push eax
push str.EXEC_WZ_CustomMonsterReward__s__s__d__d__d__d
push 0x439d58
call fcn.004112b0
add esp, 0x20
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40820d
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 0x439d58
call fcn.004112b0
add esp, 0x1c
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFetch]
jmp 0x40820d
lea esi, [edi + 0x11]
push esi
lea eax, [esp + 0x94]
push eax
call fcn.00403270
test al, al
jne case.0x406906.1
push esi
lea eax, [esp + 0x94]
push 0xb
push eax
call fcn.0041789d
add esp, 0xc
lea eax, [edi + 6]
push eax
lea eax, [esp + 0x9f]
push 0xb
push eax
call fcn.0041789d
mov ax, word [edi + 4]
sub esp, 0x10
movups xmm0, xmmword [esp + 0xac]
mov word [esp + 0xc2], ax
mov eax, dword [esp + 0x38]
mov dx, word [eax + 0x5cd81c]
mov eax, esp
mov word [esp + 0xc4], dx
movups xmmword [eax], xmm0
movq xmm0, qword [esp + 0xbc]
movq qword [eax + 0x10], xmm0
mov word [eax + 0x18], dx
call fcn.00403400
xor dl, dl
mov ecx, esi
call fcn.00405ad0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
lea esi, [edi + 0x11]
push esi
lea eax, [esp + 0x94]
push eax
call fcn.00403270
test al, al
je case.0x406906.1
mov ax, word [esp + 0xa6]
cmp ax, word [edi + 4]
jne case.0x406906.1
mov eax, dword [esp + 0x1c]
mov dx, word [esp + 0xa8]
cmp dx, word [eax + 0x5cd81c]
jne case.0x406906.1
movups xmm0, xmmword [esp + 0x90]
sub esp, 0x1c
mov eax, esp
movups xmmword [eax], xmm0
movq xmm0, qword [esp + 0xbc]
movq qword [eax + 0x10], xmm0
mov word [eax + 0x18], dx
call fcn.00403840
mov dl, 1
mov ecx, esi
call fcn.00405ad0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 4]
movq xmm0, qword [edi + 6]
mov word [esp + 0xcc], ax
movzx eax, word [edi + 0xe]
mov word [esp + 0xd6], ax
mov al, byte [edi + 0x10]
mov byte [esp + 0xd8], al
movzx eax, word [edi + 0x19]
mov word [esp + 0xe1], ax
mov al, byte [edi + 0x1b]
mov byte [esp + 0xe3], al
lea eax, [edi + 0x1c]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x94]
movq qword [esp + 0xd2], xmm0
movq xmm0, qword [edi + 0x11]
push eax
mov word [esp + 0xd0], 0x64c1
mov byte [esp + 0xd2], 0x72
movq qword [esp + 0xe1], xmm0
call fcn.00403270
test al, al
jne 0x408aec
mov byte [esp + 0xe4], al
add edi, 0x27
jmp 0x408bfa
movzx eax, word [esp + 0xa6]
movq xmm0, qword [esp + 0x9b]
mov word [esp + 0x15c], ax
movzx eax, word [esp + 0xa3]
mov word [esp + 0x166], ax
mov al, byte [esp + 0xa5]
mov byte [esp + 0x168], al
movzx eax, word [esp + 0x98]
mov word [esp + 0x171], ax
mov al, byte [esp + 0x9a]
movq qword [esp + 0x15e], xmm0
movq xmm0, qword [esp + 0x90]
mov ecx, dword [esp + 0xa8]
mov byte [esp + 0x173], al
movzx eax, word [edi + 0x19]
movq qword [esp + 0x169], xmm0
movq xmm0, qword [edi + 0x11]
mov word [esp + 0x17c], ax
mov al, byte [edi + 0x1b]
add edi, 0x27
movq qword [esp + 0x174], xmm0
mov byte [esp + 0x17e], al
mov byte [esp + 0xe4], 1
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x38]
mov word [esp + 0x158], 0x64c1
movups xmmword [esp + 0x17f], xmm0
mov byte [esp + 0x15a], 0x73
movups xmm0, xmmword [edi + 0x10]
mov dword [esp + 0x1b7], eax
movups xmmword [esp + 0x18f], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [esp + 0x19f], xmm0
movq xmm0, qword [edi + 0x30]
movq qword [esp + 0x1af], xmm0
call fcn.00413b30
test eax, eax
je 0x408bfa
push 0x64
lea ecx, [esp + 0x15c]
push ecx
push dword [eax + 4]
call fcn.00412cb0
mov ecx, dword [esp + 0x14]
push 0x64
movq xmm0, qword [ecx]
mov ax, word [ecx + 8]
movq qword [esp + 0xe9], xmm0
movups xmm0, xmmword [edi]
mov word [esp + 0xf1], ax
mov al, byte [ecx + 0xa]
movups xmmword [esp + 0xf4], xmm0
mov byte [esp + 0xf3], al
movups xmm0, xmmword [edi + 0x10]
mov eax, dword [edi + 0x38]
mov dword [esp + 0x12c], eax
lea eax, [esp + 0xcc]
movups xmmword [esp + 0x104], xmm0
push eax
movups xmm0, xmmword [edi + 0x20]
push esi
movups xmmword [esp + 0x11c], xmm0
movq xmm0, qword [edi + 0x30]
movq qword [esp + 0x12c], xmm0
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
cmp byte [edi], 0xc1
jne 0x408c8a
mov al, byte [edi + 3]
jmp 0x408c8d
mov al, byte [edi + 4]
movzx eax, al
cmp eax, 0x1b
ja case.0x406906.1
jmp dword [eax*4 + 0x40a6cc]
movzx eax, word [edi + 4]
lea ecx, [esp + 0x90]
push ecx
push dword [edi + 8]
mov dword [esp + 0xd0], 0x8038c1
push eax
mov word [esp + 0xdc], ax
call fcn.00402490
test eax, eax
je 0x408cfb
push 0x38
lea eax, [esp + 0xcc]
mov dword [esp + 0xd0], 0
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
movzx eax, word [esp + 0x90]
xorps xmm0, xmm0
mov word [esp + 0xd2], ax
mov al, byte [esp + 0x92]
mov byte [esp + 0xd4], al
mov al, byte [esp + 0x93]
mov byte [esp + 0xd5], al
movzx eax, word [esp + 0x94]
mov word [esp + 0xd6], ax
mov al, byte [esp + 0x96]
mov byte [esp + 0xd8], al
mov al, byte [esp + 0x97]
mov byte [esp + 0xd9], al
mov al, byte [esp + 0x98]
mov ecx, dword [esp + 0xac]
mov byte [esp + 0xda], al
mov al, byte [esp + 0x99]
mov byte [esp + 0xdb], al
mov al, byte [esp + 0x9a]
mov byte [esp + 0xdc], al
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xe8], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xfc], eax
mov eax, dword [esp + 0x9b]
movq qword [esp + 0xdd], xmm0
mov dword [esp + 0xdd], eax
lea eax, [esp + 0xc8]
push 0x38
push eax
mov dword [esp + 0xf4], ecx
mov ecx, dword [esp + 0xa7]
push esi
mov dword [esp + 0xd8], 1
mov dword [esp + 0xed], ecx
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040c3d0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
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 + 0x9c], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0xa8], 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 + 0xa0], 0x3801cc1
push dword [edi + 0x1c]
mov word [esp + 0xac], si
push dword [edi + 0x18]
mov dword [esp + 0xb8], edx
push dword [edi + 0x14]
mov dword [esp + 0xc0], ecx
push ecx
push edx
push esi
push str.EXEC_WZ_CS_ReqNpcBuy__d___d___d___d___d___d___d___d___d___d
push 0x439d58
call fcn.004112b0
add esp, 0x30
push dword [0x439d64]
test al, al
je 0x408f4b
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x408f45
cmp ax, 0xffff
je 0x408f45
push str.QueryResult
call fcn.00411500
cmp eax, 0xffffffff
jne 0x408eea
or esi, eax
jmp 0x408efd
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
mov esi, eax
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1c
lea eax, [esp + 0x94]
mov dword [esp + 0x98], esi
push eax
push dword [esp + 0x48]
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x1c
lea eax, [esp + 0x94]
mov dword [esp + 0x98], 0
push eax
push dword [esp + 0x48]
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040c540
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 4]
mov word [esp + 0x98], ax
mov eax, dword [edi + 8]
mov edi, dword [edi + 0xc]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x90], 0x58024c1
mov dword [esp + 0xa0], 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 + 0xb0], edx
mov edx, dword [esp + 0x18]
push esi
mov dword [esp + 0xbc], eax
push edi
movzx eax, word [edx + 4]
push eax
push str.EXEC_WZ_CS_ReqNpcUpgrade__d___d___d___d___d
push 0x439d58
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc8], ecx
call fcn.004112b0
add esp, 0x1c
push dword [0x439d64]
test al, al
je 0x4090c1
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x4090bb
cmp ax, 0xffff
je 0x4090bb
push str.QueryResult
call fcn.00411500
cmp eax, 0xffffffff
je 0x40906f
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
test eax, eax
je 0x4090bb
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x24
lea eax, [esp + 0x94]
mov dword [esp + 0x98], 1
push eax
push dword [esp + 0x48]
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x24
lea eax, [esp + 0x94]
mov dword [esp + 0x98], 0
push eax
push dword [esp + 0x48]
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040c6a0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
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 0x439d58
mov dword [esp + 0x5c], 0x78018c1
mov word [esp + 0x64], cx
mov dword [esp + 0x68], eax
call fcn.004112b0
add esp, 0x14
push dword [0x439d64]
test al, al
je 0x40923b
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x409235
cmp ax, 0xffff
je 0x409235
push str.QueryResult
call fcn.00411500
cmp eax, 0xffffffff
jne 0x409193
or edi, eax
jmp 0x4091a6
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
mov edi, eax
push str.TaxKind
call fcn.00411500
cmp eax, 0xffffffff
jne 0x4091b9
or eax, eax
jmp 0x4091ca
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push str.TaxRate
mov dword [esp + 0x5c], eax
call fcn.00411500
cmp eax, 0xffffffff
jne 0x4091e1
or eax, eax
jmp 0x4091f2
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
push dword [0x439d64]
mov dword [esp + 0x60], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [esp + 0x4c]
mov dword [esp + 0x50], edi
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [esp + 0x4c]
mov dword [esp + 0x50], 0
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 8]
lea edx, [esp + 0x14]
movzx ecx, word [edi + 4]
xorps xmm0, xmm0
push edx
lea edx, [esp + 0x24]
mov dword [esp + 0xa0], eax
mov eax, dword [edi + 0xc]
push edx
push eax
push ecx
mov dword [esp + 0xa0], 0x88020c1
mov word [esp + 0xa8], cx
mov dword [esp + 0xb0], eax
mov dword [esp + 0x24], 0
movlpd qword [esp + 0x30], xmm0
call fcn.00402790
push 0x20
test eax, eax
je 0x4092f8
lea eax, [esp + 0x94]
mov dword [esp + 0x98], 0
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xac], eax
lea eax, [esp + 0x94]
push eax
push esi
mov dword [esp + 0xb8], ecx
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040c810
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 8]
movzx edx, word [edi + 4]
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x9c], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x130], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x94]
mov dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x138]
mov dword [esp + 0x98], 0xa8020c1
push eax
push edx
mov word [esp + 0xa8], dx
mov byte [esp + 0x148], 0
mov dword [esp + 0x144], ecx
call fcn.00402880
mov ecx, dword [esp + 0x14]
xor edx, edx
test eax, eax
lea eax, [esp + 0x90]
push 0x20
push eax
cmovne ecx, edx
push esi
mov dword [esp + 0xa0], ecx
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
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 0x439d58
mov dword [esp + 0x40], 0xb8010c1
mov word [esp + 0x48], ax
call fcn.004112b0
add esp, 0x10
push dword [0x439d64]
test al, al
je 0x4094a3
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x40949d
cmp ax, 0xffff
je 0x40949d
push str.QueryResult
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40944b
or edi, eax
jmp 0x40945e
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
mov edi, eax
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [esp + 0x34]
mov dword [esp + 0x38], edi
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x10
lea eax, [esp + 0x34]
mov dword [esp + 0x38], 0
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 4]
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x144], ecx
lea ecx, [esp + 0x140]
mov word [esp + 0x68], ax
lea edx, [ecx + 1]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x60], 0xc8018c1
mov byte [esp + 0x148], 0
mov dword [esp + 0x140], eax
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409520
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x409557
nop
mov dl, byte [esp + eax + 0x140]
cmp dl, 0x20
je 0x40962d
cmp dl, 0x22
je 0x40962d
cmp dl, 0x27
je 0x40962d
inc eax
cmp eax, ecx
jl 0x409530
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov dword [esp + 0x70], ecx
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x74], ecx
lea ecx, [esp + 0x140]
push ecx
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x78], eax
push str.EXEC_WZ_CS_ModifyCastleOwnerInfo__d___d___s
push 0x439d58
call fcn.004112b0
add esp, 0x14
push dword [0x439d64]
test al, al
je 0x409619
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x409613
cmp ax, 0xffff
je 0x409613
push str.QueryResult
call fcn.00411500
cmp eax, 0xffffffff
jne 0x4095c1
or edi, eax
jmp 0x4095d4
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
mov edi, eax
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [esp + 0x64]
mov dword [esp + 0x68], edi
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [esp + 0x64]
mov dword [esp + 0x68], 0
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
movzx ecx, word [edi + 4]
mov eax, dword [edi + 8]
mov word [esp + 0x80], cx
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x150], ecx
lea ecx, [esp + 0x14c]
mov dword [esp + 0x84], eax
lea edx, [ecx + 1]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x78], 0xd8018c1
mov byte [esp + 0x154], 0
mov dword [esp + 0x14c], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4096a0
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x4096d7
nop
mov dl, byte [esp + eax + 0x14c]
cmp dl, 0x20
je 0x4097ae
cmp dl, 0x22
je 0x4097ae
cmp dl, 0x27
je 0x4097ae
inc eax
cmp eax, ecx
jl 0x4096b0
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
mov dword [edi + 0xc], eax
lea eax, [esp + 0x14c]
push eax
push dword [esp + 0x18]
mov dword [edi + 0x10], ecx
push str.EXEC_WZ_CS_ReqRegAttackGuild__d___s
push 0x439d58
call fcn.004112b0
add esp, 0x10
push dword [0x439d64]
test al, al
je 0x40979a
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x409794
cmp ax, 0xffff
je 0x409794
push str.QueryResult
call fcn.00411500
cmp eax, 0xffffffff
jne 0x40973f
or edi, eax
jmp 0x409752
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
mov edi, eax
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [esp + 0x7c]
mov dword [esp + 0x80], edi
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x18
lea eax, [esp + 0x7c]
mov dword [esp + 0x80], 0
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 4]
push eax
push str.EXEC_WZ_CS_ResetCastleSiege__d
push 0x439d58
mov dword [esp + 0x13c], 0xe800cc1
mov word [esp + 0x144], ax
call fcn.004112b0
add esp, 0xc
push dword [0x439d64]
test al, al
je 0x409c2a
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x409c24
cmp ax, 0xffff
je 0x409c24
push str.QueryResult
call fcn.00411500
cmp eax, 0xffffffff
jne 0x409842
or edi, eax
jmp 0x409855
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
mov edi, eax
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [esp + 0x134]
mov dword [esp + 0x138], edi
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
mov ax, word [edi + 4]
lea esi, [edi + 6]
mov ecx, 0x20
mov dword [esp + 0x158], 0xf8086c1
lea edi, [esp + 0x15e]
mov word [esp + 0x15c], ax
rep movsd dword es:[edi], dword [esi]
xor edi, edi
xor esi, esi
mov eax, dword [esi + 0x5cd7c4]
test eax, eax
js 0x4098fa
cmp eax, 0x14
jge 0x4098fa
cmp dword [esi + 0x5cd7c8], 0
je 0x4098fa
cmp dword [esi + 0x5cd7dc], 0xffffffff
je 0x4098fa
push 0x86
lea eax, [esp + 0x15c]
push eax
push edi
call fcn.00412cb0
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x4098c6
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040c950
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040cad0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040cc40
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
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 0x439d58
mov dword [esp + 0xa4], 0x168014c1
mov word [esp + 0xac], dx
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], eax
call fcn.004112b0
add esp, 0x14
push dword [0x439d64]
test al, al
je 0x409a49
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x409a43
cmp ax, 0xffff
je 0x409a43
push str.QueryResult
call fcn.00411500
cmp eax, 0xffffffff
jne 0x4099eb
or edi, eax
jmp 0x4099fe
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
mov edi, eax
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x14
lea eax, [esp + 0x94]
mov dword [esp + 0x98], edi
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x14
lea eax, [esp + 0x94]
mov dword [esp + 0x98], 0
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
mov ax, word [edi + 4]
mov ecx, dword [edi + 0x1c]
mov word [esp + 0x94], ax
mov eax, dword [edi + 8]
mov dword [esp + 0x98], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x9c], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0xa0], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0xa4], eax
mov eax, dword [edi + 0x18]
xor edi, edi
mov dword [esp + 0x90], 0x178020c1
xor esi, esi
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
mov eax, dword [esi + 0x5cd7c4]
test eax, eax
js 0x409b14
cmp eax, 0x14
jge 0x409b14
cmp dword [esi + 0x5cd7c8], 0
je 0x409b14
cmp dword [esi + 0x5cd7dc], 0xffffffff
je 0x409b14
push 0x20
lea eax, [esp + 0x94]
push eax
push edi
call fcn.00412cb0
add esi, 0x68
inc edi
cmp esi, 0x820
jl 0x409ae3
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 4]
xorps xmm0, xmm0
mov ecx, dword [edi + 8]
mov dword [esp + 0x20], 0x18800cc1
mov word [esp + 0x28], ax
mov dword [esp + 0x14], 0
movlpd qword [esp + 0x130], xmm0
test ecx, ecx
jns 0x409b89
push 0xc
lea eax, [esp + 0x24]
mov dword [esp + 0x28], 0
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x134]
push edx
push ecx
push eax
call fcn.00402790
test eax, eax
je 0x409bca
push 0xc
lea eax, [esp + 0x24]
mov dword [esp + 0x28], 0
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push 0xc
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 4]
push eax
mov dword [esp + 0x134], 0x19800cc1
push str.EXEC_WZ_CS_ResetCastleTaxInfo__d
jmp 0x409c82
movzx eax, word [edi + 4]
push eax
mov dword [esp + 0x134], 0x1a800cc1
push str.EXEC_WZ_CS_ResetSiegeGuildInfo__d
jmp 0x409c82
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [esp + 0x134]
mov dword [esp + 0x138], 0
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
movzx eax, word [edi + 4]
push eax
mov dword [esp + 0x134], 0x1b800cc1
push str.EXEC_WZ_CS_ResetRegSiegeInfo__d
push 0x439d58
mov word [esp + 0x144], ax
call fcn.004112b0
add esp, 0xc
push dword [0x439d64]
test al, al
je 0x409c2a
call dword [sym.imp.ODBC32.dll_SQLFetch]
movzx eax, ax
cmp ax, 0x64
je 0x409c24
cmp ax, 0xffff
je 0x409c24
push str.QueryResult
call fcn.00411500
cmp eax, 0xffffffff
jne 0x409cd1
or edi, eax
jmp 0x409ce4
shl eax, 0xd
add eax, 0x43b53e
push eax
call fcn.0041a6da
add esp, 4
mov edi, eax
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xc
lea eax, [esp + 0x134]
mov dword [esp + 0x138], edi
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040cdc0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
test edi, edi
je case.0x406906.1
movzx eax, word [edi + 4]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x170]
mov word [esp + 0x164], ax
push ecx
push eax
mov dword [esp + 0x20], 0xc8
mov dword [esp + 0x174], 0
call fcn.004029e0
mov byte [esp + 0x158], 0xc2
mov byte [esp + 0x15b], 0x82
test eax, eax
je 0x409da8
mov edx, dword [esp + 0x168]
mov dword [esp + 0x15c], 0
jmp 0x409dbe
mov edx, dword [esp + 0x14]
mov dword [esp + 0x15c], 1
mov dword [esp + 0x168], edx
lea eax, [edx*8]
sub eax, edx
lea eax, [eax*4 + 0x14]
movzx ecx, ax
mov eax, ecx
shr eax, 8
mov byte [esp + 0x159], al
lea eax, [edx*8]
sub eax, edx
lea eax, [eax*4 + 0x14]
push eax
lea eax, [esp + 0x15c]
mov byte [esp + 0x15e], cl
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
test edi, edi
je case.0x406906.1
mov eax, dword [edi + 8]
movzx ecx, word [edi + 4]
mov dword [esp + 0x164], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x170]
mov word [esp + 0x164], cx
push eax
push ecx
mov dword [esp + 0x20], 0x64
mov dword [esp + 0x174], 0
call fcn.00402c90
mov byte [esp + 0x158], 0xc2
mov byte [esp + 0x15b], 0x83
test eax, eax
je 0x409eab
mov edx, dword [esp + 0x168]
mov eax, edx
shl eax, 4
add eax, 0x14
shl edx, 4
movzx ecx, ax
mov eax, ecx
mov dword [esp + 0x15c], 0
shr eax, 8
add edx, 0x14
mov byte [esp + 0x159], al
lea eax, [esp + 0x158]
push edx
jmp 0x409df5
mov edx, dword [esp + 0x14]
mov eax, edx
shl eax, 4
add eax, 0x14
mov dword [esp + 0x168], edx
movzx ecx, ax
mov eax, ecx
shl edx, 4
shr eax, 8
add edx, 0x14
mov byte [esp + 0x159], al
lea eax, [esp + 0x158]
push edx
push eax
push esi
mov dword [esp + 0x168], 1
mov byte [esp + 0x166], cl
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
test edi, edi
je case.0x406906.1
movzx eax, word [edi + 4]
push eax
push str.DELETE_MuCastle_NPC_WHERE_MAP_SVR_GROUP___d
push 0x439d58
mov word [esp + 0x13c], 0xcc1
mov byte [esp + 0x13e], 0x84
mov word [esp + 0x144], ax
mov dword [esp + 0x28], eax
call fcn.004112b0
add esp, 0xc
push dword [0x439d64]
test al, al
je 0x40a01c
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp dword [edi + 8], 0
mov dword [esp + 0x14], 0
jle 0x409fed
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 + 0x40]
push str.EXEC_WZ_CS_ReqNpcBuy__d___d___d___d___d___d___d___d___d___d
push 0x439d58
call fcn.004112b0
add esp, 0x30
push dword [0x439d64]
test al, al
je 0x40a01c
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
inc eax
add ecx, 0x1c
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
cmp eax, dword [edi + 8]
jl 0x409f80
mov dword [esp + 0x134], 1
push 0xc
lea eax, [esp + 0x134]
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [esp + 0x134], 0
lea eax, [esp + 0x130]
push 0xc
jmp 0x409dfc
test edi, edi
je case.0x406906.1
movzx eax, word [edi + 4]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x16c]
mov word [esp + 0x164], ax
push ecx
push eax
mov dword [esp + 0x20], 0x64
mov dword [esp + 0x170], 0
call fcn.00402e40
mov byte [esp + 0x158], 0xc2
mov byte [esp + 0x15b], 0x85
test eax, eax
je 0x40a0d9
mov edx, dword [esp + 0x164]
mov dword [esp + 0x15c], 0
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
movzx ecx, ax
mov eax, ecx
shr eax, 8
mov byte [esp + 0x159], al
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
push eax
lea eax, [esp + 0x15c]
jmp 0x409df5
mov edx, dword [esp + 0x14]
mov dword [esp + 0x15c], 1
mov dword [esp + 0x164], edx
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
movzx ecx, ax
mov eax, ecx
mov byte [esp + 0x15a], cl
shr eax, 8
mov byte [esp + 0x159], al
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x10]
push eax
lea eax, [esp + 0x15c]
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040cfc0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.0040d1e0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
test edi, edi
je case.0x406906.1
movzx eax, word [edi + 4]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x16c]
mov word [esp + 0x164], ax
push ecx
push eax
mov dword [esp + 0x20], 0x64
mov dword [esp + 0x170], 0
call fcn.00403040
mov byte [esp + 0x158], 0xc2
mov byte [esp + 0x15b], 0x88
test eax, eax
je 0x40a206
mov edx, dword [esp + 0x164]
mov dword [esp + 0x15c], 0
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
movzx ecx, ax
mov eax, ecx
shr eax, 8
mov byte [esp + 0x159], al
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
push eax
lea eax, [esp + 0x15c]
jmp 0x409df5
mov edx, dword [esp + 0x14]
mov dword [esp + 0x15c], 1
mov dword [esp + 0x164], edx
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
movzx ecx, ax
mov eax, ecx
mov byte [esp + 0x15a], cl
shr eax, 8
mov byte [esp + 0x159], al
lea eax, [edx + edx*4]
lea eax, [eax*4 + 0x10]
push eax
lea eax, [esp + 0x15c]
push eax
push esi
call fcn.00412cb0
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
test edi, edi
je case.0x406906.1
movzx eax, word [edi + 4]
push eax
push str.DELETE_MuCastle_NPC_WHERE_MAP_SVR_GROUP___d
push 0x439d58
mov word [esp + 0x13c], 0xcc1
mov byte [esp + 0x13e], 0x89
mov word [esp + 0x144], ax
mov dword [esp + 0x28], eax
call fcn.004112b0
add esp, 0xc
push dword [0x439d64]
test al, al
je 0x40a353
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp dword [edi + 8], 0
mov dword [esp + 0x14], 0
jle 0x409fed
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 + 0x40]
push str.EXEC_WZ_CS_ReqNpcUpdate__d___d___d___d___d___d___d___d___d___d
push 0x439d58
call fcn.004112b0
add esp, 0x30
push dword [0x439d64]
test al, al
je 0x40a353
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
inc eax
add ecx, 0x1c
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
cmp eax, dword [edi + 8]
jl 0x40a2e1
jmp 0x409fed
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x439d64]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [esp + 0x134], 0
jmp 0x409ff8
push dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.0040d4b0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0x1924]
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret
push dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.004047a0
add esp, 8
mov ecx, dword [esp + 0x192c]
pop edi
pop esi
xor ecx, esp
call fcn.00414177
mov esp, ebp
pop ebp
ret