Function at 0x4aeb89
Capabilities:
Reference sql statements

Disassembly:
push ebp
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4aeb90
call fcn.005b13d0
cmp dword [0x7c1a94], 0
je 0x4af15c
call fcn.0051b7ea
push edx
call fcn.005b1230
pop edx
push eax
push edx
call fcn.005b1230
pop edx
push eax
mov edx, str.UPDATE_session_SET_os_id__null__end_time_
push edx
call fcn.005b1270
push edx
call fcn.005b1230
pop edx
push eax
push edx
call fcn.005b1230
pop edx
push eax
call fcn.0059d877
cdq
push edx
push eax
call fcn.005adc10
pop eax
mov edx, 0x72b414
push edx
call fcn.005b1270
push edx
call fcn.005b1230
pop edx
push eax
push edx
call fcn.005b1230
pop edx
push eax
mov eax, dword [0x7c20c0]
cdq
push edx
push eax
call fcn.005adc10
pop eax
call fcn.005b1360
push 1
call fcn.0054d542
add dword [esp + 4], edx
call fcn.0059df89
call fcn.0054d560
push dword [0x7c1a5c]
call fcn.00506c94
mov edx, 0x72b0ec
lea ecx, [esp]
call fcn.0054d008
mov ebx, dword [0x7c211c]
cmp ebx, 1
jne 0x4aed6e
mov edx, 0x73d13a
lea ecx, [esp + 4]
call fcn.0054d008
mov edx, dword [esp + 4]
push edx
call fcn.005b1230
pop edx
push eax
push edx
call fcn.005b1270
mov edx, str.WHERE_end_time____0_OR_warned__1
push edx
call fcn.005b1270
lea eax, [esp + 8]
push eax
call fcn.005b12d0
mov edx, dword [esp + 4]
push edx
call fcn.005b1230
pop edx
push eax
push edx
call fcn.005b1270
mov edx, str.ORDER_BY_start_time_DESC
push edx
call fcn.005b1270
lea eax, [esp + 8]
push eax
call fcn.005b12d0
push dword [esp + 4]
push 1
call fcn.0059de4c
and eax, eax
je 0x4aed69
mov dword [esp + 8], 0
mov ebx, dword [esp + 8]
cmp ebx, dword [0x7c21d0]
jge 0x4aecf5
push 1
call fcn.0059de5e
and eax, eax
je 0x4aecf5
mov eax, 1
jmp 0x4aecf7
xor eax, eax
and eax, eax
je 0x4aed01
inc dword [esp + 8]
jmp 0x4aecd4
push 1
call fcn.0059de5e
and eax, eax
je 0x4aed5f
mov edx, dword [esp]
push edx
call fcn.005b1230
pop edx
push eax
push edx
call fcn.005b1270
mov edx, 0x743b48
push edx
call fcn.005b1270
push edx
call fcn.005b1230
pop edx
push eax
push edx
call fcn.005b1230
pop edx
push eax
push 0
push 1
call fcn.0059de86
cdq
push edx
push eax
call fcn.005adc10
pop eax
lea eax, [esp + 4]
push eax
call fcn.005b12d0
jmp 0x4aed01
push 1
call fcn.0059dedf
jmp 0x4aef00
mov ebx, dword [0x7c211c]
cmp ebx, 2
jne 0x4aef00
call fcn.0059d877
mov dword [esp + 0xc], eax
push 0
push 0
push 0
push dword [esp + 0x18]
call fcn.0059d8f6
push eax
push dword [esp + 0x1c]
call fcn.0059d8d4
push eax
push dword [esp + 0x20]
call fcn.0059d8ae
push eax
call fcn.0059d691
mov dword [0x7c1c78], eax
mov ebx, dword [0x7c1eb0]
neg ebx
push ebx
push 3
push dword [0x7c1c78]
call fcn.0059d938
mov dword [esp + 0x10], eax
mov edx, 0x73d13a
lea ecx, [esp + 4]
call fcn.0054d008
mov edx, dword [esp + 4]
push edx
call fcn.005b1230
pop edx
push eax
push edx
call fcn.005b1270
mov edx, str.WHERE__end_time__
push edx
call fcn.005b1270
push edx
call fcn.005b1230
pop edx
push eax
push edx
call fcn.005b1230
pop edx
push eax
mov eax, dword [esp + 0x1c]
cdq
push edx
push eax
call fcn.005adc10
pop eax
mov edx, str._AND_end_time____0_
push edx
call fcn.005b1270
lea eax, [esp + 8]
push eax
call fcn.005b12d0
mov edx, dword [esp + 4]
push edx
call fcn.005b1230
pop edx
push eax
push edx
call fcn.005b1270
mov edx, str.OR__end_time__0_AND_start_time__
push edx
call fcn.005b1270
push edx
call fcn.005b1230
pop edx
push eax
push edx
call fcn.005b1230
pop edx
push eax
mov eax, dword [esp + 0x1c]
cdq
push edx
push eax
call fcn.005adc10
pop eax
mov edx, str._AND_warned__1_
push edx
call fcn.005b1270
lea eax, [esp + 8]
push eax
call fcn.005b12d0
push dword [esp + 4]
push 1
call fcn.0059de4c
and eax, eax
je 0x4aef00
push 1
call fcn.0059de5e
and eax, eax
je 0x4aeef6
mov edx, dword [esp]
push edx
call fcn.005b1230
pop edx
push eax
push edx
call fcn.005b1270
mov edx, 0x743b48
push edx
call fcn.005b1270
push edx
call fcn.005b1230
pop edx
push eax
push edx
call fcn.005b1230
pop edx
push eax
push 0
push 1
call fcn.0059de86
cdq
push edx
push eax
call fcn.005adc10
pop eax
lea eax, [esp + 4]
push eax
call fcn.005b12d0
jmp 0x4aee98
push 1
call fcn.0059dedf
push 8
push 0x74c62c
lea eax, [esp + 0x1c]
push eax
push 4
call fcn.005a9c0a
mov eax, str.SELECT_session_id_FROM_session
push eax
push 1
call fcn.0059de4c
and eax, eax
je 0x4af053
push 1
call fcn.0059de5e
and eax, eax
je 0x4aef76
push dword [esp + 0x14]
call fcn.005a9c9c
push edx
call fcn.005b1230
pop edx
push eax
push edx
call fcn.005b1230
pop edx
push eax
push 0
push 1
call fcn.0059deb2
mov ebp, dword [esp + 0x1c]
lea eax, [ebp + 8]
push eax
call fcn.005b12d0
jmp 0x4aef31
push 1
call fcn.0059dedf
push dword [esp + 0x14]
call fcn.005a9d3a
push dword [esp + 0x14]
call fcn.005a9d4f
or eax, eax
je 0x4af053
push edx
call fcn.005b1230
pop edx
push eax
push edx
call fcn.005b1230
pop edx
push eax
mov edx, str.SELECT_COUNT___FROM_event_WHERE_session_id
push edx
call fcn.005b1270
mov ebp, dword [esp + 0x20]
mov edx, dword [ebp + 8]
push edx
call fcn.005b1270
mov edx, 0x72c470
push edx
call fcn.005b1270
call fcn.005b1360
push 1
call fcn.0054d542
add dword [esp + 4], edx
call fcn.0059de4c
call fcn.0054d560
and eax, eax
je 0x4af04e
push 1
call fcn.0059de5e
and eax, eax
je 0x4af044
push 0
push 1
call fcn.0059de86
mov ebx, eax
and ebx, ebx
jne 0x4af044
mov edx, dword [esp]
push edx
call fcn.005b1230
pop edx
push eax
push edx
call fcn.005b1270
mov edx, 0x743b48
push edx
call fcn.005b1270
mov ebp, dword [esp + 0x1c]
mov edx, dword [ebp + 8]
push edx
call fcn.005b1270
lea eax, [esp + 4]
push eax
call fcn.005b12d0
push 1
call fcn.0059dedf
jmp 0x4aef89
push dword [esp + 0x14]
call fcn.005aa00a
push dword [esp]
mov edx, 0x72b0ec
pop ecx
call fcn.0054d570
jne 0x4af152
push edx
call fcn.005b1230
pop edx
push eax
push edx
call fcn.005b1230
pop edx
push eax
push 3
push dword [esp + 0xc]
call fcn.005ae180
lea eax, [esp + 4]
push eax
call fcn.005b12d0
mov eax, str.BEGIN_TRANSACTION
push eax
push 1
call fcn.0059df89
push edx
call fcn.005b1230
pop edx
push eax
push edx
call fcn.005b1230
pop edx
push eax
mov edx, str.DELETE_FROM_event_WHERE_session_id_IN__
push edx
call fcn.005b1270
mov edx, dword [esp + 8]
push edx
call fcn.005b1270
mov edx, 0x72c52e
push edx
call fcn.005b1270
call fcn.005b1360
push 1
call fcn.0054d542
add dword [esp + 4], edx
call fcn.0059df89
call fcn.0054d560
push edx
call fcn.005b1230
pop edx
push eax
push edx
call fcn.005b1230
pop edx
push eax
mov edx, str.DELETE_FROM_session_WHERE_session_id_IN__
push edx
call fcn.005b1270
mov edx, dword [esp + 8]
push edx
call fcn.005b1270
mov edx, 0x72c52e
push edx
call fcn.005b1270
call fcn.005b1360
push 1
call fcn.0054d542
add dword [esp + 4], edx
call fcn.0059df89
call fcn.0054d560
mov eax, str.COMMIT_TRANSACTION
push eax
push 1
call fcn.0059df89
push 1
call fcn.0059dd21
xor eax, eax
push dword [esp + 4]
call fcn.005b1460
push dword [esp]
call fcn.005b1460
push eax
push dword [esp + 0x18]
call fcn.005aa00a
pop eax
add esp, 0x1c
pop ebx
pop ebp
ret