Function at 0x42f360
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x458330]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 0x42c], 0
xor eax, eax
mov dword [ebp - 0x42b], eax
mov dword [ebp - 0x427], eax
mov word [ebp - 0x423], ax
mov byte [ebp - 0x14], 0
xor ecx, ecx
mov dword [ebp - 0x13], ecx
mov dword [ebp - 0xf], ecx
mov word [ebp - 0xb], cx
push 0xa
mov edx, dword [ebp + 0x10]
add edx, 3
push edx
lea eax, [ebp - 0x42c]
push eax
call fcn.004360a0
add esp, 0xc
push 0xa
mov ecx, dword [ebp + 0x10]
add ecx, 0xd
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.004360a0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x42c]
push ecx
push str.Da_nhan_thong_tin_Save_log_chaos___s___s_
call dword [0x459a90]
add esp, 0xc
mov byte [ebp - 0x418], 0
push 0x3ff
push 0
lea edx, [ebp - 0x417]
push edx
call fcn.00435470
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x44c], 0
jmp 0x42f42e
mov eax, dword [ebp - 0x44c]
add eax, 1
mov dword [ebp - 0x44c], eax
cmp dword [ebp - 0x44c], 0x20
jge 0x42f4a6
mov ecx, dword [ebp - 0x44c]
mov edx, dword [ebp + 0x10]
cmp dword [edx + ecx*4 + 0x18], 0
jne 0x42f475
mov eax, dword [ebp - 0x44c]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + eax*4 + 0x18]
push edx
push 0x44f02c
mov eax, dword [ebp - 4]
lea ecx, [ebp + eax - 0x418]
push ecx
call fcn.00436b17
add esp, 0xc
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
jmp 0x42f4a6
mov edx, dword [ebp - 0x44c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx*4 + 0x18]
push ecx
push 0x44f028
mov edx, dword [ebp - 4]
lea eax, [ebp + edx - 0x418]
push eax
call fcn.00436b17
add esp, 0xc
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
jmp 0x42f41f
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xf030
push edx
push str.SELECT_COUNT___as_cnt_FROM__s.dbo.ChaosLogs_WHERE_item_seri_in___s_
mov eax, dword [ebp + 8]
add eax, 0x7dc0
push eax
call fcn.00407950
add esp, 0x10
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 1
jne 0x42f57c
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407bb0
movsx ecx, ax
cmp ecx, 0x64
je 0x42f57c
push 0x44efdc
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jle 0x42f57c
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx + 0x9a]
cmp eax, 1
jne 0x42f57c
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
lea ecx, [ebp - 0x42c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xf030
push edx
push str.UPDATE__s.dbo.MEMB_INFO_SET_bloc_code__1_WHERE_memb___id_s
mov eax, dword [ebp + 8]
add eax, 0x7dc0
push eax
call fcn.00407950
add esp, 0x10
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407bb0
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
lea ecx, [ebp - 0x14]
push ecx
call fcn.00405550
add esp, 4
cmp eax, 1
jne 0x42f6bf
lea edx, [ebp - 0x14]
push edx
call fcn.00405480
add esp, 4
cmp eax, 1
jne 0x42f6bf
lea eax, [ebp - 0x42c]
push eax
call fcn.00405550
add esp, 4
cmp eax, 1
jne 0x42f6bf
lea ecx, [ebp - 0x42c]
push ecx
call fcn.00405480
add esp, 4
cmp eax, 1
jne 0x42f6bf
mov dword [ebp - 0x450], 0
jmp 0x42f5ff
mov edx, dword [ebp - 0x450]
add edx, 1
mov dword [ebp - 0x450], edx
cmp dword [ebp - 0x450], 0x20
jge 0x42f6bf
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + eax*4 + 0x18], 0
ja 0x42f621
jmp 0x42f6bf
mov edx, dword [ebp - 0x450]
mov eax, dword [ebp + 0x10]
cmp dword [eax + edx*4 + 0x18], 0xfffffffc
je 0x42f6ba
mov ecx, dword [ebp - 0x450]
mov edx, dword [ebp + 0x10]
cmp dword [edx + ecx*4 + 0x18], 0xfffffffd
je 0x42f6ba
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + eax*4 + 0x18], 0xfffffffe
je 0x42f6ba
mov edx, dword [ebp - 0x450]
mov eax, dword [ebp + 0x10]
cmp dword [eax + edx*4 + 0x18], 0xffffffff
je 0x42f6ba
mov ecx, dword [ebp - 0x450]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + ecx*4 + 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x42c]
push edx
mov eax, dword [ebp + 8]
add eax, 0xf030
push eax
push str.INSERT_INTO__s.dbo.ChaosLogs__account__character__item_seri__created_time__VALUES___s__s__d_GetDate___
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
push ecx
call fcn.00407950
add esp, 0x18
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407bb0
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
jmp 0x42f5f0
mov byte [ebp - 0x448], 0
xor edx, edx
mov dword [ebp - 0x447], edx
mov dword [ebp - 0x443], edx
mov dword [ebp - 0x43f], edx
mov dword [ebp - 0x43b], edx
mov dword [ebp - 0x437], edx
mov dword [ebp - 0x433], edx
mov word [ebp - 0x42f], dx
mov byte [ebp - 0x42d], dl
push 0x1c
push 0xef
lea eax, [ebp - 0x448]
push eax
call fcn.00405400
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov dx, word [ecx + 0x98]
mov word [ebp - 0x430], dx
mov al, byte [ebp - 0x41c]
mov byte [ebp - 0x42e], al
push 0xa
mov ecx, dword [ebp + 0x10]
add ecx, 3
push ecx
lea edx, [ebp - 0x445]
push edx
call fcn.004360a0
add esp, 0xc
push 0xa
mov eax, dword [ebp + 0x10]
add eax, 0xd
push eax
lea ecx, [ebp - 0x43b]
push ecx
call fcn.004360a0
add esp, 0xc
push 0x1c
lea edx, [ebp - 0x448]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406820
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00435f91
mov esp, ebp
pop ebp
ret