Function at 0x100213c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1004c3cb
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10077990]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], 0xffffffff
call fcn.100135b0
mov dword [esp + 0x44], vtable.CSchemaRowsetProperties.0
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x60], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], 0
cmp dword [ebx + 0xc], 0
mov ecx, dword [ebx + 8]
je 0x10021436
mov edi, dword [ecx + 0x38]
mov dword [esp + 0x18], edi
jmp 0x1002143d
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x18], eax
xor ebp, ebp
mov dword [esp + 0x28], ebp
mov eax, dword [ecx]
call dword [eax + 0x10]
mov esi, eax
push esi
mov dword [esp + 0x44], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x84]
mov byte [esp + 0x60], 1
test eax, eax
je 0x10021c4d
mov edx, dword [esp + 0x70]
mov dword [eax], ebp
test edx, edx
je 0x1002147d
cmp dword [esp + 0x74], ebp
je 0x10021c4d
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
test edi, edi
je 0x10021494
test eax, eax
je 0x10021c4d
xor ecx, ecx
test edi, edi
je 0x100214b7
lea ebx, [ebx]
cmp dword [eax + 4], 0
je 0x100214af
cmp dword [eax], 0
je 0x10021c4d
inc ecx
add eax, 0x18
cmp ecx, edi
jb 0x100214a0
cmp dword [esp + 0x6c], 0
je 0x100214e5
mov edx, dword [esp + 0x78]
mov ecx, 0x10068bd8
mov edi, 0xc
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1002154d
add ecx, 4
add edx, 4
sub edi, 4
jae 0x100214d0
mov edx, dword [esp + 0x70]
xor ecx, ecx
test edx, edx
je 0x100214ff
mov eax, dword [esp + 0x74]
add eax, 0x10
cmp dword [eax], 1
jne 0x10021557
inc ecx
add eax, 0x18
cmp ecx, edx
jb 0x100214f2
cmp dword [ebx + 0xc], 0
je 0x10021561
mov edi, dword [ebx + 8]
mov eax, dword [edi + 0x94]
mov dword [esp + 0x20], eax
mov ebx, dword [edi + 0x60]
mov ecx, dword [edi + 0x40]
shr ebx, 3
and ebx, 1
test ecx, ecx
je 0x1002152c
call fcn.10039c70
cmp eax, 1
je 0x10021543
cmp dword [edi + 0x74], 0
jne 0x100215d8
cmp dword [edi + 0xec], 0
jne 0x100215d8
mov edi, 0x8000ffff
jmp 0x10021c52
mov edi, 0x80040e22
jmp 0x10021c52
mov edi, 0x80040e11
jmp 0x10021c52
mov ebx, dword [ebx + 8]
cmp dword [ebx + 0x60], 0
jne 0x10021570
push ebx
call fcn.10009550
mov eax, dword [ebx + 0x3c]
test al, 0x20
jne 0x10021581
mov edi, 0x80040e0c
jmp 0x10021c52
test al, 0x10
jne 0x1002158f
mov edi, 0x80040e4a
jmp 0x10021c52
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
lea eax, [esp + 0x24]
push eax
call fcn.10009a00
mov edi, eax
test edi, edi
jns 0x100215b4
cmp dword [esp + 0x24], 0xfffffaea
je 0x10021c52
mov eax, dword [ebx + 0x14]
push 0xe
mov ecx, dword [eax + 0x14]
call fcn.10015160
mov ecx, eax
call fcn.10015c00
cmp eax, 1
mov ebx, 0
mov eax, 1
cmove ebx, eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push eax
push dword [esp + 0x7c]
mov ebp, dword [eax + 0x10]
push dword [esp + 0x7c]
push 0x10
call fcn.10022070
mov edi, eax
test edi, edi
js 0x10021c52
cmp ebx, 1
mov ebx, dword [esp + 0x18]
jne 0x100216dc
push 0
push dword [esp + 0x18]
push dword [ebx + 0x10]
call sub.msjet40.dll_Ordinal_159
mov dword [esp + 0x24], eax
test eax, eax
jne 0x10021c56
push eax
push eax
push 4
lea eax, [esp + 0x74]
mov dword [esp + 0x74], 2
push eax
push 2
push dword [esp + 0x28]
push ebp
call sub.msjet40.dll_Ordinal_172
push 0
push 0
push 4
lea eax, [esp + 0x74]
mov dword [esp + 0x74], 0
push eax
push 4
push dword [esp + 0x28]
push ebp
call sub.msjet40.dll_Ordinal_172
push 0
push 0
push 2
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 3
push eax
push 5
push dword [esp + 0x28]
push ebp
call sub.msjet40.dll_Ordinal_172
push 0
push 0
push 4
lea eax, [esp + 0x74]
mov dword [esp + 0x74], 4
push eax
push 7
push dword [esp + 0x28]
push ebp
call sub.msjet40.dll_Ordinal_172
push 0
push 0
push 4
lea eax, [esp + 0x74]
mov dword [esp + 0x74], 0x13
push eax
push 0xa
push dword [esp + 0x28]
push ebp
call sub.msjet40.dll_Ordinal_172
push 0
push 0
push 0
push dword [esp + 0x20]
push dword [ebx + 0x10]
call sub.msjet40.dll_Ordinal_179
mov dword [esp + 0x24], eax
test eax, eax
jne 0x10021c56
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x10021aa8
mov edi, edi
cmp eax, dword [ecx + 4]
jae 0x10021aa8
push 0
push dword [esp + 0x18]
mov dword [esp + 0x30], 0
push dword [ebx + 0x10]
call sub.msjet40.dll_Ordinal_159
mov dword [esp + 0x24], eax
test eax, eax
jne 0x10021c56
imul edi, dword [esp + 0x1c], 0x68
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
add edi, eax
mov eax, dword [edi + 0x18]
test eax, eax
je 0x10021738
add eax, 0xfffffffe
cmp eax, 1
ja 0x10021768
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x10021768
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10021744
sub ecx, ebx
push 0
sar ecx, 1
push 0
lea eax, [ecx + ecx]
push eax
push edx
push 0
push dword [esp + 0x28]
push ebp
call sub.msjet40.dll_Ordinal_172
mov eax, dword [edi + 0x18]
cmp eax, 6
ja case.0x10021777.2
movzx eax, byte [eax + 0x10021d00]
jmp dword [eax*4 + 0x10021cf4]
lea eax, [edi + 8]
jmp 0x10021786
mov eax, dword [edi + 8]
test eax, eax
je case.0x10021777.2
push 0
push 0
push 0x10
push eax
push 1
push dword [esp + 0x28]
push ebp
call sub.msjet40.dll_Ordinal_172
mov eax, dword [edi + 0x18]
cmp eax, 1
je 0x100217ad
add eax, 0xfffffffc
cmp eax, 1
ja 0x100217c3
push 0
push 0
push 4
lea eax, [edi + 0x1c]
push eax
push 2
push dword [esp + 0x28]
push ebp
call sub.msjet40.dll_Ordinal_172
imul ecx, dword [esp + 0x1c], 0x68
mov eax, dword [esp + 0x20]
add ecx, dword [eax + 0xc]
call fcn.10007be0
mov edx, eax
test edx, edx
je 0x100217f1
mov eax, edx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100217e0
sub eax, edi
sar eax, 1
add eax, eax
push 0
push 0
push eax
push edx
push 3
push dword [esp + 0x28]
push ebp
call sub.msjet40.dll_Ordinal_172
inc dword [esp + 0x1c]
lea eax, [esp + 0x1c]
push 0
push 0
push 4
push eax
push 4
push dword [esp + 0x28]
push ebp
call sub.msjet40.dll_Ordinal_172
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
imul ecx, eax, 0x68
mov eax, dword [esp + 0x20]
push 0
push 0
push 2
mov eax, dword [eax + 0xc]
movzx eax, word [ecx + eax + 0x28]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
push eax
push 5
push dword [esp + 0x28]
push ebp
call sub.msjet40.dll_Ordinal_172
imul edx, dword [esp + 0x1c], 0x68
mov ebx, 0x83
mov ecx, dword [esp + 0x20]
push 0
push 0
push 4
mov eax, dword [ecx + 0xc]
mov edi, dword [edx + eax + 0x3c]
mov dword [esp + 0x3c], edi
mov eax, dword [ecx + 0xc]
movzx eax, word [edx + eax + 0x28]
cmp bx, ax
mov eax, 0x13
cmove edi, eax
lea eax, [esp + 0x3c]
push eax
push 7
push dword [esp + 0x28]
mov dword [esp + 0x48], edi
push ebp
call sub.msjet40.dll_Ordinal_172
imul ecx, dword [esp + 0x1c], 0x68
mov eax, dword [esp + 0x20]
add ecx, dword [eax + 0xc]
movzx eax, word [ecx + 0x28]
cmp ax, bx
jne 0x100218b2
mov al, byte [ecx + 0x30]
jmp 0x100218b8
push eax
call fcn.10008c10
movzx eax, al
mov ecx, 0xff
mov dword [esp + 0x28], eax
cmp cx, ax
je 0x100218e0
push 0
push 0
push 2
lea eax, [esp + 0x34]
push eax
push 8
push dword [esp + 0x28]
push ebp
call sub.msjet40.dll_Ordinal_172
imul ecx, dword [esp + 0x1c], 0x68
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
add ecx, eax
movzx eax, word [ecx + 0x28]
cmp bx, ax
jne 0x10021922
cmp word [ecx + 0x28], bx
jne 0x10021902
mov al, byte [ecx + 0x31]
jmp 0x10021904
or al, 0xff
push 0
push 0
movzx eax, al
push 2
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push eax
push 9
push dword [esp + 0x28]
push ebp
call sub.msjet40.dll_Ordinal_172
mov eax, dword [esp + 0x20]
imul ecx, dword [esp + 0x1c], 0x68
push 0
push 0
mov eax, dword [eax + 0xc]
push 4
mov eax, dword [ecx + eax + 0x38]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
push eax
push 0xa
push dword [esp + 0x28]
push ebp
call sub.msjet40.dll_Ordinal_172
imul ecx, dword [esp + 0x1c], 0x68
mov ebx, 0xb
mov eax, dword [esp + 0x20]
add ecx, dword [eax + 0xc]
call fcn.10007bc0
mov edx, eax
test edx, edx
je 0x10021999
mov ecx, edx
lea edi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10021970
sub ecx, edi
push 0
sar ecx, 1
push 0
lea eax, [ecx + ecx]
push eax
push edx
push 0xb
push dword [esp + 0x28]
push ebp
call sub.msjet40.dll_Ordinal_172
mov ebx, 0xc
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
imul ecx, edx, 0x68
mov eax, dword [edi + 0xc]
mov eax, dword [ecx + eax + 0x64]
mov dword [esp + 0x38], eax
test eax, eax
je 0x100219ef
mov ecx, eax
lea edx, [ecx + 2]
jmp 0x100219c0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100219c0
sub ecx, edx
push 0
sar ecx, 1
push 0
lea eax, [ecx + ecx]
push eax
push dword [esp + 0x44]
push ebx
push dword [esp + 0x28]
push ebp
call sub.msjet40.dll_Ordinal_172
mov edi, dword [esp + 0x20]
inc ebx
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 0xc]
imul ecx, edx, 0x68
push 0
push 0
push 1
mov eax, dword [ecx + eax + 0x34]
shr eax, 4
and al, 1
mov byte [esp + 0x74], al
lea eax, [esp + 0x74]
push eax
push ebx
push dword [esp + 0x28]
push ebp
call sub.msjet40.dll_Ordinal_172
push 0
push 0
push 1
lea eax, [esp + 0x74]
mov byte [esp + 0x74], 0
push eax
inc ebx
push ebx
push dword [esp + 0x28]
push ebp
call sub.msjet40.dll_Ordinal_172
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
push ecx
push 0xba
inc ebx
mov eax, dword [eax + 0x54]
mov ecx, dword [eax + 0xa0]
call fcn.10014f70
mov edi, eax
test edi, edi
js 0x10021c52
push 0
push 0
push 4
lea eax, [esp + 0x48]
push eax
push ebx
push dword [esp + 0x28]
push ebp
call sub.msjet40.dll_Ordinal_172
mov ebx, dword [esp + 0x18]
push 0
push 0
push 0
push dword [esp + 0x20]
push dword [ebx + 0x10]
call sub.msjet40.dll_Ordinal_179
mov dword [esp + 0x24], eax
test eax, eax
jne 0x10021c56
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
inc eax
mov dword [esp + 0x1c], eax
test ecx, ecx
jne 0x100216f0
push 0xf0
call fcn.1003d386
add esp, 4
mov dword [esp + 0x38], eax
mov byte [esp + 0x60], 2
test eax, eax
je 0x10021acf
push dword [esp + 0x6c]
mov ecx, eax
call fcn.1001c170
jmp 0x10021ad1
xor eax, eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x60], 1
test eax, eax
jne 0x10021ae8
mov edi, 0x8007000e
jmp 0x10021c56
lea ecx, [esp + 0x44]
call fcn.10014da0
mov edi, eax
test edi, edi
js 0x10021c56
push 0x10064cb8
lea ecx, [esp + 0x48]
call 0x10088c4c
mov edi, eax
test edi, edi
js 0x10021c56
mov eax, dword [ebx + 0x54]
lea ecx, [esp + 0x44]
add eax, 0x98
push eax
call fcn.10017fe0
mov edi, eax
test edi, edi
js 0x10021c56
push ebx
push dword [esp + 0x84]
lea ecx, [esp + 0x4c]
push dword [esp + 0x84]
call fcn.10016d20
mov edi, eax
test edi, edi
js 0x10021c56
cmp edi, 0x40eda
mov ecx, 1
mov eax, 0
cmove eax, ecx
push 0x20
mov dword [esp + 0x70], eax
call fcn.1003d386
add esp, 4
test eax, eax
je 0x10021c46
mov ecx, eax
call fcn.10002de0
mov ebx, eax
test ebx, ebx
je 0x10021c42
push 0
push 0
lea eax, [esp + 0x2c]
mov dword [ebx + 0x10], 0x1005c818
push eax
mov eax, dword [esp + 0x24]
mov ecx, ebx
mov dword [ebx + 0x18], 0x10076858
mov dword [ebx + 0x1c], 1
mov dword [ebx + 0x14], 0x10076898
push dword [esp + 0x20]
push dword [eax + 0x14]
push ebp
call 0x10088c4c
mov edi, eax
test edi, edi
js 0x10021c52
push dword [esp + 0x74]
mov ecx, ebx
push dword [esp + 0x74]
call fcn.10008500
mov edi, eax
test edi, edi
js 0x10021c52
push 0x10068ef8
push 0
push 0
push 1
push ebx
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x58]
push 0
push 0
push 1
push eax
push dword [esp + 0x38]
push 0
push 0
push 0
push ebx
push 0
push dword [esp + 0x68]
call fcn.1001c790
mov edi, eax
test edi, edi
js 0x10021c56
mov ecx, dword [esp + 0x2c]
push dword [esp + 0x84]
push dword [esp + 0x7c]
mov eax, dword [ecx]
push ecx
call dword [eax]
mov edi, eax
test edi, edi
js 0x10021c56
cmp dword [esp + 0x6c], 1
mov ecx, 0x40eda
cmove edi, ecx
jmp 0x10021c56
mov ebx, dword [esp + 0x18]
mov edi, 0x8007000e
jmp 0x10021c56
mov edi, 0x80070057
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10021c6d
push 0x10068d28
push eax
push edi
push ebx
call fcn.10010bd0
jmp 0x10021c84
test edi, edi
jns 0x10021cbe
push 0
push 0x10068d28
push edi
push dword [ebx + 0x14]
push dword [ebx + 0x10]
call fcn.100105d0
test edi, edi
jns 0x10021cbe
mov eax, dword [esp + 0x84]
test eax, eax
je 0x10021ca6
cmp dword [eax], 0
jne 0x10021ca6
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x10021ca6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x10021cbe
push eax
push ebp
call sub.msjet40.dll_Ordinal_108
mov dword [esp + 0x14], 0xffffffff
test esi, esi
je 0x10021cc9
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x44]
mov dword [esp + 0x60], 0xffffffff
call fcn.10013690
mov eax, edi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x20