Function at 0x1002fc80
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x1b0
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x1ac], eax
mov eax, dword [esp + 0x1b8]
push ebx
mov ebx, dword [esp + 0x1c0]
push ebp
push esi
push edi
push dword [0x10137248]
mov dword [esp + 0x2c], eax
xor edi, edi
mov eax, dword [esp + 0x1d4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1d8]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x4c], 0
call sub.KERNEL32.dll_EnterCriticalSection
push 0x82
call fcn.101174f0
push 0x200
mov dword [esp + 0x20], eax
call fcn.101174f0
mov ebp, eax
push 0x12c
mov dword [esp + 0x20], ebp
call fcn.101174f0
push 0x82
mov dword [esp + 0x40], eax
call fcn.101174f0
mov esi, eax
add esp, 0x10
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
test eax, eax
je 0x10030847
test ebp, ebp
je 0x10030847
cmp dword [esp + 0x30], edi
je 0x10030847
test esi, esi
je 0x10030847
push 0xbf8
call fcn.101174f0
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
jne 0x1002fd6f
mov ebx, 0xfffffc0d
jmp 0x1003016d
mov ebp, dword [esp + 0x1c4]
push ebp
call fcn.10037280
test eax, eax
jne 0x1002fd8a
mov ebx, 0xfffffbb0
jmp 0x10030169
push dword [esp + 0x28]
push ebp
call fcn.1003bb80
test eax, eax
jne 0x1002fda2
mov ebx, 0xfffffc0e
jmp 0x10030169
push dword [esp + 0x28]
push ebp
call fcn.100372c0
test eax, eax
jne 0x1002fdd4
push dword [esp + 0x28]
call fcn.10027450
test eax, eax
je 0x1002fdca
push dword [esp + 0x28]
call fcn.100ed982
test eax, eax
je 0x1002fdd4
mov ebx, 0xfffffc17
jmp 0x10030169
cmp dword [esp + 0x1d8], 0x2c
mov eax, dword [esp + 0x10]
mov dword [eax + 4], 0xffffffff
jae 0x1002fdf3
mov ebx, 0xfffffbf2
jmp 0x10030169
test ebx, ebx
je 0x1002fe03
xor eax, eax
cmp word [ebx], ax
cmove ebx, eax
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1002fe17
xor ecx, ecx
cmp word [eax], cx
cmove eax, ecx
mov dword [esp + 0x2c], eax
test ebx, ebx
je 0x1002fe29
test eax, eax
je 0x1002fe45
mov ebx, 0xfffffc15
jmp 0x10030169
test eax, eax
je 0x1002fe45
push dword [esp + 0x18]
push dword [esp + 0x18]
push eax
call fcn.1002eeb0
mov ebx, eax
test ebx, ebx
js 0x10030169
mov ecx, 0x30
lea edi, [esp + 0xfc]
mov esi, 0x10003160
lea eax, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x28]
push eax
push edi
push ebp
call fcn.1002edd0
mov ebx, eax
test ebx, ebx
js 0x10030161
mov eax, dword [esp + 0x5c]
push 8
push 4
mov dword [esp + 0x110], eax
mov dword [esp + 0x128], eax
mov dword [esp + 0x140], eax
mov dword [esp + 0x158], eax
mov dword [esp + 0x170], eax
mov dword [esp + 0x188], eax
mov dword [esp + 0x1a0], eax
mov dword [esp + 0x1b8], eax
lea eax, [esp + 0x54]
push eax
push edi
push ebp
call fcn.1003b6c0
mov ebx, eax
test ebx, ebx
js 0x10030161
mov eax, dword [esp + 0x4c]
cmp eax, 0x10000
je 0x1002feda
cmp eax, 0x10001
jne 0x1002fee1
mov esi, 1
jmp 0x1002fee3
xor esi, esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1002ff02
lea ecx, [esp + 0x48]
push ecx
push eax
push edi
push ebp
call fcn.1002f210
mov ebx, eax
test ebx, ebx
js 0x10030161
test esi, esi
je 0x100301de
mov esi, dword [esp + 0x10]
mov dword [esp + 0x110], 0
mov dword [esp + 0x158], 0
lea eax, [esi + 0xc]
push eax
lea edi, [esi + 4]
push edi
push 0xc
push 8
lea eax, [esp + 0x10c]
push eax
push ebp
call fcn.10069c10
mov ebx, eax
test ebx, ebx
js 0x10030161
cmp dword [esp + 0x2c], 0
je 0x1002ff62
push 0
push 0x2c
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
jmp 0x1002ff7f
mov ecx, dword [esp + 0x38]
xor eax, eax
test ecx, ecx
setne al
lea eax, [eax*2 + 1]
push eax
push 0x2c
lea eax, [esp + 0x70]
push eax
push 0
push ecx
push dword [esp + 0x3c]
push ebp
call fcn.1003b810
mov ebx, eax
test ebx, ebx
jns 0x1002ffa7
mov edi, esi
cmp ebx, 0xfffffc13
jne 0x1003080f
mov ebx, 0xfffffae7
jmp 0x1003080f
push esi
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.10030a20
push 0
push 0
push Ordinal_2
push 8
lea eax, [esp + 0xcc]
push eax
push dword [edi]
push dword [esp + 0x84]
push ebp
call fcn.1003bf70
push dword [esp + 0x6c]
mov ebx, eax
push ebp
call fcn.1003bdc0
cmp ebx, 0xfffff9bd
jne 0x1003080d
mov eax, dword [esp + 0x70]
push 0
push Ordinal_2
push dword [edi]
mov dword [esi + 8], eax
push ebp
call fcn.1003c7d0
mov ebx, eax
test ebx, ebx
js 0x1003010c
mov ecx, dword [esp + 0x30]
mov edx, 0x5b
lea eax, [ecx + 2]
mov dword [esp + 0x34], eax
jmp 0x1003002a
mov ecx, dword [esp + 0x30]
push 0
push 0
mov word [ecx], dx
lea ecx, [esp + 0x4c]
push ecx
push 0x95
push eax
push dword [esi + 0x1c]
push dword [edi]
push ebp
call fcn.1003cb60
mov ebx, eax
test ebx, ebx
js 0x1003076b
mov esi, dword [esp + 0x44]
lea eax, [esp + 0x44]
mov ecx, dword [esp + 0x30]
push 0
push 0
push eax
shr esi, 1
mov eax, 0x96
mov dword [ecx + esi*2 + 2], 0x2e005d
add esi, 3
sub eax, esi
push eax
lea eax, [ecx + esi*2]
push eax
mov eax, dword [esp + 0x24]
push dword [eax + 0xc]
push dword [edi]
push ebp
call fcn.1003cb60
mov ebx, eax
test ebx, ebx
js 0x1003076b
mov eax, dword [esp + 0x44]
push 2
push dword [edi]
shr eax, 1
push ebp
add esi, eax
call fcn.1003c9c0
mov ebx, eax
test ebx, ebx
js 0x1003076b
push 0
push 0
lea eax, [esi + esi]
mov esi, dword [esp + 0x18]
push eax
push dword [esp + 0x3c]
push dword [esi + 0xc]
push dword [edi]
push ebp
call fcn.1003cd80
mov ebx, eax
test ebx, ebx
js 0x1003080d
push 0
push 0
push 0
push dword [edi]
push ebp
call fcn.1003cf90
mov ebx, eax
test ebx, ebx
js 0x1003080d
push 0
push 1
push dword [edi]
push ebp
call fcn.1003c7d0
mov ebx, eax
mov edx, 0x5b
mov eax, dword [esp + 0x34]
test ebx, ebx
jns 0x10030026
cmp ebx, 0xfffff9bd
je 0x1003011c
test ebx, ebx
js 0x1003076b
push 0
push 0xb
push 0x100039b8
push 0
push 0x100039d0
push dword [edi]
push ebp
call fcn.1003bfe0
mov ebx, eax
test ebx, ebx
js 0x1003076b
push 0
push Ordinal_2
push dword [edi]
push ebp
call fcn.1003c7d0
mov ebx, eax
cmp ebx, 0xfffff9bd
je 0x1003015f
test ebx, ebx
js 0x1003076b
xor ebx, ebx
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1003017e
push eax
call fcn.1011741a
add esp, 4
test ebp, ebp
je 0x1003018b
push ebp
call fcn.1011741a
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1003019c
push eax
call fcn.1011741a
add esp, 4
test esi, esi
je 0x100301a9
push esi
call fcn.1011741a
add esp, 4
test edi, edi
je 0x100301b6
push edi
call fcn.1011741a
add esp, 4
push dword [0x10137248]
call sub.KERNEL32.dll_LeaveCriticalSection
mov ecx, dword [esp + 0x1bc]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1011720d
add esp, 0x1b0
ret 0x18
mov edi, dword [esp + 0x10]
lea eax, [edi + 0xc]
push eax
lea esi, [edi + 4]
push esi
push 8
push 8
lea eax, [esp + 0x10c]
push eax
push ebp
call fcn.10069c10
mov ebx, eax
test ebx, ebx
js 0x10030161
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x100302a4
cmp dword [esp + 0x2c], eax
jne 0x1003025c
push 4
push 0x100024e0
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x34]
push ebp
call fcn.1003b870
mov ebx, eax
test ebx, ebx
js 0x10030335
push 0
push Ordinal_2
push dword [esp + 0x2c]
push ebp
call fcn.1003c7d0
mov ebx, eax
cmp ebx, 0xfffff9bd
je 0x100303a4
jmp 0x10030331
mov edi, dword [esp + 0x14]
cmp word [edi], 0
jne 0x100303c0
mov edx, dword [esp + 0x30]
mov edi, 0x92
mov ebx, dword [esp + 0x2c]
add edx, 8
mov dword [esp + 0x34], 0x100033f0
mov ecx, edx
sub ebx, edx
lea eax, [edi + 0x7fffff6c]
test eax, eax
je 0x100302de
movzx eax, word [ebx + ecx]
test ax, ax
je 0x100302de
mov word [ecx], ax
add ecx, 2
dec edi
jne 0x10030286
jmp 0x100302e2
mov edx, dword [esp + 0x30]
mov ebx, eax
add edx, 8
mov dword [esp + 0x34], 0x10003310
mov edi, 0x92
mov ecx, edx
sub ebx, edx
mov edi, edi
lea eax, [edi + 0x7fffff6c]
test eax, eax
je 0x100302de
movzx eax, word [ebx + ecx]
test ax, ax
je 0x100302de
mov word [ecx], ax
add ecx, 2
dec edi
jne 0x100302c0
jmp 0x100302e2
test edi, edi
jne 0x100302e5
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea ecx, [edx + 2]
lea ecx, [ecx]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100302f0
sub edx, ecx
mov ecx, dword [esp + 0x30]
sar edx, 1
mov dword [ecx], 0xa
lea eax, [edx + edx]
lea edx, [esp + 0x24]
mov dword [ecx + 4], eax
push edx
push 0x10
push 4
add eax, 8
push eax
push ecx
push dword [esp + 0x48]
push dword [esp + 0x40]
push ebp
call fcn.10018580
mov edi, dword [esp + 0x10]
mov ebx, eax
test ebx, ebx
jns 0x10030345
cmp ebx, 0xfffffae7
jne 0x1003076b
xor ebx, ebx
jmp 0x100303b8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x68]
push 0
push eax
push ebp
call fcn.1002ea90
mov ebx, eax
test ebx, ebx
js 0x1003076b
push edi
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.10030a20
push 0
push 0
push Ordinal_2
push 8
lea eax, [esp + 0xcc]
push eax
push dword [esi]
push dword [esp + 0x3c]
push ebp
call fcn.1003bf70
mov ebx, eax
cmp ebx, 0xfffff9bd
jne 0x1003076b
push dword [esp + 0x24]
push ebp
call fcn.1003bdc0
mov ebx, eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x100303d7
cmp word [edi], 0
je 0x10030798
jmp 0x1003052f
test eax, eax
je 0x100303e7
cmp word [esp + 0x48], 6
jne 0x10030798
mov ebx, dword [esp + 0x20]
mov esi, 0x10003220
mov edx, 0x5fc
mov ecx, ebx
sub esi, ebx
lea esp, [esp]
lea eax, [edx + 0x7ffffa02]
test eax, eax
je 0x1003041e
movzx eax, word [esi + ecx]
test ax, ax
je 0x1003041e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x10030400
jmp 0x10030422
test edx, edx
jne 0x10030425
sub ecx, 2
mov edi, dword [esp + 0x38]
xor eax, eax
mov word [ecx], ax
test edi, edi
je 0x100304a0
push 0x10003868
push 0x5fc
push ebx
call fcn.1008a9a0
mov ebx, dword [esp + 0x30]
mov esi, 0x92
lea edx, [ebx + 8]
mov ecx, edx
sub edi, edx
lea eax, [esi + 0x7fffff6c]
test eax, eax
je 0x10030470
movzx eax, word [edi + ecx]
test ax, ax
je 0x10030470
mov word [ecx], ax
add ecx, 2
dec esi
jne 0x10030452
jmp 0x10030474
test esi, esi
jne 0x10030477
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10030480
sub edx, ecx
mov dword [ebx], 0xa
sar edx, 1
lea eax, [edx + edx]
mov dword [ebx + 4], eax
add eax, 8
jmp 0x100304a2
xor ebx, ebx
push ebp
mov dword [esp + 0x38], eax
call fcn.10037d30
mov edi, eax
push 0
push edi
call fcn.10116520
mov esi, eax
lea eax, [esp + 0x3c]
push eax
push 0x10
push 4
push dword [esp + 0x40]
push ebx
push dword [esp + 0x34]
push dword [esp + 0x40]
push ebp
call fcn.10018580
push esi
push edi
mov ebx, eax
call fcn.10116520
test ebx, ebx
js 0x1003076b
push 0
push 0
push dword [esp + 0x44]
push ebp
call fcn.1003c7d0
mov ebx, eax
test ebx, ebx
jne 0x10030774
mov edi, dword [esp + 0x14]
push eax
push eax
lea eax, [esp + 0x3c]
push eax
push 0x200
push edi
push ebx
push dword [esp + 0x54]
push ebp
call fcn.1003cb60
mov ebx, eax
test ebx, ebx
js 0x1003076b
mov eax, dword [esp + 0x34]
shr eax, 1
xor ecx, ecx
mov word [edi + eax*2], cx
mov ebx, dword [esp + 0x20]
push edi
push edi
push edi
push edi
push 0x10003490
push 0x5fc
push ebx
call fcn.10030a60
add esp, 0x1c
test eax, eax
js 0x10030766
mov esi, dword [esp + 0x38]
xor eax, eax
mov word [ebx + 0xbf6], ax
test esi, esi
je 0x1003060c
mov ecx, ebx
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10030570
sub ecx, edx
mov edx, 0x41
sar ecx, 1
lea edi, [ebx + ecx*2]
mov ecx, dword [esp + 0x1c]
sub esi, ecx
lea ecx, [ecx]
lea eax, [edx + 0x7fffffbd]
test eax, eax
je 0x100305ae
movzx eax, word [esi + ecx]
test ax, ax
je 0x100305ae
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x10030590
jmp 0x100305b2
test edx, edx
jne 0x100305b5
sub ecx, 2
mov esi, dword [esp + 0x1c]
xor eax, eax
mov word [ecx], ax
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100305c3
push 0
push 0x82
lea eax, [esp + 0x48]
sub ecx, edx
push eax
sar ecx, 1
push esi
mov dword [esp + 0x50], ecx
call fcn.100e9716
mov eax, dword [esp + 0x40]
xor ecx, ecx
push esi
push esi
push 0x100038a0
push 0x5fc
push edi
mov word [esi + eax*2], cx
call fcn.10030a60
add esp, 0x14
jmp 0x100306b7
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x100306bb
mov ecx, ebx
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10030620
mov esi, dword [esp + 0x18]
sub ecx, edx
sar ecx, 1
mov edx, 0x41
lea edi, [ebx + ecx*2]
mov ecx, dword [esp + 0x1c]
sub esi, ecx
lea eax, [edx + 0x7fffffbd]
test eax, eax
je 0x1003065f
movzx eax, word [esi + ecx]
test ax, ax
je 0x1003065f
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x10030641
jmp 0x10030663
test edx, edx
jne 0x10030666
sub ecx, 2
mov esi, dword [esp + 0x1c]
xor eax, eax
mov word [ecx], ax
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10030674
push 0
push 0x82
lea eax, [esp + 0x48]
sub ecx, edx
push eax
sar ecx, 1
push esi
mov dword [esp + 0x50], ecx
call fcn.100e9716
mov eax, dword [esp + 0x40]
xor ecx, ecx
push esi
push 0x100038f0
push 0x5fc
push edi
mov word [esi + eax*2], cx
call fcn.10030a60
add esp, 0x10
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x24]
push eax
push 0x10
push 4
push 0
push 0
push ebx
push dword [esp + 0x40]
push ebp
call fcn.10018580
mov ebx, eax
test ebx, ebx
js 0x1003074f
mov eax, dword [esp + 0x24]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x68]
push 1
push eax
push ebp
call fcn.1002ea90
mov edi, dword [esp + 0x10]
mov ebx, eax
test ebx, ebx
js 0x1003080f
push edi
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.10030a20
push 0
push 0
push Ordinal_2
push 8
lea eax, [esp + 0xcc]
push eax
push dword [edi + 4]
push dword [esp + 0x3c]
push ebp
call fcn.1003bf70
mov ebx, eax
cmp ebx, 0xfffff9bd
je 0x10030741
test ebx, ebx
js 0x1003080f
push dword [esp + 0x24]
push ebp
call fcn.1003bdc0
mov ebx, eax
jmp 0x10030753
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x1003079c
push 0
push 1
push eax
jmp 0x100304ed
mov ebx, 0xfffffc16
mov edi, dword [esp + 0x10]
jmp 0x1003080f
cmp ebx, 0xfffff9bd
je 0x10030780
test ebx, ebx
js 0x1003076b
push dword [esp + 0x3c]
push ebp
call fcn.1003bdc0
mov esi, dword [esp + 0x2c]
mov ebx, eax
mov dword [esp + 0x3c], 0xffffffff
mov edi, dword [esp + 0x10]
push 0
push Ordinal_2
push dword [edi + 4]
push ebp
call fcn.1003c7d0
cmp eax, 0xfffff9bd
jne 0x100307c9
mov dword [edi + 8], 0
test esi, esi
je 0x1003015f
mov ebx, 0xfffffae7
jmp 0x1003080f
test ebx, ebx
js 0x1003080f
push 0
push Ordinal_2
push dword [edi + 4]
push ebp
call fcn.1003c7d0
mov ebx, eax
test ebx, ebx
js 0x1003080f
push 0
push 0x28
lea eax, [esp + 0x9c]
push eax
push dword [edi + 4]
push ebp
call fcn.1003c5d0
mov ebx, eax
test ebx, ebx
js 0x1003080f
mov eax, dword [esp + 0xb4]
mov dword [edi + 8], eax
jmp 0x1003015f
mov edi, esi
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x1003081f
push eax
push ebp
call fcn.1003bdc0
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x1003082e
push eax
push ebp
call fcn.1003bdc0
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x10030161
push eax
push ebp
call fcn.1003bdc0
jmp 0x10030161
mov ebx, 0xfffffc0d
jmp 0x10030171