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

Disassembly:
sub esp, 0x4f8
mov eax, dword [0x10077990]
xor eax, esp
mov dword [esp + 0x4f4], eax
mov eax, dword [esp + 0x4fc]
push ebx
mov ebx, dword [esp + 0x504]
push ebp
mov ebp, dword [esp + 0x50c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x514]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 8], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x3c], 0
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0xb4], 0xffffffff
mov dword [esp + 0x84], 0xffffffff
mov dword [esp + 0x10], 0xffffffff
push esi
mov esi, dword [ebx + 0x10]
push edi
mov edi, dword [esp + 0x518]
test ebp, ebp
je 0x1002a8d1
test edi, edi
je 0x1002a8c3
cmp ebp, 7
ja 0x1002a8c3
test ebp, ebp
je 0x1002a80d
movzx eax, word [edi]
test ax, ax
je 0x1002a80d
cmp eax, 1
je 0x1002a80d
cmp eax, 8
jne 0x1002a8c3
cmp dword [edi + 8], 0
jne 0x1002a8c3
cmp ebp, 1
jbe 0x1002a833
movzx eax, word [edi + 0x10]
test ax, ax
je 0x1002a833
cmp eax, 1
je 0x1002a833
cmp eax, 8
jne 0x1002a8c3
cmp dword [edi + 0x18], 0
jne 0x1002a8c3
cmp ebp, 2
jbe 0x1002a84b
movzx eax, word [edi + 0x20]
test ax, ax
je 0x1002a84b
cmp eax, 1
je 0x1002a84b
cmp eax, 8
jne 0x1002a8c3
cmp ebp, 3
jbe 0x1002a869
movzx eax, word [edi + 0x30]
test ax, ax
je 0x1002a869
cmp eax, 1
je 0x1002a869
cmp eax, 8
jne 0x1002a8c3
cmp dword [edi + 0x38], 0
jne 0x1002a8c3
cmp ebp, 4
jbe 0x1002a887
movzx eax, word [edi + 0x40]
test ax, ax
je 0x1002a887
cmp eax, 1
je 0x1002a887
cmp eax, 8
jne 0x1002a8c3
cmp dword [edi + 0x48], 0
jne 0x1002a8c3
cmp ebp, 5
jbe 0x1002a8a5
movzx eax, word [edi + 0x50]
test ax, ax
je 0x1002a8a5
cmp eax, 1
je 0x1002a8a5
cmp eax, 8
jne 0x1002a8c3
cmp dword [edi + 0x58], 0
jne 0x1002a8c3
cmp ebp, 6
jbe 0x1002a8d1
movzx eax, word [edi + 0x60]
test ax, ax
je 0x1002a8d1
cmp eax, 1
je 0x1002a8d1
cmp eax, 8
jne 0x1002a8c3
cmp dword [edi + 0x68], 0
je 0x1002a8d1
mov edi, dword [esp + 0x14]
mov ebx, 0x80070057
jmp 0x1002b17d
mov eax, dword [0x1007a1e0]
push 0x28
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x1002b159
push 2
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push 8
call fcn.10031c40
mov ebx, eax
test ebx, ebx
js 0x1002b15e
cmp ebp, 3
jb 0x1002a91f
mov edx, 1
xor ecx, ecx
cmp dx, word [edi + 0x20]
mov eax, edx
cmove eax, ecx
mov dword [esp + 0x28], eax
jmp 0x1002a924
mov eax, 1
cmp ebp, 2
jbe 0x1002a948
mov ecx, 8
cmp cx, word [edi + 0x20]
jne 0x1002a948
mov ecx, dword [edi + 0x28]
xor edx, edx
test ecx, ecx
mov dword [esp + 0x44], ecx
cmove eax, edx
mov dword [esp + 0x28], eax
jmp 0x1002a94a
xor ecx, ecx
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x5c]
push 0x2c
push eax
push ecx
push 0
push dword [edi + 0x14]
push esi
call sub.msjet40.dll_Ordinal_912
mov dword [esp + 0x10], eax
cmp eax, 0xfffff88d
je 0x1002a987
cmp eax, 0xfffffae7
je 0x1002a987
test eax, eax
je 0x1002a981
mov ebx, 0x80004005
jmp 0x1002b166
mov eax, dword [esp + 0x60]
jmp 0x1002a98e
or eax, 0xffffffff
mov dword [esp + 0x60], eax
xor edi, edi
cmp dword [esp + 0x28], 1
jne 0x1002ac8f
mov ebp, dword [esp + 0x2c]
nop
cmp edi, dword [esp + 0x64]
jae 0x1002ac8f
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
push 0x81
lea ecx, [esp + 0x104]
push ecx
push dword [esp + 0x8c]
push eax
push esi
call sub.msjet40.dll_Ordinal_167
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1002acab
mov eax, dword [esp + 0x20]
and eax, 0xfffffffe
cmp eax, 0x82
jae 0x1002b23d
xor ecx, ecx
push ecx
push ecx
mov word [esp + eax + 0xfc], cx
lea eax, [esp + 0x38]
push eax
push 0x81
lea eax, [esp + 0x20c]
push eax
push dword [esp + 0x7c]
push dword [esp + 0x78]
push esi
call sub.msjet40.dll_Ordinal_167
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1002acab
mov eax, dword [esp + 0x30]
and eax, 0xfffffffe
cmp eax, 0x82
jae 0x1002b23d
xor ecx, ecx
push ecx
push ecx
mov word [esp + eax + 0x204], cx
lea eax, [esp + 0x2c]
push eax
push 0x81
lea eax, [esp + 0x188]
push eax
push dword [esp + 0x90]
push dword [esp + 0x78]
push esi
call sub.msjet40.dll_Ordinal_167
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1002acab
mov eax, dword [esp + 0x24]
and eax, 0xfffffffe
cmp eax, 0x82
jae 0x1002b23d
xor ecx, ecx
push ecx
push ecx
mov word [esp + eax + 0x180], cx
lea eax, [esp + 0x3c]
push eax
push 4
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x88]
push dword [esp + 0x78]
push esi
call sub.msjet40.dll_Ordinal_167
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1002acab
inc dword [esp + 0x1c]
push eax
push dword [esp + 0x1c]
push esi
call sub.msjet40.dll_Ordinal_159
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1002acab
push eax
push eax
push dword [esp + 0x38]
lea eax, [esp + 0x208]
push eax
push dword [ebp + 8]
push dword [esp + 0x2c]
push esi
call sub.msjet40.dll_Ordinal_172
push 0
push 0
push dword [esp + 0x28]
lea eax, [esp + 0x100]
push eax
push dword [ebp + 0x14]
push dword [esp + 0x2c]
push esi
call sub.msjet40.dll_Ordinal_172
push 0
push 0
push dword [esp + 0x2c]
lea eax, [esp + 0x184]
push eax
push dword [ebp + 0x18]
push dword [esp + 0x2c]
push esi
call sub.msjet40.dll_Ordinal_172
push 0
push 0
push 4
lea eax, [esp + 0x28]
push eax
push dword [ebp + 0x24]
push dword [esp + 0x2c]
push esi
call sub.msjet40.dll_Ordinal_172
push 0
push 0
push 0
push dword [esp + 0x24]
push esi
call sub.msjet40.dll_Ordinal_179
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1002acab
push eax
push eax
lea eax, [esp + 0x2c]
push eax
push 0x81
lea eax, [esp + 0x188]
push eax
push dword [esp + 0x98]
push dword [esp + 0x78]
push esi
call sub.msjet40.dll_Ordinal_167
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1002acab
mov eax, dword [esp + 0x24]
and eax, 0xfffffffe
cmp eax, 0x82
jae 0x1002b23d
xor ecx, ecx
push ecx
push ecx
mov word [esp + eax + 0x180], cx
lea eax, [esp + 0x3c]
push eax
push 4
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x88]
push dword [esp + 0x78]
push esi
call sub.msjet40.dll_Ordinal_167
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1002acab
inc dword [esp + 0x1c]
push eax
push dword [esp + 0x1c]
push esi
call sub.msjet40.dll_Ordinal_159
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1002acab
push eax
push eax
push dword [esp + 0x38]
lea eax, [esp + 0x208]
push eax
push dword [ebp + 8]
push dword [esp + 0x2c]
push esi
call sub.msjet40.dll_Ordinal_172
push 0
push 0
push dword [esp + 0x28]
lea eax, [esp + 0x100]
push eax
push dword [ebp + 0x14]
push dword [esp + 0x2c]
push esi
call sub.msjet40.dll_Ordinal_172
push 0
push 0
push dword [esp + 0x2c]
lea eax, [esp + 0x184]
push eax
push dword [ebp + 0x18]
push dword [esp + 0x2c]
push esi
call sub.msjet40.dll_Ordinal_172
push 0
push 0
push 4
lea eax, [esp + 0x28]
push eax
push dword [ebp + 0x24]
push dword [esp + 0x2c]
push esi
call sub.msjet40.dll_Ordinal_172
push 0
push 0
push 0
push dword [esp + 0x24]
push esi
call sub.msjet40.dll_Ordinal_179
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1002acab
push eax
push 1
push dword [esp + 0x68]
push esi
call sub.msjet40.dll_Ordinal_156
mov dword [esp + 0x10], eax
inc edi
mov eax, dword [esp + 0x60]
jmp 0x1002a9a0
cmp eax, 0xffffffff
je 0x1002acb9
push eax
push esi
call sub.msjet40.dll_Ordinal_108
mov dword [esp + 0x10], eax
mov dword [esp + 0x60], 0xffffffff
test eax, eax
je 0x1002acb9
mov edi, dword [esp + 0x14]
mov ebx, 0x80004005
jmp 0x1002b166
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x88]
push 1
push 0x30
push eax
push 0
push 0x1005fd90
push 0
push dword [edi + 0x14]
push esi
call sub.msjet40.dll_Ordinal_140
mov dword [esp + 0x10], eax
test eax, eax
je 0x1002aced
mov ebx, 0x80004005
jmp 0x1002b166
push 0
push SysReAllocStringLen
push dword [esp + 0x94]
push esi
call sub.msjet40.dll_Ordinal_156
mov dword [esp + 0x10], eax
cmp eax, 0xfffff9bd
je 0x1002ad1a
test eax, eax
je 0x1002ad1a
mov ebx, 0x80004005
jmp 0x1002b166
xor ebp, ebp
mov dword [esp + 0x38], ebp
cmp dword [esp + 0x90], ebp
jbe 0x1002b06d
lea ecx, [ecx]
cmp dword [esp + 0x28], 0
je 0x1002b06d
xor eax, eax
push eax
push eax
mov word [esp + 0xfc], ax
mov word [esp + 0x288], ax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x28]
push eax
push 4
lea eax, [esp + 0x64]
push eax
push dword [esp + 0xb0]
push dword [esp + 0xa4]
push esi
call sub.msjet40.dll_Ordinal_167
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1002b16a
mov eax, dword [esp + 0x54]
dec eax
je 0x1002ada6
sub eax, 3
je 0x1002ada6
sub eax, 2
je 0x1002ada6
push 0
push 1
push dword [esp + 0x94]
push esi
call sub.msjet40.dll_Ordinal_156
jmp 0x1002b057
push 0
push 0
lea eax, [esp + 0x28]
push eax
push 0x81
lea eax, [esp + 0x104]
push eax
push dword [esp + 0xac]
push dword [esp + 0xa4]
push esi
call sub.msjet40.dll_Ordinal_167
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1002a977
mov eax, dword [esp + 0x20]
and eax, 0xfffffffe
cmp eax, 0x82
jae 0x1002b23d
xor ecx, ecx
mov word [esp + eax + 0xf4], cx
lea eax, [esp + 0x40]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push 1
push 0x3c
lea eax, [esp + 0xcc]
push eax
push dword [esp + 0x5c]
lea eax, [esp + 0x110]
push eax
push dword [edi + 0x14]
push esi
call fcn.10012fe0
cmp dword [esp + 0x40], 1
mov ebx, eax
jne 0x1002ae4c
push 0
push 1
push dword [esp + 0x94]
mov dword [esp + 0x1c], 0
push esi
call sub.msjet40.dll_Ordinal_156
jmp 0x1002b057
test ebx, ebx
js 0x1002b162
xor edi, edi
cmp dword [esp + 0xc0], edi
jbe 0x1002b01f
push 0
push 0
lea eax, [esp + 0x44]
push eax
push 0x81
lea eax, [esp + 0x290]
push eax
push dword [esp + 0xd8]
push dword [esp + 0xd4]
push esi
call sub.msjet40.dll_Ordinal_167
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1002acab
mov eax, dword [esp + 0x3c]
and eax, 0xfffffffe
cmp eax, 0x82
jae 0x1002b23d
xor ecx, ecx
push ecx
push ecx
mov word [esp + eax + 0x288], cx
lea eax, [esp + 0x3c]
push eax
push 4
lea eax, [esp + 0x60]
push eax
push dword [esp + 0xdc]
push dword [esp + 0xd4]
push esi
call sub.msjet40.dll_Ordinal_167
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1002acab
test byte [esp + 0x50], 3
je 0x1002aff8
push eax
push eax
lea eax, [esp + 0x3c]
push eax
push 4
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0xf0]
push dword [esp + 0xd4]
push esi
call sub.msjet40.dll_Ordinal_167
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1002acab
inc dword [esp + 0x1c]
push eax
push eax
lea eax, [esp + 0x60]
push eax
push 0x200
lea eax, [esp + 0x314]
push eax
push dword [esp + 0x104]
push dword [esp + 0xd4]
push esi
call sub.msjet40.dll_Ordinal_167
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1002acab
push eax
push dword [esp + 0x1c]
push esi
call sub.msjet40.dll_Ordinal_159
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1002acab
mov ebp, dword [esp + 0x2c]
push eax
push eax
push dword [esp + 0x44]
lea eax, [esp + 0x28c]
push eax
push dword [ebp + 8]
push dword [esp + 0x2c]
push esi
call sub.msjet40.dll_Ordinal_172
push 0
push 0
push dword [esp + 0x28]
lea eax, [esp + 0x100]
push eax
push dword [ebp + 0x14]
push dword [esp + 0x2c]
push esi
call sub.msjet40.dll_Ordinal_172
push 0
push 0
push dword [esp + 0x60]
lea eax, [esp + 0x310]
push eax
push dword [ebp + 0x18]
push dword [esp + 0x2c]
push esi
call sub.msjet40.dll_Ordinal_172
push 0
push 0
push 4
lea eax, [esp + 0x28]
push eax
push dword [ebp + 0x24]
push dword [esp + 0x2c]
push esi
call sub.msjet40.dll_Ordinal_172
push 0
push 0
push 0
push dword [esp + 0x24]
push esi
call sub.msjet40.dll_Ordinal_179
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1002acab
push 0
push 1
push dword [esp + 0xc4]
push esi
call sub.msjet40.dll_Ordinal_156
inc edi
mov dword [esp + 0x10], eax
cmp edi, dword [esp + 0xc0]
jb 0x1002ae63
mov ebp, dword [esp + 0x38]
push dword [esp + 0xbc]
push esi
call sub.msjet40.dll_Ordinal_108
mov dword [esp + 0x10], eax
mov dword [esp + 0xbc], 0xffffffff
test eax, eax
jne 0x1002acab
push eax
push 1
push dword [esp + 0x94]
push esi
call sub.msjet40.dll_Ordinal_156
mov edi, dword [esp + 0x14]
inc ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], ebp
cmp ebp, dword [esp + 0x90]
jb 0x1002ad30
push dword [esp + 0x8c]
push esi
call sub.msjet40.dll_Ordinal_108
mov dword [esp + 0x10], eax
mov dword [esp + 0x8c], 0xffffffff
test eax, eax
je 0x1002b097
mov ebx, 0x80004005
jmp 0x1002b166
push 0x20
call fcn.1003d386
mov edi, eax
add esp, 4
test edi, edi
je 0x1002b159
mov ebx, dword [esp + 0x14]
mov ecx, edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi], vtable.ColumnDataWithFakeNamesAndDBTYPES.0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov eax, dword [0x10060a2c]
mov dword [edi + 0x10], eax
mov eax, dword [0x10060a28]
push 0
mov dword [edi + 0x14], eax
lea eax, [esp + 0x14]
push 0
push eax
mov dword [edi + 0x1c], 0
push dword [esp + 0x24]
push dword [ebx + 0x14]
push esi
call fcn.10007a40
mov ebx, eax
test ebx, ebx
js 0x1002b15e
push 0x10068ef8
push 0
push 0
push 1
push edi
push 0
push 0
push 1
push dword [esp + 0x6c]
mov dword [edi + 4], 0xa
push dword [esp + 0x3c]
mov edi, dword [esp + 0x3c]
push 0
push 0
push 0
push edi
push 0
push dword [esp + 0x84]
call fcn.1001c790
mov ebx, eax
jmp 0x1002b162
mov ebx, 0x8007000e
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1002b179
push 0x10068de8
push eax
push ebx
push edi
call fcn.10010bd0
jmp 0x1002b190
test ebx, ebx
jns 0x1002b1ae
push 0
push 0x10068de8
push ebx
push dword [edi + 0x14]
push dword [edi + 0x10]
call fcn.100105d0
test ebx, ebx
jns 0x1002b1ae
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x1002b1ae
push eax
push dword [edi + 0x10]
call sub.msjet40.dll_Ordinal_108
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x8c]
cmp eax, 0xffffffff
je 0x1002b1ce
push eax
push dword [edi + 0x10]
call sub.msjet40.dll_Ordinal_108
mov dword [esp + 0x8c], 0xffffffff
mov eax, dword [esp + 0xbc]
cmp eax, 0xffffffff
je 0x1002b1ee
push eax
push dword [edi + 0x10]
call sub.msjet40.dll_Ordinal_108
mov dword [esp + 0xbc], 0xffffffff
mov eax, dword [esp + 0x60]
cmp eax, 0xffffffff
je 0x1002b208
push eax
push dword [edi + 0x10]
call sub.msjet40.dll_Ordinal_108
mov dword [esp + 0x60], 0xffffffff
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x1002b220
mov eax, dword [0x1007a1e0]
test eax, eax
je 0x1002b220
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov ecx, dword [esp + 0x504]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003dba2
add esp, 0x4f8
ret 0x14
call fcn.1003e83e
int3