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

Disassembly:
push 0xffffffffffffffff
push 0x1004caf1
mov eax, dword fs:[0]
push eax
mov eax, 0x10178
call fcn.1003e920
mov eax, dword [0x10077990]
xor eax, esp
mov dword [esp + 0x10174], eax
push esi
push edi
mov eax, dword [0x10077990]
xor eax, esp
push eax
lea eax, [esp + 0x10184]
mov dword fs:[0], eax
mov eax, dword [esp + 0x10194]
lea ecx, [esp + 0x10]
mov esi, dword [esp + 0x101b0]
xor edi, edi
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x10198]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1019c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x101a0]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x101a4]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x101a8]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x101ac]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x101b4]
mov dword [esp + 0x74], esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x90], edi
call fcn.100135e0
mov dword [esp + 0x10], vtable.CTableProperties.0
mov eax, dword [esp + 0x78]
push 0x38
push edi
mov dword [esp + 0x10194], edi
mov eax, dword [eax + 8]
mov dword [esp + 0x78], edi
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x64], eax
lea eax, [esp + 0xc4]
push eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0xc4], edi
call fcn.1003e950
add esp, 0xc
mov dword [esp + 0xf4], edi
xorps xmm0, xmm0
mov dword [esp + 0x40], edi
lea eax, [esp + 0x120]
movq qword [esp + 0x118], xmm0
movdqu xmmword [esp + 0xf8], xmm0
push edi
push edi
movdqu xmmword [esp + 0x110], xmm0
mov dword [esp + 0x44], eax
mov dword [esp + 0x90], edi
mov dword [esp + 0xc4], 0xffffffff
mov dword [esp + 0x100], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10036e56
mov dword [eax], edi
mov eax, dword [esp + 0x64]
test eax, eax
je 0x10036e64
mov dword [eax], 0
mov eax, dword [esp + 0x44]
test eax, eax
je 0x10036e72
mov dword [eax], 0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10036e80
mov dword [eax], 0
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x10036e8e
mov dword [eax], 0
test esi, esi
je 0x10036e98
mov dword [esi], 0
mov eax, dword [esp + 0x50]
test eax, eax
je 0x10036ea6
mov dword [eax], 0
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 8]
add esi, 0x68
push esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x54]
mov byte [esp + 0x1018c], 1
test eax, eax
je 0x1003834c
mov edx, dword [esp + 0x34]
test edx, edx
je 0x10036ee6
cmp dword [esp + 0x64], 0
je 0x1003834c
cmp dword [esp + 0x44], 0
je 0x10036ef8
cmp dword [esp + 0x30], 0
je 0x1003834c
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x10036f0b
cmp dword [esp + 0x74], 0
je 0x1003834c
test edx, edx
jne 0x10036f1d
cmp dword [esp + 0x44], edx
jne 0x10036f1d
test ecx, ecx
je 0x1003834c
cmp dword [eax + 0x10], 2
jne 0x1003833e
cmp dword [eax + 0x14], 0
je 0x1003833e
test edx, edx
je 0x10036fd7
push 0x10
call fcn.1003d386
add esp, 4
test eax, eax
je 0x10036f50
mov ecx, eax
call fcn.10002dc0
jmp 0x10036f52
xor eax, eax
mov dword [esp + 0x70], eax
test eax, eax
jne 0x10036f6b
mov ecx, dword [esp + 0x90]
mov edi, 0x8007000e
jmp 0x1003835e
push 0
lea ecx, [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x5c]
push dword [ecx + 0x14]
mov ecx, eax
push dword [esp + 0x68]
push dword [esp + 0x90]
call 0x10088fcb
mov edi, eax
mov dword [esp + 0x58], edi
test edi, edi
jns 0x10036fcf
mov ecx, dword [esp + 0x90]
cmp ecx, 0xfffff88d
je 0x10036fc5
cmp ecx, 0xfffff8ef
je 0x10036fc5
cmp ecx, 0xfffffae7
jne 0x1003835e
mov edi, 0x80040e37
jmp 0x10038362
mov edi, 0x80040e09
jmp 0x1003835e
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x10037186
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], 0
push ecx
push 0
lea ecx, [esp + 0x98]
push ecx
push 1
push 0x3c
lea ecx, [esp + 0xcc]
push ecx
push 0
push dword [eax + 0x14]
push dword [esp + 0x7c]
push dword [esp + 0xa4]
call fcn.10012fe0
mov edi, eax
mov dword [esp + 0x58], edi
test edi, edi
js 0x10038343
push 0x2c
lea eax, [esp + 0xf8]
push eax
mov eax, dword [esp + 0x5c]
push 0
push dword [eax + 0x14]
push dword [esp + 0x6c]
push dword [esp + 0x94]
call sub.msjet40.dll_Ordinal_912
mov ecx, eax
mov dword [esp + 0x90], ecx
cmp ecx, 0xfffffc17
je 0x10037067
test ecx, ecx
jns 0x10037072
mov edi, 0x80004005
jmp 0x1003835e
mov dword [esp + 0xfc], 0
push 0
push 0
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x48]
push eax
push 0xffdc
lea eax, [esp + 0x134]
push eax
mov eax, dword [esp + 0x6c]
push str.CheckConstraints
push 0
push dword [eax + 0x14]
push str.Tables
push dword [esp + 0x84]
push dword [esp + 0xac]
call sub.msjet40.dll_Ordinal_906
mov ecx, eax
mov dword [esp + 0x90], ecx
cmp ecx, 0xfffff1ee
je 0x10037166
cmp ecx, 0xfffff1f0
je 0x10037166
test ecx, ecx
je 0x100370e4
jns 0x100370e4
mov edi, 0x80004005
jmp 0x1003835e
cmp word [esp + 0x120], 0
je 0x10037179
xor edi, edi
lea esi, [esp + 0x120]
xor ecx, ecx
mov edi, edi
mov edx, esi
lea eax, [edx + 2]
mov dword [esp + 0x88], eax
lea esp, [esp]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10037110
sub edx, dword [esp + 0x88]
sar edx, 1
lea esi, [esi + edx*2]
add esi, 2
test ecx, 1
je 0x10037138
lea edi, [edi + edx*2]
add edi, 2
inc ecx
cmp word [esi], 0
jne 0x10037100
mov esi, dword [esp + 0x60]
lea eax, [esp + 0x120]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x88], edi
mov edi, dword [esp + 0x58]
mov dword [esp + 0x3c], eax
jmp 0x1003718d
xor eax, eax
xor ecx, ecx
mov word [esp + 0x120], ax
mov dword [esp + 0x90], ecx
lea eax, [esp + 0x120]
mov dword [esp + 0x3c], eax
jmp 0x1003718d
mov ecx, dword [esp + 0x90]
cmp dword [esp + 0x50], 0
je 0x100371f3
cmp dword [esp + 0x34], 0
je 0x100371b1
mov edx, dword [esp + 0x70]
mov eax, dword [0x1005ebfc]
inc eax
imul eax, dword [edx + 4]
add eax, eax
mov dword [esp + 0x38], eax
jmp 0x100371b3
xor eax, eax
cmp dword [esp + 0x4c], 0
je 0x100371c5
add eax, dword [esp + 0x88]
mov dword [esp + 0x38], eax
test eax, eax
je 0x100371f3
mov eax, dword [0x1007a1e0]
push dword [esp + 0x38]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov ecx, dword [esp + 0x50]
mov dword [ecx], eax
mov ecx, dword [esp + 0x90]
test eax, eax
jne 0x100371f3
mov edi, 0x8007000e
jmp 0x1003835e
mov edx, dword [esp + 0x34]
test edx, edx
je 0x10037705
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 4]
mov dword [esp + 0x60], eax
mov dword [edx], eax
test eax, eax
je 0x1003725c
mov ecx, dword [0x1007a1e0]
imul edx, eax, 0x34
mov eax, dword [ecx]
push edx
push ecx
mov dword [esp + 0x84], edx
call dword [eax + 0xc]
mov ecx, dword [esp + 0x64]
mov dword [ecx], eax
test eax, eax
jne 0x10037242
mov ecx, dword [esp + 0x90]
mov edi, 0x8007000e
jmp 0x1003835e
push dword [esp + 0x7c]
push 0
push eax
call fcn.1003e950
mov ecx, dword [esp + 0x9c]
add esp, 0xc
mov eax, dword [esp + 0x60]
mov dword [esp + 0x88], 0
test eax, eax
je 0x10037705
xor edx, edx
mov dword [esp + 0x84], 0
mov dword [esp + 0x8c], edx
cmp dword [esp + 0x50], 0
je 0x1003730c
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + edx + 0x24]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x48]
shr eax, 1
sub eax, edx
push eax
mov eax, dword [esp + 0x54]
lea edi, [edx + edx]
push dword [ecx*8 + 0x10077464]
mov eax, dword [eax]
add eax, edi
push eax
call fcn.10004060
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x84]
mov ecx, dword [eax]
mov eax, dword [esp + 0x64]
add ecx, edi
mov eax, dword [eax]
mov dword [edx + eax], ecx
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x8c]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ecx + 0x24]
mov ecx, dword [eax*8 + 0x10077464]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100372f2
mov eax, dword [esp + 0x48]
sub ecx, edx
sar ecx, 1
inc eax
add eax, ecx
mov dword [esp + 0x48], eax
lea ecx, [esp + 0x20]
call fcn.100135e0
mov dword [esp + 0x20], vtable.CColumnProperties.0
lea ecx, [esp + 0x20]
mov byte [esp + 0x1018c], 2
call fcn.10014bb0
mov edi, eax
lea ecx, [esp + 0x20]
test edi, edi
js 0x10037877
push 0x10064cb8
call fcn.10014070
mov edi, eax
test edi, edi
js 0x1003785a
mov eax, dword [esp + 0x78]
push 0
push 0x18
mov eax, dword [eax + 8]
mov edi, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x9c]
push eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0xc]
add ecx, dword [esp + 0x98]
call fcn.10007be0
push eax
mov eax, dword [esp + 0x64]
push dword [eax + 0x14]
push edi
push dword [esp + 0x94]
call sub.msjet40.dll_Ordinal_133
mov dword [esp + 0x90], eax
cmp eax, 0xfffffa1d
je 0x10037855
cmp eax, 0xfffffae7
je 0x1003784e
test eax, eax
jne 0x10037847
push dword [esp + 0xa8]
lea ecx, [esp + 0x24]
call fcn.10015c80
mov edi, eax
test edi, edi
js 0x1003785a
mov ecx, dword [esp + 0x28]
push 0x1a
call fcn.10015160
mov ecx, eax
call fcn.10015c00
cmp eax, 1
jne 0x1003747f
mov eax, dword [esp + 0x78]
push 0xb
push 0xc
mov eax, dword [eax + 8]
mov edi, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x84], eax
lea eax, [esp + 0xb4]
push eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0xc]
add ecx, dword [esp + 0x98]
call fcn.10007be0
push eax
mov eax, dword [esp + 0x64]
push dword [eax + 0x14]
push edi
push dword [esp + 0x94]
call sub.msjet40.dll_Ordinal_133
mov dword [esp + 0x90], eax
test eax, eax
js 0x1003747f
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0xb0]
push eax
push 0x11a
call fcn.10015160
mov ecx, eax
call fcn.10016140
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0xb4]
push eax
push 0x11b
call fcn.10015160
mov ecx, eax
call fcn.10016140
mov eax, dword [esp + 0x78]
push 1
mov eax, dword [eax + 8]
mov edi, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0xc]
add ecx, dword [esp + 0x90]
call fcn.10007be0
push eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x28]
push dword [eax + 0x14]
push edi
push 0xffffffffffffffff
push dword [esp + 0x90]
call fcn.10016b00
mov edi, eax
test edi, edi
js 0x1003785a
mov ecx, dword [esp + 0x28]
push 0xa7
call fcn.10015160
mov ecx, eax
call fcn.10015c00
cmp eax, 1
jne 0x10037518
mov ecx, dword [esp + 0x2c]
push 0xe0
call fcn.10015160
mov ecx, eax
call fcn.10015c00
cmp eax, 1
jne 0x10037518
mov ecx, dword [esp + 0x2c]
push 0
push 0xe0
call fcn.10015160
mov ecx, eax
call fcn.10017fc0
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x84]
push 1
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x54]
mov eax, dword [esp + 0x68]
mov eax, dword [eax]
add edx, eax
lea eax, [esp + 0x24]
push eax
push ecx
lea eax, [edx + 8]
push eax
lea eax, [edx + 0x10]
push eax
push 0
push 0
call fcn.1003bf00
mov edi, eax
mov byte [esp + 0x1018c], 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], edi
call fcn.10013690
test edi, edi
js 0x10038343
mov edx, dword [esp + 0x70]
mov eax, dword [edx + 0xc]
mov edx, dword [esp + 0x8c]
mov ecx, dword [eax + edx + 0x3c]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x84]
mov eax, dword [eax]
mov dword [eax + edx + 0x14], ecx
mov ecx, edx
mov eax, dword [esp + 0x64]
mov eax, dword [eax]
mov dword [eax + ecx + 0x28], 2
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0xc]
add ecx, dword [esp + 0x8c]
call fcn.10007be0
test eax, eax
je 0x10037649
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0xc]
add ecx, dword [esp + 0x8c]
call fcn.10007be0
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100375d0
sub eax, edx
sar eax, 1
lea edx, [eax*2 + 2]
mov eax, dword [0x1007a1e0]
push edx
push eax
mov dword [esp + 0x84], edx
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edx, dword [esp + 0x64]
mov ecx, dword [edx]
mov edx, dword [esp + 0x84]
mov dword [ecx + edx + 0x2c], eax
mov eax, dword [esp + 0x64]
mov eax, dword [eax]
cmp dword [eax + edx + 0x2c], 0
je 0x10036f5a
mov eax, dword [esp + 0x70]
push dword [esp + 0x7c]
mov ecx, dword [eax + 0xc]
add ecx, dword [esp + 0x90]
call fcn.10007be0
mov ecx, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0x6c]
mov eax, dword [eax]
push dword [eax + ecx + 0x2c]
call fcn.10004060
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x8c]
mov eax, dword [eax + 0xc]
movzx ecx, word [eax + edx + 0x28]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x84]
mov eax, dword [eax]
mov word [eax + edx + 0x30], cx
mov ecx, edx
mov eax, dword [esp + 0x64]
mov edx, 0x83
mov eax, dword [eax]
cmp dx, word [eax + ecx + 0x30]
mov edx, dword [esp + 0x8c]
jne 0x100376d3
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0xc]
add ecx, edx
call fcn.10008c40
mov edx, dword [esp + 0x64]
mov ecx, dword [edx]
mov edx, dword [esp + 0x84]
mov byte [ecx + edx + 0x32], al
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0xc]
add ecx, dword [esp + 0x8c]
call fcn.10008c70
mov edx, dword [esp + 0x64]
mov ecx, dword [edx]
mov edx, dword [esp + 0x84]
mov byte [ecx + edx + 0x33], al
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x88]
add edx, 0x68
add dword [esp + 0x84], 0x34
inc eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], edx
cmp eax, dword [esp + 0x60]
jb 0x10037283
mov ecx, dword [esp + 0x90]
cmp dword [esp + 0x44], 0
je 0x100377ca
lea ecx, [esp + 0x10]
call fcn.10014da0
mov edi, eax
test edi, edi
js 0x10038343
push 0x10064cb8
lea ecx, [esp + 0x14]
call fcn.100141b0
mov edi, eax
test edi, edi
js 0x10038343
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x54]
mov eax, dword [eax + 8]
push dword [ecx + 0x14]
lea ecx, [esp + 0x14]
push dword [eax + 0x14]
push 0xffffffffffffffff
push dword [eax + 0x10]
call fcn.100166b0
mov edi, eax
test edi, edi
js 0x10038343
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x58]
mov eax, dword [eax + 8]
push dword [ecx + 0x14]
lea ecx, [esp + 0x18]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.10014fe0
mov edi, eax
test edi, edi
js 0x10038343
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x10]
push 4
push ecx
mov eax, dword [eax + 8]
push dword [eax + 0x54]
push dword [esp + 0x3c]
push dword [esp + 0x54]
push 0
push 0
call fcn.1003bf00
mov edi, eax
mov dword [esp + 0x58], edi
test edi, edi
js 0x10038343
mov ecx, dword [esp + 0x90]
cmp dword [esp + 0x4c], 0
je 0x1003835e
shr dword [esp + 0x40], 1
xor edi, edi
mov edx, dword [esp + 0xc0]
mov eax, 0x20
cmp edx, eax
mov dword [esp + 0x8c], 0
mov dword [esp + 0x5c], edi
cmovb eax, edx
add eax, dword [esp + 0x40]
add eax, dword [esp + 0xfc]
je 0x100378ad
mov ecx, dword [0x1007a1e0]
lea edx, [eax*8]
sub edx, eax
shl edx, 3
push edx
mov eax, dword [ecx]
push ecx
mov dword [esp + 0x84], edx
call dword [eax + 0xc]
mov ecx, dword [esp + 0x74]
mov dword [ecx], eax
test eax, eax
jne 0x10037890
mov ecx, dword [esp + 0x90]
mov edi, 0x8007000e
jmp 0x1003835e
mov edi, 0x80004005
jmp 0x1003785a
mov edi, 0x80040e37
jmp 0x1003785a
mov edi, 0x80040e65
lea ecx, [esp + 0x20]
mov byte [esp + 0x1018c], 1
call fcn.10013690
mov ecx, dword [esp + 0x90]
jmp 0x1003835e
mov byte [esp + 0x1018c], 1
call fcn.10013690
mov ecx, dword [esp + 0x90]
jmp 0x1003835e
push dword [esp + 0x7c]
push 0
push eax
call fcn.1003e950
mov ecx, dword [esp + 0x9c]
add esp, 0xc
mov edx, dword [esp + 0xc0]
test edx, edx
mov eax, 1
cmove edi, eax
xor edx, edx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x84], edx
test edi, edi
jne 0x10037949
mov dword [esp + 0x68], edi
push 0
push 0
push 0
push 4
lea eax, [esp + 0x9c]
push eax
push dword [esp + 0xdc]
push dword [esp + 0xd4]
push dword [esp + 0x9c]
call sub.msjet40.dll_Ordinal_167
mov ecx, eax
mov dword [esp + 0x90], ecx
test ecx, ecx
js 0x1003705d
mov eax, dword [esp + 0x8c]
test al, 3
jne 0x10037a52
push 0
push 1
push dword [esp + 0xc4]
push dword [esp + 0x8c]
call sub.msjet40.dll_Ordinal_156
mov ecx, eax
mov dword [esp + 0x90], ecx
cmp ecx, 0xfffff9bd
jne 0x100378d0
mov edx, dword [esp + 0x84]
cmp dword [esp + 0xfc], 0
je 0x100381f3
lea edi, [edx*8]
sub edi, edx
shl edi, 3
xor eax, eax
mov dword [esp + 0x68], edi
lea esp, [esp]
test eax, eax
jne 0x100381cd
push 0
push 0
lea eax, [esp + 0x94]
push eax
push 0x82
lea eax, [esp + 0x1010c]
push eax
push dword [esp + 0x124]
push dword [esp + 0x110]
push dword [esp + 0x9c]
call sub.msjet40.dll_Ordinal_167
mov ecx, eax
mov dword [esp + 0x90], ecx
test ecx, ecx
js 0x1003705d
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x84]
cmp ecx, 0x3ec
je 0x10037970
mov eax, dword [esp + 0x8c]
and eax, 0xfffffffe
cmp eax, 0x82
jae 0x10037ce2
xor ecx, ecx
mov word [esp + eax + 0x100fc], cx
lea eax, [esp + 0x100fc]
push eax
mov eax, dword [esp + 0x58]
push dword [eax + 0x14]
call fcn.1004ae64
add esp, 8
push 0
test eax, eax
je 0x10037ce7
push 1
push dword [esp + 0x100]
push dword [esp + 0x8c]
call sub.msjet40.dll_Ordinal_156
mov edx, dword [esp + 0x84]
mov ecx, eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x90], ecx
cmp ecx, 0xfffff9bd
jne 0x10037970
mov eax, 1
mov dword [esp + 0x5c], eax
jmp 0x10037970
test al, 2
je 0x10037a66
mov eax, dword [esp + 0x74]
mov eax, dword [eax]
mov dword [eax + edi + 4], 2
jmp 0x10037a78
test al, 1
je 0x10037a78
mov eax, dword [esp + 0x74]
mov eax, dword [eax]
mov dword [eax + edi + 4], 0
push 0
push 0
lea eax, [esp + 0x94]
push eax
push 0x82
lea eax, [esp + 0x1010c]
push eax
push dword [esp + 0xd8]
push dword [esp + 0xd4]
push dword [esp + 0x9c]
call sub.msjet40.dll_Ordinal_167
mov ecx, eax
mov dword [esp + 0x90], ecx
test ecx, ecx
js 0x1003705d
mov ecx, dword [esp + 0x8c]
mov eax, ecx
and eax, 0xfffffffe
cmp eax, 0x82
jae 0x10037ce2
xor edx, edx
mov word [esp + eax + 0x100fc], dx
lea eax, [esp + 0x100fc]
push ecx
mov ecx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x7c]
mov eax, dword [eax]
add eax, edi
push eax
call fcn.10036be0
mov edi, eax
test edi, edi
js 0x10038343
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x10104]
push eax
push dword [esp + 0xd0]
push dword [esp + 0xcc]
push dword [esp + 0x94]
call fcn.10036360
mov edi, eax
mov dword [esp + 0x58], edi
test edi, edi
js 0x10038343
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x88]
mov eax, dword [eax]
mov dword [eax + edi + 8], edx
lea edx, [edx + edx*2]
mov ecx, dword [0x1007a1e0]
shl edx, 3
push edx
push ecx
mov eax, dword [ecx]
mov dword [esp + 0x84], edx
call dword [eax + 0xc]
mov edx, dword [esp + 0x74]
mov ecx, dword [edx]
mov dword [ecx + edi + 0xc], eax
mov eax, dword [edx]
mov eax, dword [eax + edi + 0xc]
test eax, eax
je 0x10036f5a
push dword [esp + 0x7c]
push 0
push eax
call fcn.1003e950
mov ecx, dword [esp + 0x9c]
add esp, 0xc
cmp dword [esp + 0x88], 0
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x7c], 0
jbe 0x10037cb7
mov dword [esp + 0x60], 0
test edi, edi
jne 0x10037cb7
push edi
push edi
lea eax, [esp + 0x94]
push eax
push 0x82
lea eax, [esp + 0x1010c]
push eax
push dword [esp + 0x104]
push dword [esp + 0xd4]
push dword [esp + 0x9c]
call sub.msjet40.dll_Ordinal_167
mov ecx, eax
mov dword [esp + 0x90], ecx
test ecx, ecx
js 0x1003705d
mov ecx, dword [esp + 0x8c]
mov eax, ecx
and eax, 0xfffffffe
cmp eax, 0x82
jae 0x10037ce2
xor edx, edx
mov word [esp + eax + 0x100fc], dx
lea eax, [esp + 0x100fc]
push ecx
mov ecx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x7c]
mov eax, dword [eax]
mov eax, dword [eax + ecx + 0xc]
add eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x80]
push eax
call fcn.10036b90
mov edi, eax
mov dword [esp + 0x58], edi
test edi, edi
js 0x10038343
push 0
push 1
push dword [esp + 0xc4]
push dword [esp + 0x8c]
call sub.msjet40.dll_Ordinal_156
mov edi, dword [esp + 0x6c]
mov ecx, eax
cmp ecx, 0xfffff9bd
mov dword [esp + 0x90], ecx
mov eax, 1
cmove edi, eax
mov eax, dword [esp + 0x7c]
add dword [esp + 0x60], 0x18
inc eax
mov dword [esp + 0x6c], edi
mov dword [esp + 0x7c], eax
cmp eax, dword [esp + 0x88]
jb 0x10037bc5
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x84]
add dword [esp + 0x68], 0x38
inc edx
mov dword [esp + 0x84], edx
inc dword [eax]
test edi, edi
jne 0x10037949
mov edi, dword [esp + 0x68]
jmp 0x100378d0
call fcn.1003e83e
push 0
lea eax, [esp + 0x94]
push eax
push 0x82
lea eax, [esp + 0x1010c]
push eax
push dword [esp + 0x114]
push dword [esp + 0x110]
push dword [esp + 0x9c]
call sub.msjet40.dll_Ordinal_167
mov ecx, eax
mov dword [esp + 0x90], ecx
test ecx, ecx
js 0x1003705d
mov ecx, dword [esp + 0x8c]
mov eax, ecx
and eax, 0xfffffffe
cmp eax, 0x82
jae 0x10037ce2
xor edx, edx
mov word [esp + eax + 0x100fc], dx
lea eax, [esp + 0x100fc]
push ecx
mov ecx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x7c]
mov eax, dword [eax]
add eax, edi
push eax
call fcn.10036be0
mov edi, eax
test edi, edi
js 0x10038343
push 0
push 0
lea eax, [esp + 0x94]
push eax
push 0x82
lea eax, [esp + 0x1010c]
push eax
push dword [esp + 0x12c]
push dword [esp + 0x110]
push dword [esp + 0x9c]
call sub.msjet40.dll_Ordinal_167
mov ecx, eax
mov dword [esp + 0x90], ecx
test ecx, ecx
js 0x1003705d
mov ecx, dword [esp + 0x8c]
mov eax, ecx
and eax, 0xfffffffe
cmp eax, 0x82
jae 0x10037ce2
push ecx
mov ecx, dword [esp + 0x6c]
xor edx, edx
mov word [esp + eax + 0x10100], dx
add ecx, 0x10
lea eax, [esp + 0x10100]
push eax
mov eax, dword [esp + 0x7c]
mov eax, dword [eax]
add eax, ecx
mov ecx, dword [esp + 0x80]
push eax
call fcn.10036be0
mov edi, eax
test edi, edi
js 0x10038343
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x68]
mov eax, dword [edx]
mov dword [eax + ecx + 4], 1
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x70]
push eax
mov eax, dword [edx]
mov eax, dword [eax + ecx]
mov ecx, dword [esp + 0x80]
push dword [eax + 0x14]
push dword [esp + 0x10c]
push dword [esp + 0x108]
push dword [esp + 0x94]
call fcn.10036360
mov edi, eax
mov dword [esp + 0x58], eax
test edi, edi
js 0x10038343
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov eax, dword [eax]
mov dword [eax + edi + 0x14], edx
lea edx, [edx + edx*2]
mov ecx, dword [0x1007a1e0]
shl edx, 3
push edx
push ecx
mov eax, dword [ecx]
mov dword [esp + 0x90], edx
call dword [eax + 0xc]
mov edx, dword [esp + 0x74]
mov ecx, dword [edx]
mov dword [ecx + edi + 0x18], eax
mov eax, dword [edx]
mov eax, dword [eax + edi + 0x18]
test eax, eax
je 0x10036f5a
push dword [esp + 0x88]
push 0
push eax
call fcn.1003e950
mov eax, dword [esp + 0x80]
add esp, 0xc
mov ecx, dword [esp + 0x6c]
mov eax, dword [eax]
push dword [esp + 0x88]
mov dword [eax + edi + 8], ecx
mov eax, dword [0x1007a1e0]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edx, dword [esp + 0x74]
mov ecx, dword [edx]
mov dword [ecx + edi + 0xc], eax
mov eax, dword [edx]
mov eax, dword [eax + edi + 0xc]
test eax, eax
je 0x10036f5a
push dword [esp + 0x88]
push 0
push eax
call fcn.1003e950
add esp, 0xc
lea eax, [esp + 0x8c]
push 0
push 0
push eax
push 4
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x118]
push dword [esp + 0x110]
push dword [esp + 0x9c]
call sub.msjet40.dll_Ordinal_167
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x7c]
and eax, 0xf00
je 0x10037f5f
cmp eax, 0x100
je 0x10037f58
cmp eax, 0x200
jne 0x10037f4f
mov ecx, 2
jmp 0x10037f61
mov ecx, dword [esp + 0x8c]
jmp 0x10037f68
mov ecx, 1
jmp 0x10037f61
xor ecx, ecx
mov dword [esp + 0x8c], ecx
mov edx, dword [esp + 0x74]
mov eax, dword [edx]
mov dword [eax + edi + 0x20], ecx
mov eax, dword [esp + 0x7c]
and eax, 0xf000
je 0x10037fa2
cmp eax, 0x1000
je 0x10037f9b
cmp eax, 0x2000
jne 0x10037f92
mov ecx, 2
jmp 0x10037fa4
mov ecx, dword [esp + 0x8c]
jmp 0x10037fab
mov ecx, 1
jmp 0x10037fa4
xor ecx, ecx
mov dword [esp + 0x8c], ecx
cmp dword [esp + 0x6c], 0
mov eax, dword [edx]
mov dword [esp + 0x60], 0
mov dword [eax + edi + 0x24], ecx
jbe 0x1003818f
xor edi, edi
mov dword [esp + 0x88], edi
lea ecx, [ecx]
push 0
push 0
lea eax, [esp + 0x94]
push eax
push 0x82
lea eax, [esp + 0x1010c]
push eax
push dword [esp + 0x128]
push dword [esp + 0x110]
push dword [esp + 0x9c]
call sub.msjet40.dll_Ordinal_167
mov ecx, eax
mov dword [esp + 0x90], ecx
test ecx, ecx
js 0x1003705d
mov ecx, dword [esp + 0x8c]
mov eax, ecx
and eax, 0xfffffffe
cmp eax, 0x82
jae 0x10037ce2
xor edx, edx
mov word [esp + eax + 0x100fc], dx
lea eax, [esp + 0x100fc]
push ecx
mov ecx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x7c]
mov eax, dword [eax]
mov eax, dword [eax + ecx + 0x18]
mov ecx, dword [esp + 0x80]
add eax, edi
push eax
call fcn.10036b90
mov edi, eax
test edi, edi
js 0x10038343
push 0
push 0
lea eax, [esp + 0x94]
push eax
push 0x82
lea eax, [esp + 0x1010c]
push eax
push dword [esp + 0x130]
push dword [esp + 0x110]
push dword [esp + 0x9c]
call sub.msjet40.dll_Ordinal_167
mov ecx, eax
mov dword [esp + 0x90], ecx
test ecx, ecx
js 0x1003705d
mov ecx, dword [esp + 0x8c]
mov eax, ecx
and eax, 0xfffffffe
cmp eax, 0x82
jae 0x10037ce2
xor edx, edx
mov word [esp + eax + 0x100fc], dx
lea eax, [esp + 0x100fc]
push ecx
mov ecx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x7c]
mov eax, dword [eax]
mov eax, dword [eax + ecx + 0xc]
add eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x80]
push eax
call fcn.10036b90
mov edi, eax
mov dword [esp + 0x58], edi
test edi, edi
js 0x10038343
push 0
push 1
push dword [esp + 0x100]
push dword [esp + 0x8c]
call sub.msjet40.dll_Ordinal_156
mov dword [esp + 0x90], eax
cmp eax, 0xfffff9bd
jne 0x1003813e
mov ecx, 1
mov dword [esp + 0x90], 0
mov dword [esp + 0x5c], ecx
jmp 0x10038142
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x88]
inc eax
add edi, 0x18
mov dword [esp + 0x60], eax
mov dword [esp + 0x88], edi
cmp eax, dword [esp + 0x6c]
jb 0x10037fd0
test ecx, ecx
jne 0x1003818b
test eax, eax
je 0x1003818b
push ecx
push 0xffffffffffffffff
push dword [esp + 0x100]
push dword [esp + 0x8c]
call sub.msjet40.dll_Ordinal_156
mov dword [esp + 0x90], eax
mov edi, dword [esp + 0x68]
mov eax, dword [esp + 0x4c]
push 0
push 1
push dword [esp + 0x100]
inc dword [eax]
push dword [esp + 0x8c]
call sub.msjet40.dll_Ordinal_156
mov edx, dword [esp + 0x84]
mov ecx, eax
mov dword [esp + 0x90], ecx
cmp ecx, 0xfffff9bd
jne 0x100381d8
xor ecx, ecx
mov dword [esp + 0x90], ecx
mov eax, 1
mov dword [esp + 0x5c], eax
jmp 0x100381dc
mov eax, dword [esp + 0x5c]
inc edx
add edi, 0x38
mov dword [esp + 0x84], edx
mov dword [esp + 0x68], edi
test eax, eax
je 0x10037978
cmp dword [esp + 0x40], 0
mov dword [esp + 0x60], 0
jbe 0x1003835a
shl edx, 3
sub edx, dword [esp + 0x84]
shl edx, 3
mov dword [esp + 0x88], edx
lea ebx, [ebx]
mov ecx, dword [esp + 0x3c]
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10038227
sub ecx, edi
mov edi, dword [esp + 0x74]
sar ecx, 1
push ecx
push dword [esp + 0x40]
mov eax, dword [edi]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + edx + 4], 3
mov eax, dword [edi]
add eax, edx
push eax
call fcn.10036be0
mov edi, eax
mov dword [esp + 0x58], edi
test edi, edi
js 0x10038343
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x3c]
inc eax
lea edx, [ecx + eax*2]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x6c], edx
test eax, eax
je 0x100382e1
mov ecx, dword [esp + 0x48]
push edx
lea edi, [ecx + ecx]
mov ecx, dword [eax]
mov eax, dword [esp + 0x3c]
add ecx, edi
shr eax, 1
sub eax, dword [esp + 0x4c]
push eax
push ecx
call fcn.10003fe0
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x88]
mov ecx, dword [eax]
mov eax, dword [esp + 0x74]
add ecx, edi
mov eax, dword [eax]
mov dword [eax + edx + 0x1c], ecx
mov edx, dword [esp + 0x6c]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100382c3
mov eax, dword [esp + 0x48]
sub ecx, edi
mov edi, dword [esp + 0x58]
inc eax
sar ecx, 1
add eax, ecx
mov dword [esp + 0x48], eax
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x6c], eax
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100382f0
sub ecx, dword [esp + 0x6c]
lea eax, [edx + 2]
mov edx, dword [esp + 0x88]
sar ecx, 1
add edx, 0x38
mov dword [esp + 0x88], edx
lea eax, [eax + ecx*2]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x4c]
inc dword [eax]
mov eax, dword [esp + 0x60]
inc eax
mov dword [esp + 0x60], eax
cmp eax, dword [esp + 0x40]
jb 0x10038220
mov ecx, dword [esp + 0x90]
jmp 0x1003835e
mov edi, 0x80040e3c
mov ecx, dword [esp + 0x90]
jmp 0x1003835e
mov ecx, dword [esp + 0x90]
mov edi, 0x80070057
jmp 0x1003835e
mov edi, dword [esp + 0x58]
test ecx, ecx
je 0x10038377
mov eax, dword [esp + 0x78]
push 0x10068ec8
push ecx
push edi
push dword [eax + 8]
call fcn.10010bd0
jmp 0x10038395
test edi, edi
jns 0x10038395
mov eax, dword [esp + 0x78]
push 0
push 0x10068ec8
push edi
mov eax, dword [eax + 8]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.100105d0
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x100383a4
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov eax, dword [esp + 0xf8]
cmp eax, 0xffffffff
je 0x100383bd
push eax
push dword [esp + 0x84]
call sub.msjet40.dll_Ordinal_108
mov eax, dword [esp + 0xbc]
cmp eax, 0xffffffff
je 0x100383d6
push eax
push dword [esp + 0x84]
call sub.msjet40.dll_Ordinal_108
test edi, edi
jns 0x1003842d
push dword [esp + 0x64]
mov ecx, dword [esp + 0x7c]
push dword [esp + 0x38]
call fcn.10036c60
push dword [esp + 0x30]
push dword [esp + 0x48]
call fcn.1003bea0
push dword [esp + 0x74]
push dword [esp + 0x50]
call fcn.1003bd40
mov eax, dword [esp + 0x50]
test eax, eax
je 0x1003842d
mov edx, dword [eax]
test edx, edx
je 0x1003842d
mov eax, dword [0x1007a1e0]
test eax, eax
je 0x10038423
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 0x50]
mov dword [eax], 0
test esi, esi
je 0x10038438
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1018c], 0xffffffff
call fcn.10013690
mov eax, edi
mov ecx, dword [esp + 0x10184]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10174]
xor ecx, esp
call fcn.1003dba2
add esp, 0x10184
ret 0x24