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

Disassembly:
sub esp, 0x164
mov eax, dword [0x10077990]
xor eax, esp
mov dword [esp + 0x160], eax
mov eax, dword [esp + 0x170]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x17c]
mov dword [esp + 8], eax
push esi
mov edx, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], edi
mov eax, dword [edx + 0x38]
mov ebx, dword [edx + 0x6c]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x34], 0xffffffff
mov esi, dword [edx + 0xb8]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x178], esi
jne 0x10022ec4
mov eax, dword [esp + 0x17c]
cmp dword [edx + 0xc0], eax
je 0x1002320b
test esi, esi
je 0x10022f0b
mov dword [edx + 0xb8], edi
mov eax, dword [ebp + 8]
push 0
push esi
mov dword [eax + 0xbc], edi
mov eax, dword [ebp + 8]
mov dword [eax + 0xc0], edi
mov eax, dword [ebp + 8]
mov dword [eax + 0xc4], edi
mov eax, dword [ebp + 8]
mov dword [eax + 0xc8], edi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edi, eax
test edi, edi
js 0x100231f8
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x178]
mov esi, dword [eax + 0x64]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
lea eax, [eax + ecx*8]
dec eax
cmp edi, eax
ja 0x100231f3
mov eax, dword [esi + 0x10]
mov edx, edi
sub edx, dword [esi + 0x18]
mov ecx, edx
and edx, 7
shr ecx, 3
mov al, byte [ecx + eax]
test byte [edx + 0x1004e760], al
jne 0x100231f3
mov eax, dword [esi]
push eax
imul eax, edi
add eax, dword [esi + 8]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.1003e000
mov eax, dword [esp + 0x24]
add esp, 0xc
xor edi, edi
test eax, eax
je 0x100231f3
cmp dword [eax + 0x24], edi
je 0x100231f8
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x6c]
push 0x81
push eax
push ebx
push esi
call sub.msjet40.dll_Ordinal_134
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
test eax, eax
jns 0x10022fa0
mov edi, 0x80004005
jmp 0x100231f8
push 1
push 0x3c
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x78]
push eax
push ebx
push esi
call sub.msjet40.dll_Ordinal_147
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
test eax, eax
jns 0x10022fc9
mov edi, 0x80004005
jmp 0x100231f8
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x17c]
cmp ebx, ecx
ja 0x100231ec
mov edx, dword [esp + 0x18]
cmp ebx, dword [edx + 0x24]
ja 0x100231ec
cmp ecx, ebx
mov dword [esp + 0x20], edi
mov eax, ebx
cmovb eax, ecx
test eax, eax
je 0x10023147
lea ebp, [edx + 0x34]
nop
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x14], ebx
test byte [ebp + 0x10], 4
je 0x10023019
mov esi, dword [ebp]
add esi, dword [esp + 0x2c]
je 0x10023019
mov ebx, dword [esi]
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0x102
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x7c]
push dword [esp + 0x4c]
push dword [esp + 0x38]
call sub.msjet40.dll_Ordinal_167
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
test eax, eax
js 0x10023175
mov eax, dword [esp + 0x14]
and eax, 0xfffffffe
cmp eax, 0x102
jae 0x10023228
xor ecx, ecx
mov word [esp + eax + 0x6c], cx
mov eax, dword [esp + 0x24]
imul ecx, dword [ebp - 0xc], 0x68
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x94]
mov eax, dword [eax + 0xc]
add eax, 0xffffff98
add ecx, eax
call fcn.10007be0
lea ecx, [esp + 0x6c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x100230ac
test dx, dx
je 0x100230a8
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x100230ac
add ecx, 4
add eax, 4
test dx, dx
jne 0x10023086
xor eax, eax
jmp 0x100230b1
sbb eax, eax
or eax, 1
test eax, eax
je 0x100230bf
mov ebx, 1
mov edi, 0x80040e08
test esi, esi
je 0x100230c5
mov dword [esi], ebx
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push 0
push 0
push eax
push 4
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x78]
push dword [esp + 0x4c]
push esi
call sub.msjet40.dll_Ordinal_167
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
test eax, eax
js 0x10023175
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push 0
push 1
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x30]
and eax, 1
shl eax, cl
or dword [edx + 0xc8], eax
push dword [esp + 0x3c]
push esi
call sub.msjet40.dll_Ordinal_156
mov edx, dword [esp + 0x20]
add ebp, 0x34
mov ebx, dword [esp + 0x17c]
inc edx
mov ecx, dword [esp + 0x38]
mov eax, ebx
cmp ecx, ebx
mov dword [esp + 0x20], edx
cmovb eax, ecx
cmp edx, eax
jb 0x10023000
mov ebp, dword [esp + 0x24]
test ebx, ebx
jne 0x1002318c
test ecx, ecx
je 0x1002318c
push ebx
push ebx
lea eax, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x78]
push dword [esp + 0x4c]
push esi
call sub.msjet40.dll_Ordinal_167
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
test eax, eax
jns 0x1002317c
mov edi, 0x80004005
jmp 0x100231f8
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x28]
and eax, 1
or dword [ecx + 0xc8], eax
test edi, edi
js 0x100231f8
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x178]
push 0
push esi
mov eax, dword [eax + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edi, eax
test edi, edi
js 0x100231f8
mov eax, dword [ebp + 8]
mov ecx, ebx
mov dword [eax + 0xb8], esi
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x24]
cmp eax, ebx
cmovb ecx, eax
mov eax, dword [ebp + 8]
cmp ecx, dword [esp + 0x38]
sbb ecx, ecx
neg ecx
mov dword [eax + 0xbc], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0xc0], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x38]
mov dword [ecx + 0xc4], eax
jmp 0x100231f8
mov edi, 0x80070057
jmp 0x100231f8
mov edi, 0x80040e00
mov eax, dword [esp + 0x34]
cmp eax, 0xffffffff
je 0x1002320b
push eax
push dword [esp + 0x20]
call sub.msjet40.dll_Ordinal_108
mov ecx, dword [esp + 0x170]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003dba2
add esp, 0x164
ret 0x10
call fcn.1003e83e
int3