Function at 0x1002fc40
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.10117340
push 0x200
mov dword [esp + 0x20], eax
call fcn.10117340
mov ebp, eax
push 0x12c
mov dword [esp + 0x20], ebp
call fcn.10117340
push 0x82
mov dword [esp + 0x40], eax
call fcn.10117340
mov esi, eax
add esp, 0x10
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
test eax, eax
je 0x10030807
test ebp, ebp
je 0x10030807
cmp dword [esp + 0x30], edi
je 0x10030807
test esi, esi
je 0x10030807
push 0xbf8
call fcn.10117340
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
jne 0x1002fd2f
mov ebx, 0xfffffc0d
jmp 0x1003012d
mov ebp, dword [esp + 0x1c4]
push ebp
call fcn.10037230
test eax, eax
jne 0x1002fd4a
mov ebx, 0xfffffbb0
jmp 0x10030129
push dword [esp + 0x28]
push ebp
call fcn.1003bae0
test eax, eax
jne 0x1002fd62
mov ebx, 0xfffffc0e
jmp 0x10030129
push dword [esp + 0x28]
push ebp
call fcn.10037270
test eax, eax
jne 0x1002fd94
push dword [esp + 0x28]
call fcn.10027410
test eax, eax
je 0x1002fd8a
push dword [esp + 0x28]
call fcn.100ed77f
test eax, eax
je 0x1002fd94
mov ebx, 0xfffffc17
jmp 0x10030129
cmp dword [esp + 0x1d8], 0x2c
mov eax, dword [esp + 0x10]
mov dword [eax + 4], 0xffffffff
jae 0x1002fdb3
mov ebx, 0xfffffbf2
jmp 0x10030129
test ebx, ebx
je 0x1002fdc3
xor eax, eax
cmp word [ebx], ax
cmove ebx, eax
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1002fdd7
xor ecx, ecx
cmp word [eax], cx
cmove eax, ecx
mov dword [esp + 0x2c], eax
test ebx, ebx
je 0x1002fde9
test eax, eax
je 0x1002fe05
mov ebx, 0xfffffc15
jmp 0x10030129
test eax, eax
je 0x1002fe05
push dword [esp + 0x18]
push dword [esp + 0x18]
push eax
call fcn.1002ee70
mov ebx, eax
test ebx, ebx
js 0x10030129
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.1002ed90
mov ebx, eax
test ebx, ebx
js 0x10030121
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.1003b620
mov ebx, eax
test ebx, ebx
js 0x10030121
mov eax, dword [esp + 0x4c]
cmp eax, 0x10000
je 0x1002fe9a
cmp eax, 0x10001
jne 0x1002fea1
mov esi, 1
jmp 0x1002fea3
xor esi, esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1002fec2
lea ecx, [esp + 0x48]
push ecx
push eax
push edi
push ebp
call fcn.1002f1d0
mov ebx, eax
test ebx, ebx
js 0x10030121
test esi, esi
je 0x1003019e
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.10069b50
mov ebx, eax
test ebx, ebx
js 0x10030121
cmp dword [esp + 0x2c], 0
je 0x1002ff22
push 0
push 0x2c
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
jmp 0x1002ff3f
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.1003b770
mov ebx, eax
test ebx, ebx
jns 0x1002ff67
mov edi, esi
cmp ebx, 0xfffffc13
jne 0x100307cf
mov ebx, 0xfffffae7
jmp 0x100307cf
push esi
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.100309e0
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.1003bed0
push dword [esp + 0x6c]
mov ebx, eax
push ebp
call fcn.1003bd20
cmp ebx, 0xfffff9bd
jne 0x100307cd
mov eax, dword [esp + 0x70]
push 0
push Ordinal_2
push dword [edi]
mov dword [esi + 8], eax
push ebp
call fcn.1003c730
mov ebx, eax
test ebx, ebx
js 0x100300cc
mov ecx, dword [esp + 0x30]
mov edx, 0x5b
lea eax, [ecx + 2]
mov dword [esp + 0x34], eax
jmp 0x1002ffea
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.1003cac0
mov ebx, eax
test ebx, ebx
js 0x1003072b
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.1003cac0
mov ebx, eax
test ebx, ebx
js 0x1003072b
mov eax, dword [esp + 0x44]
push 2
push dword [edi]
shr eax, 1
push ebp
add esi, eax
call fcn.1003c920
mov ebx, eax
test ebx, ebx
js 0x1003072b
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.1003cce0
mov ebx, eax
test ebx, ebx
js 0x100307cd
push 0
push 0
push 0
push dword [edi]
push ebp
call fcn.1003cef0
mov ebx, eax
test ebx, ebx
js 0x100307cd
push 0
push 1
push dword [edi]
push ebp
call fcn.1003c730
mov ebx, eax
mov edx, 0x5b
mov eax, dword [esp + 0x34]
test ebx, ebx
jns 0x1002ffe6
cmp ebx, 0xfffff9bd
je 0x100300dc
test ebx, ebx
js 0x1003072b
push 0
push 0xb
push 0x100039b8
push 0
push 0x100039d0
push dword [edi]
push ebp
call fcn.1003bf40
mov ebx, eax
test ebx, ebx
js 0x1003072b
push 0
push Ordinal_2
push dword [edi]
push ebp
call fcn.1003c730
mov ebx, eax
cmp ebx, 0xfffff9bd
je 0x1003011f
test ebx, ebx
js 0x1003072b
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 0x1003013e
push eax
call fcn.1011726a
add esp, 4
test ebp, ebp
je 0x1003014b
push ebp
call fcn.1011726a
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1003015c
push eax
call fcn.1011726a
add esp, 4
test esi, esi
je 0x10030169
push esi
call fcn.1011726a
add esp, 4
test edi, edi
je 0x10030176
push edi
call fcn.1011726a
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.1011705d
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.10069b50
mov ebx, eax
test ebx, ebx
js 0x10030121
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x10030264
cmp dword [esp + 0x2c], eax
jne 0x1003021c
push 4
push 0x100024e0
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x34]
push ebp
call fcn.1003b7d0
mov ebx, eax
test ebx, ebx
js 0x100302f5
push 0
push Ordinal_2
push dword [esp + 0x2c]
push ebp
call fcn.1003c730
mov ebx, eax
cmp ebx, 0xfffff9bd
je 0x10030364
jmp 0x100302f1
mov edi, dword [esp + 0x14]
cmp word [edi], 0
jne 0x10030380
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 0x1003029e
movzx eax, word [ebx + ecx]
test ax, ax
je 0x1003029e
mov word [ecx], ax
add ecx, 2
dec edi
jne 0x10030246
jmp 0x100302a2
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 0x1003029e
movzx eax, word [ebx + ecx]
test ax, ax
je 0x1003029e
mov word [ecx], ax
add ecx, 2
dec edi
jne 0x10030280
jmp 0x100302a2
test edi, edi
jne 0x100302a5
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 0x100302b0
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.10018550
mov edi, dword [esp + 0x10]
mov ebx, eax
test ebx, ebx
jns 0x10030305
cmp ebx, 0xfffffae7
jne 0x1003072b
xor ebx, ebx
jmp 0x10030378
mov eax, dword [esp + 0x24]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x68]
push 0
push eax
push ebp
call fcn.1002ea50
mov ebx, eax
test ebx, ebx
js 0x1003072b
push edi
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.100309e0
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.1003bed0
mov ebx, eax
cmp ebx, 0xfffff9bd
jne 0x1003072b
push dword [esp + 0x24]
push ebp
call fcn.1003bd20
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 0x10030397
cmp word [edi], 0
je 0x10030758
jmp 0x100304ef
test eax, eax
je 0x100303a7
cmp word [esp + 0x48], 6
jne 0x10030758
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 0x100303de
movzx eax, word [esi + ecx]
test ax, ax
je 0x100303de
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x100303c0
jmp 0x100303e2
test edx, edx
jne 0x100303e5
sub ecx, 2
mov edi, dword [esp + 0x38]
xor eax, eax
mov word [ecx], ax
test edi, edi
je 0x10030460
push 0x10003868
push 0x5fc
push ebx
call fcn.1008a7f0
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 0x10030430
movzx eax, word [edi + ecx]
test ax, ax
je 0x10030430
mov word [ecx], ax
add ecx, 2
dec esi
jne 0x10030412
jmp 0x10030434
test esi, esi
jne 0x10030437
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 0x10030440
sub edx, ecx
mov dword [ebx], 0xa
sar edx, 1
lea eax, [edx + edx]
mov dword [ebx + 4], eax
add eax, 8
jmp 0x10030462
xor ebx, ebx
push ebp
mov dword [esp + 0x38], eax
call fcn.10037ce0
mov edi, eax
push 0
push edi
call fcn.10116370
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.10018550
push esi
push edi
mov ebx, eax
call fcn.10116370
test ebx, ebx
js 0x1003072b
push 0
push 0
push dword [esp + 0x44]
push ebp
call fcn.1003c730
mov ebx, eax
test ebx, ebx
jne 0x10030734
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.1003cac0
mov ebx, eax
test ebx, ebx
js 0x1003072b
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.10030a20
add esp, 0x1c
test eax, eax
js 0x10030726
mov esi, dword [esp + 0x38]
xor eax, eax
mov word [ebx + 0xbf6], ax
test esi, esi
je 0x100305cc
mov ecx, ebx
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10030530
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 0x1003056e
movzx eax, word [esi + ecx]
test ax, ax
je 0x1003056e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x10030550
jmp 0x10030572
test edx, edx
jne 0x10030575
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 0x10030583
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.100e9513
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.10030a20
add esp, 0x14
jmp 0x10030677
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x1003067b
mov ecx, ebx
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100305e0
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 0x1003061f
movzx eax, word [esi + ecx]
test ax, ax
je 0x1003061f
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x10030601
jmp 0x10030623
test edx, edx
jne 0x10030626
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 0x10030634
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.100e9513
mov eax, dword [esp + 0x40]
xor ecx, ecx
push esi
push 0x100038f0
push 0x5fc
push edi
mov word [esi + eax*2], cx
call fcn.10030a20
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.10018550
mov ebx, eax
test ebx, ebx
js 0x1003070f
mov eax, dword [esp + 0x24]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x68]
push 1
push eax
push ebp
call fcn.1002ea50
mov edi, dword [esp + 0x10]
mov ebx, eax
test ebx, ebx
js 0x100307cf
push edi
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.100309e0
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.1003bed0
mov ebx, eax
cmp ebx, 0xfffff9bd
je 0x10030701
test ebx, ebx
js 0x100307cf
push dword [esp + 0x24]
push ebp
call fcn.1003bd20
mov ebx, eax
jmp 0x10030713
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x1003075c
push 0
push 1
push eax
jmp 0x100304ad
mov ebx, 0xfffffc16
mov edi, dword [esp + 0x10]
jmp 0x100307cf
cmp ebx, 0xfffff9bd
je 0x10030740
test ebx, ebx
js 0x1003072b
push dword [esp + 0x3c]
push ebp
call fcn.1003bd20
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.1003c730
cmp eax, 0xfffff9bd
jne 0x10030789
mov dword [edi + 8], 0
test esi, esi
je 0x1003011f
mov ebx, 0xfffffae7
jmp 0x100307cf
test ebx, ebx
js 0x100307cf
push 0
push Ordinal_2
push dword [edi + 4]
push ebp
call fcn.1003c730
mov ebx, eax
test ebx, ebx
js 0x100307cf
push 0
push 0x28
lea eax, [esp + 0x9c]
push eax
push dword [edi + 4]
push ebp
call fcn.1003c530
mov ebx, eax
test ebx, ebx
js 0x100307cf
mov eax, dword [esp + 0xb4]
mov dword [edi + 8], eax
jmp 0x1003011f
mov edi, esi
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x100307df
push eax
push ebp
call fcn.1003bd20
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x100307ee
push eax
push ebp
call fcn.1003bd20
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x10030121
push eax
push ebp
call fcn.1003bd20
jmp 0x10030121
mov ebx, 0xfffffc0d
jmp 0x10030131