Function at 0x1002fde0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x1b0
mov eax, dword [0x101366b4]
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 [0x10138288]
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.10117fe0
push 0x200
mov dword [esp + 0x20], eax
call fcn.10117fe0
mov ebp, eax
push 0x12c
mov dword [esp + 0x20], ebp
call fcn.10117fe0
push 0x82
mov dword [esp + 0x40], eax
call fcn.10117fe0
mov esi, eax
add esp, 0x10
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
test eax, eax
je 0x100309a7
test ebp, ebp
je 0x100309a7
cmp dword [esp + 0x30], edi
je 0x100309a7
test esi, esi
je 0x100309a7
push 0xbf8
call fcn.10117fe0
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
jne 0x1002fecf
mov ebx, 0xfffffc0d
jmp 0x100302cd
mov ebp, dword [esp + 0x1c4]
push ebp
call fcn.100373e0
test eax, eax
jne 0x1002feea
mov ebx, 0xfffffbb0
jmp 0x100302c9
push dword [esp + 0x28]
push ebp
call fcn.1003bed0
test eax, eax
jne 0x1002ff02
mov ebx, 0xfffffc0e
jmp 0x100302c9
push dword [esp + 0x28]
push ebp
call fcn.10037420
test eax, eax
jne 0x1002ff34
push dword [esp + 0x28]
call fcn.10027550
test eax, eax
je 0x1002ff2a
push dword [esp + 0x28]
call fcn.100ee470
test eax, eax
je 0x1002ff34
mov ebx, 0xfffffc17
jmp 0x100302c9
cmp dword [esp + 0x1d8], 0x2c
mov eax, dword [esp + 0x10]
mov dword [eax + 4], 0xffffffff
jae 0x1002ff53
mov ebx, 0xfffffbf2
jmp 0x100302c9
test ebx, ebx
je 0x1002ff63
xor eax, eax
cmp word [ebx], ax
cmove ebx, eax
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1002ff77
xor ecx, ecx
cmp word [eax], cx
cmove eax, ecx
mov dword [esp + 0x2c], eax
test ebx, ebx
je 0x1002ff89
test eax, eax
je 0x1002ffa5
mov ebx, 0xfffffc15
jmp 0x100302c9
test eax, eax
je 0x1002ffa5
push dword [esp + 0x18]
push dword [esp + 0x18]
push eax
call fcn.1002f010
mov ebx, eax
test ebx, ebx
js 0x100302c9
mov ecx, 0x30
lea edi, [esp + 0xfc]
mov esi, 0x100031a0
lea eax, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x28]
push eax
push edi
push ebp
call fcn.1002ef30
mov ebx, eax
test ebx, ebx
js 0x100302c1
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.1003ba10
mov ebx, eax
test ebx, ebx
js 0x100302c1
mov eax, dword [esp + 0x4c]
cmp eax, 0x10000
je 0x1003003a
cmp eax, 0x10001
jne 0x10030041
mov esi, 1
jmp 0x10030043
xor esi, esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10030062
lea ecx, [esp + 0x48]
push ecx
push eax
push edi
push ebp
call 0x1018fc33
mov ebx, eax
test ebx, ebx
js 0x100302c1
test esi, esi
je 0x1003033e
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.1006a300
mov ebx, eax
test ebx, ebx
js 0x100302c1
cmp dword [esp + 0x2c], 0
je 0x100300c2
push 0
push 0x2c
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
jmp 0x100300df
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.1003bb60
mov ebx, eax
test ebx, ebx
jns 0x10030107
mov edi, esi
cmp ebx, 0xfffffc13
jne 0x1003096f
mov ebx, 0xfffffae7
jmp 0x1003096f
push esi
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.10030b80
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.1003c2d0
push dword [esp + 0x6c]
mov ebx, eax
push ebp
call fcn.1003c120
cmp ebx, 0xfffff9bd
jne 0x1003096d
mov eax, dword [esp + 0x70]
push 0
push Ordinal_2
push dword [edi]
mov dword [esi + 8], eax
push ebp
call fcn.1003cb30
mov ebx, eax
test ebx, ebx
js 0x1003026c
mov ecx, dword [esp + 0x30]
mov edx, 0x5b
lea eax, [ecx + 2]
mov dword [esp + 0x34], eax
jmp 0x1003018a
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.1003cec0
mov ebx, eax
test ebx, ebx
js 0x100308cb
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.1003cec0
mov ebx, eax
test ebx, ebx
js 0x100308cb
mov eax, dword [esp + 0x44]
push 2
push dword [edi]
shr eax, 1
push ebp
add esi, eax
call fcn.1003cd20
mov ebx, eax
test ebx, ebx
js 0x100308cb
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.1003d0e0
mov ebx, eax
test ebx, ebx
js 0x1003096d
push 0
push 0
push 0
push dword [edi]
push ebp
call fcn.1003d2f0
mov ebx, eax
test ebx, ebx
js 0x1003096d
push 0
push 1
push dword [edi]
push ebp
call fcn.1003cb30
mov ebx, eax
mov edx, 0x5b
mov eax, dword [esp + 0x34]
test ebx, ebx
jns 0x10030186
cmp ebx, 0xfffff9bd
je 0x1003027c
test ebx, ebx
js 0x100308cb
push 0
push 0xb
push 0x100039f8
push 0
push 0x10003a10
push dword [edi]
push ebp
call fcn.1003c340
mov ebx, eax
test ebx, ebx
js 0x100308cb
push 0
push Ordinal_2
push dword [edi]
push ebp
call fcn.1003cb30
mov ebx, eax
cmp ebx, 0xfffff9bd
je 0x100302bf
test ebx, ebx
js 0x100308cb
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 0x100302de
push eax
call fcn.10117f0a
add esp, 4
test ebp, ebp
je 0x100302eb
push ebp
call fcn.10117f0a
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x100302fc
push eax
call fcn.10117f0a
add esp, 4
test esi, esi
je 0x10030309
push esi
call fcn.10117f0a
add esp, 4
test edi, edi
je 0x10030316
push edi
call fcn.10117f0a
add esp, 4
push dword [0x10138288]
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.10117cfd
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.1006a300
mov ebx, eax
test ebx, ebx
js 0x100302c1
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x10030404
cmp dword [esp + 0x2c], eax
jne 0x100303bc
push 4
push 0x10002520
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x34]
push ebp
call fcn.1003bbc0
mov ebx, eax
test ebx, ebx
js 0x10030495
push 0
push Ordinal_2
push dword [esp + 0x2c]
push ebp
call fcn.1003cb30
mov ebx, eax
cmp ebx, 0xfffff9bd
je 0x10030504
jmp 0x10030491
mov edi, dword [esp + 0x14]
cmp word [edi], 0
jne 0x10030520
mov edx, dword [esp + 0x30]
mov edi, 0x92
mov ebx, dword [esp + 0x2c]
add edx, 8
mov dword [esp + 0x34], 0x10003430
mov ecx, edx
sub ebx, edx
lea eax, [edi + 0x7fffff6c]
test eax, eax
je 0x1003043e
movzx eax, word [ebx + ecx]
test ax, ax
je 0x1003043e
mov word [ecx], ax
add ecx, 2
dec edi
jne 0x100303e6
jmp 0x10030442
mov edx, dword [esp + 0x30]
mov ebx, eax
add edx, 8
mov dword [esp + 0x34], 0x10003350
mov edi, 0x92
mov ecx, edx
sub ebx, edx
mov edi, edi
lea eax, [edi + 0x7fffff6c]
test eax, eax
je 0x1003043e
movzx eax, word [ebx + ecx]
test ax, ax
je 0x1003043e
mov word [ecx], ax
add ecx, 2
dec edi
jne 0x10030420
jmp 0x10030442
test edi, edi
jne 0x10030445
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 0x10030450
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.100185f0
mov edi, dword [esp + 0x10]
mov ebx, eax
test ebx, ebx
jns 0x100304a5
cmp ebx, 0xfffffae7
jne 0x100308cb
xor ebx, ebx
jmp 0x10030518
mov eax, dword [esp + 0x24]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x68]
push 0
push eax
push ebp
call fcn.1002ebf0
mov ebx, eax
test ebx, ebx
js 0x100308cb
push edi
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.10030b80
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.1003c2d0
mov ebx, eax
cmp ebx, 0xfffff9bd
jne 0x100308cb
push dword [esp + 0x24]
push ebp
call fcn.1003c120
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 0x10030537
cmp word [edi], 0
je 0x100308f8
jmp 0x1003068f
test eax, eax
je 0x10030547
cmp word [esp + 0x48], 6
jne 0x100308f8
mov ebx, dword [esp + 0x20]
mov esi, 0x10003260
mov edx, 0x5fc
mov ecx, ebx
sub esi, ebx
lea esp, [esp]
lea eax, [edx + 0x7ffffa02]
test eax, eax
je 0x1003057e
movzx eax, word [esi + ecx]
test ax, ax
je 0x1003057e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x10030560
jmp 0x10030582
test edx, edx
jne 0x10030585
sub ecx, 2
mov edi, dword [esp + 0x38]
xor eax, eax
mov word [ecx], ax
test edi, edi
je 0x10030600
push 0x100038a8
push 0x5fc
push ebx
call fcn.1008b300
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 0x100305d0
movzx eax, word [edi + ecx]
test ax, ax
je 0x100305d0
mov word [ecx], ax
add ecx, 2
dec esi
jne 0x100305b2
jmp 0x100305d4
test esi, esi
jne 0x100305d7
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 0x100305e0
sub edx, ecx
mov dword [ebx], 0xa
sar edx, 1
lea eax, [edx + edx]
mov dword [ebx + 4], eax
add eax, 8
jmp 0x10030602
xor ebx, ebx
push ebp
mov dword [esp + 0x38], eax
call fcn.10037eb0
mov edi, eax
push 0
push edi
call fcn.10117010
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.100185f0
push esi
push edi
mov ebx, eax
call fcn.10117010
test ebx, ebx
js 0x100308cb
push 0
push 0
push dword [esp + 0x44]
push ebp
call fcn.1003cb30
mov ebx, eax
test ebx, ebx
jne 0x100308d4
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.1003cec0
mov ebx, eax
test ebx, ebx
js 0x100308cb
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 0x100034d0
push 0x5fc
push ebx
call fcn.10030bc0
add esp, 0x1c
test eax, eax
js 0x100308c6
mov esi, dword [esp + 0x38]
xor eax, eax
mov word [ebx + 0xbf6], ax
test esi, esi
je 0x1003076c
mov ecx, ebx
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100306d0
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 0x1003070e
movzx eax, word [esi + ecx]
test ax, ax
je 0x1003070e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x100306f0
jmp 0x10030712
test edx, edx
jne 0x10030715
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 0x10030723
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.100ea204
mov eax, dword [esp + 0x40]
xor ecx, ecx
push esi
push esi
push 0x100038e0
push 0x5fc
push edi
mov word [esi + eax*2], cx
call fcn.10030bc0
add esp, 0x14
jmp 0x10030817
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x1003081b
mov ecx, ebx
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10030780
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 0x100307bf
movzx eax, word [esi + ecx]
test ax, ax
je 0x100307bf
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x100307a1
jmp 0x100307c3
test edx, edx
jne 0x100307c6
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 0x100307d4
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.100ea204
mov eax, dword [esp + 0x40]
xor ecx, ecx
push esi
push 0x10003930
push 0x5fc
push edi
mov word [esi + eax*2], cx
call fcn.10030bc0
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.100185f0
mov ebx, eax
test ebx, ebx
js 0x100308af
mov eax, dword [esp + 0x24]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x68]
push 1
push eax
push ebp
call fcn.1002ebf0
mov edi, dword [esp + 0x10]
mov ebx, eax
test ebx, ebx
js 0x1003096f
push edi
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.10030b80
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.1003c2d0
mov ebx, eax
cmp ebx, 0xfffff9bd
je 0x100308a1
test ebx, ebx
js 0x1003096f
push dword [esp + 0x24]
push ebp
call fcn.1003c120
mov ebx, eax
jmp 0x100308b3
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x100308fc
push 0
push 1
push eax
jmp 0x1003064d
mov ebx, 0xfffffc16
mov edi, dword [esp + 0x10]
jmp 0x1003096f
cmp ebx, 0xfffff9bd
je 0x100308e0
test ebx, ebx
js 0x100308cb
push dword [esp + 0x3c]
push ebp
call fcn.1003c120
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.1003cb30
cmp eax, 0xfffff9bd
jne 0x10030929
mov dword [edi + 8], 0
test esi, esi
je 0x100302bf
mov ebx, 0xfffffae7
jmp 0x1003096f
test ebx, ebx
js 0x1003096f
push 0
push Ordinal_2
push dword [edi + 4]
push ebp
call fcn.1003cb30
mov ebx, eax
test ebx, ebx
js 0x1003096f
push 0
push 0x28
lea eax, [esp + 0x9c]
push eax
push dword [edi + 4]
push ebp
call fcn.1003c930
mov ebx, eax
test ebx, ebx
js 0x1003096f
mov eax, dword [esp + 0xb4]
mov dword [edi + 8], eax
jmp 0x100302bf
mov edi, esi
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x1003097f
push eax
push ebp
call fcn.1003c120
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x1003098e
push eax
push ebp
call fcn.1003c120
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x100302c1
push eax
push ebp
call fcn.1003c120
jmp 0x100302c1
mov ebx, 0xfffffc0d
jmp 0x100302d1