Function at 0x1002fcb0
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 0x10030877
test ebp, ebp
je 0x10030877
cmp dword [esp + 0x30], edi
je 0x10030877
test esi, esi
je 0x10030877
push 0xbf8
call fcn.101174f0
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
jne 0x1002fd9f
mov ebx, 0xfffffc0d
jmp 0x1003019d
mov ebp, dword [esp + 0x1c4]
push ebp
call fcn.100372a0
test eax, eax
jne 0x1002fdba
mov ebx, 0xfffffbb0
jmp 0x10030199
push dword [esp + 0x28]
push ebp
call fcn.1003bba0
test eax, eax
jne 0x1002fdd2
mov ebx, 0xfffffc0e
jmp 0x10030199
push dword [esp + 0x28]
push ebp
call fcn.100372e0
test eax, eax
jne 0x1002fe04
push dword [esp + 0x28]
call fcn.10027450
test eax, eax
je 0x1002fdfa
push dword [esp + 0x28]
call fcn.100ed982
test eax, eax
je 0x1002fe04
mov ebx, 0xfffffc17
jmp 0x10030199
cmp dword [esp + 0x1d8], 0x2c
mov eax, dword [esp + 0x10]
mov dword [eax + 4], 0xffffffff
jae 0x1002fe23
mov ebx, 0xfffffbf2
jmp 0x10030199
test ebx, ebx
je 0x1002fe33
xor eax, eax
cmp word [ebx], ax
cmove ebx, eax
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1002fe47
xor ecx, ecx
cmp word [eax], cx
cmove eax, ecx
mov dword [esp + 0x2c], eax
test ebx, ebx
je 0x1002fe59
test eax, eax
je 0x1002fe75
mov ebx, 0xfffffc15
jmp 0x10030199
test eax, eax
je 0x1002fe75
push dword [esp + 0x18]
push dword [esp + 0x18]
push eax
call fcn.1002eee0
mov ebx, eax
test ebx, ebx
js 0x10030199
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.1002ee00
mov ebx, eax
test ebx, ebx
js 0x10030191
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.1003b6e0
mov ebx, eax
test ebx, ebx
js 0x10030191
mov eax, dword [esp + 0x4c]
cmp eax, 0x10000
je 0x1002ff0a
cmp eax, 0x10001
jne 0x1002ff11
mov esi, 1
jmp 0x1002ff13
xor esi, esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1002ff32
lea ecx, [esp + 0x48]
push ecx
push eax
push edi
push ebp
call fcn.1002f240
mov ebx, eax
test ebx, ebx
js 0x10030191
test esi, esi
je 0x1003020e
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 0x10030191
cmp dword [esp + 0x2c], 0
je 0x1002ff92
push 0
push 0x2c
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
jmp 0x1002ffaf
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.1003b830
mov ebx, eax
test ebx, ebx
jns 0x1002ffd7
mov edi, esi
cmp ebx, 0xfffffc13
jne 0x1003083f
mov ebx, 0xfffffae7
jmp 0x1003083f
push esi
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.10030a50
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.1003bf90
push dword [esp + 0x6c]
mov ebx, eax
push ebp
call fcn.1003bde0
cmp ebx, 0xfffff9bd
jne 0x1003083d
mov eax, dword [esp + 0x70]
push 0
push Ordinal_2
push dword [edi]
mov dword [esi + 8], eax
push ebp
call fcn.1003c7f0
mov ebx, eax
test ebx, ebx
js 0x1003013c
mov ecx, dword [esp + 0x30]
mov edx, 0x5b
lea eax, [ecx + 2]
mov dword [esp + 0x34], eax
jmp 0x1003005a
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.1003cb80
mov ebx, eax
test ebx, ebx
js 0x1003079b
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.1003cb80
mov ebx, eax
test ebx, ebx
js 0x1003079b
mov eax, dword [esp + 0x44]
push 2
push dword [edi]
shr eax, 1
push ebp
add esi, eax
call fcn.1003c9e0
mov ebx, eax
test ebx, ebx
js 0x1003079b
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.1003cda0
mov ebx, eax
test ebx, ebx
js 0x1003083d
push 0
push 0
push 0
push dword [edi]
push ebp
call fcn.1003cfb0
mov ebx, eax
test ebx, ebx
js 0x1003083d
push 0
push 1
push dword [edi]
push ebp
call fcn.1003c7f0
mov ebx, eax
mov edx, 0x5b
mov eax, dword [esp + 0x34]
test ebx, ebx
jns 0x10030056
cmp ebx, 0xfffff9bd
je 0x1003014c
test ebx, ebx
js 0x1003079b
push 0
push 0xb
push 0x100039b8
push 0
push 0x100039d0
push dword [edi]
push ebp
call fcn.1003c000
mov ebx, eax
test ebx, ebx
js 0x1003079b
push 0
push Ordinal_2
push dword [edi]
push ebp
call fcn.1003c7f0
mov ebx, eax
cmp ebx, 0xfffff9bd
je 0x1003018f
test ebx, ebx
js 0x1003079b
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 0x100301ae
push eax
call fcn.1011741a
add esp, 4
test ebp, ebp
je 0x100301bb
push ebp
call fcn.1011741a
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x100301cc
push eax
call fcn.1011741a
add esp, 4
test esi, esi
je 0x100301d9
push esi
call fcn.1011741a
add esp, 4
test edi, edi
je 0x100301e6
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 0x10030191
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x100302d4
cmp dword [esp + 0x2c], eax
jne 0x1003028c
push 4
push 0x100024e0
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x34]
push ebp
call fcn.1003b890
mov ebx, eax
test ebx, ebx
js 0x10030365
push 0
push Ordinal_2
push dword [esp + 0x2c]
push ebp
call fcn.1003c7f0
mov ebx, eax
cmp ebx, 0xfffff9bd
je 0x100303d4
jmp 0x10030361
mov edi, dword [esp + 0x14]
cmp word [edi], 0
jne 0x100303f0
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 0x1003030e
movzx eax, word [ebx + ecx]
test ax, ax
je 0x1003030e
mov word [ecx], ax
add ecx, 2
dec edi
jne 0x100302b6
jmp 0x10030312
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 0x1003030e
movzx eax, word [ebx + ecx]
test ax, ax
je 0x1003030e
mov word [ecx], ax
add ecx, 2
dec edi
jne 0x100302f0
jmp 0x10030312
test edi, edi
jne 0x10030315
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 0x10030320
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 0x10030375
cmp ebx, 0xfffffae7
jne 0x1003079b
xor ebx, ebx
jmp 0x100303e8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x68]
push 0
push eax
push ebp
call fcn.1002eac0
mov ebx, eax
test ebx, ebx
js 0x1003079b
push edi
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.10030a50
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.1003bf90
mov ebx, eax
cmp ebx, 0xfffff9bd
jne 0x1003079b
push dword [esp + 0x24]
push ebp
call fcn.1003bde0
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 0x10030407
cmp word [edi], 0
je 0x100307c8
jmp 0x1003055f
test eax, eax
je 0x10030417
cmp word [esp + 0x48], 6
jne 0x100307c8
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 0x1003044e
movzx eax, word [esi + ecx]
test ax, ax
je 0x1003044e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x10030430
jmp 0x10030452
test edx, edx
jne 0x10030455
sub ecx, 2
mov edi, dword [esp + 0x38]
xor eax, eax
mov word [ecx], ax
test edi, edi
je 0x100304d0
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 0x100304a0
movzx eax, word [edi + ecx]
test ax, ax
je 0x100304a0
mov word [ecx], ax
add ecx, 2
dec esi
jne 0x10030482
jmp 0x100304a4
test esi, esi
jne 0x100304a7
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 0x100304b0
sub edx, ecx
mov dword [ebx], 0xa
sar edx, 1
lea eax, [edx + edx]
mov dword [ebx + 4], eax
add eax, 8
jmp 0x100304d2
xor ebx, ebx
push ebp
mov dword [esp + 0x38], eax
call fcn.10037d50
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 0x1003079b
push 0
push 0
push dword [esp + 0x44]
push ebp
call fcn.1003c7f0
mov ebx, eax
test ebx, ebx
jne 0x100307a4
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.1003cb80
mov ebx, eax
test ebx, ebx
js 0x1003079b
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.10030a90
add esp, 0x1c
test eax, eax
js 0x10030796
mov esi, dword [esp + 0x38]
xor eax, eax
mov word [ebx + 0xbf6], ax
test esi, esi
je 0x1003063c
mov ecx, ebx
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100305a0
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 0x100305de
movzx eax, word [esi + ecx]
test ax, ax
je 0x100305de
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x100305c0
jmp 0x100305e2
test edx, edx
jne 0x100305e5
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 0x100305f3
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.10030a90
add esp, 0x14
jmp 0x100306e7
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x100306eb
mov ecx, ebx
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10030650
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 0x1003068f
movzx eax, word [esi + ecx]
test ax, ax
je 0x1003068f
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x10030671
jmp 0x10030693
test edx, edx
jne 0x10030696
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 0x100306a4
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.10030a90
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 0x1003077f
mov eax, dword [esp + 0x24]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x68]
push 1
push eax
push ebp
call fcn.1002eac0
mov edi, dword [esp + 0x10]
mov ebx, eax
test ebx, ebx
js 0x1003083f
push edi
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.10030a50
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.1003bf90
mov ebx, eax
cmp ebx, 0xfffff9bd
je 0x10030771
test ebx, ebx
js 0x1003083f
push dword [esp + 0x24]
push ebp
call fcn.1003bde0
mov ebx, eax
jmp 0x10030783
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x100307cc
push 0
push 1
push eax
jmp 0x1003051d
mov ebx, 0xfffffc16
mov edi, dword [esp + 0x10]
jmp 0x1003083f
cmp ebx, 0xfffff9bd
je 0x100307b0
test ebx, ebx
js 0x1003079b
push dword [esp + 0x3c]
push ebp
call fcn.1003bde0
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.1003c7f0
cmp eax, 0xfffff9bd
jne 0x100307f9
mov dword [edi + 8], 0
test esi, esi
je 0x1003018f
mov ebx, 0xfffffae7
jmp 0x1003083f
test ebx, ebx
js 0x1003083f
push 0
push Ordinal_2
push dword [edi + 4]
push ebp
call fcn.1003c7f0
mov ebx, eax
test ebx, ebx
js 0x1003083f
push 0
push 0x28
lea eax, [esp + 0x9c]
push eax
push dword [edi + 4]
push ebp
call fcn.1003c5f0
mov ebx, eax
test ebx, ebx
js 0x1003083f
mov eax, dword [esp + 0xb4]
mov dword [edi + 8], eax
jmp 0x1003018f
mov edi, esi
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x1003084f
push eax
push ebp
call fcn.1003bde0
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x1003085e
push eax
push ebp
call fcn.1003bde0
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x10030191
push eax
push ebp
call fcn.1003bde0
jmp 0x10030191
mov ebx, 0xfffffc0d
jmp 0x100301a1