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

Disassembly:
sub esp, 0x13c
mov eax, dword [0x10077990]
xor eax, esp
mov dword [esp + 0x138], eax
mov eax, dword [esp + 0x140]
push ebx
mov ebx, dword [esp + 0x150]
push ebp
mov ebp, dword [esp + 0x14c]
push esi
push edi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x160]
mov esi, dword [ebp + 0x10]
push 0x20000
mov dword [esp + 0x48], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x64], 0xffffffff
call fcn.1003db99
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x10030574
mov ecx, dword [esp + 0x158]
mov dword [esp + 0x90], 0xffffffff
test ecx, ecx
je 0x100300b3
test ebx, ebx
je 0x100300a9
cmp ecx, 3
ja 0x100300a9
test ecx, ecx
je 0x10030073
movzx eax, word [ebx]
test ax, ax
je 0x10030073
cmp eax, 1
je 0x10030073
cmp eax, 8
jne 0x100300a9
cmp dword [ebx + 8], 0
jne 0x100300a9
cmp ecx, 1
jbe 0x10030091
movzx eax, word [ebx + 0x10]
test ax, ax
je 0x10030091
cmp eax, 1
je 0x10030091
cmp eax, 8
jne 0x100300a9
cmp dword [ebx + 0x18], 0
jne 0x100300a9
cmp ecx, 2
jbe 0x100300b3
movzx eax, word [ebx + 0x20]
test ax, ax
je 0x100300b3
cmp eax, 1
je 0x100300b3
cmp eax, 8
je 0x100300b3
mov edi, 0x80070057
jmp 0x10030579
mov eax, dword [0x1007a1e0]
push 0x24
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x10030574
push 0
push eax
lea eax, [esp + 0x1c]
push eax
push ebp
push 4
call fcn.10031c40
mov edi, eax
test edi, edi
js 0x10030579
cmp dword [esp + 0x158], 3
jb 0x10030104
mov edx, 1
xor ecx, ecx
cmp dx, word [ebx + 0x20]
mov eax, edx
cmove eax, ecx
mov dword [esp + 0x1c], eax
push 1
push 0x30
lea eax, [esp + 0x64]
push eax
push 0
push 0x10060b60
push 5
push dword [ebp + 0x14]
push esi
call sub.msjet40.dll_Ordinal_140
mov dword [esp + 0x10], eax
test eax, eax
je 0x10030131
mov edi, 0x80004005
jmp 0x1003057d
push 0
push SysReAllocStringLen
push dword [esp + 0x68]
push esi
call sub.msjet40.dll_Ordinal_156
mov dword [esp + 0x10], eax
cmp eax, 0xfffff9bd
je 0x10030155
test eax, eax
jne 0x10030581
mov edi, dword [esp + 0x158]
cmp edi, 2
jbe 0x1003017e
mov eax, 8
cmp ax, word [ebx + 0x20]
mov eax, dword [esp + 0x1c]
jne 0x10030182
xor ecx, ecx
cmp dword [ebx + 0x28], ecx
cmove eax, ecx
mov dword [esp + 0x1c], eax
jmp 0x10030182
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x64], 0
mov dword [esp + 0x30], 0
jbe 0x100304c6
test eax, eax
je 0x100304c6
push 0
push 0
lea eax, [esp + 0x2c]
push eax
push 4
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x94]
push dword [esp + 0x78]
push esi
call sub.msjet40.dll_Ordinal_167
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10030127
movzx eax, word [esp + 0x3c]
test eax, eax
jne 0x1003049c
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov byte [esp + 0x1b], 1
mov word [eax], cx
xor eax, eax
push eax
push eax
mov word [esp + 0xcc], ax
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x2c]
push eax
push 0x81
lea eax, [esp + 0xd4]
push eax
push dword [esp + 0x80]
push dword [esp + 0x78]
push esi
call sub.msjet40.dll_Ordinal_167
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10030127
mov eax, dword [esp + 0x24]
and eax, 0xfffffffe
cmp eax, 0x82
jae 0x100305fd
xor ecx, ecx
mov word [esp + eax + 0xc4], cx
test edi, edi
je 0x10030278
cmp edi, 3
jb 0x1003049c
xor eax, eax
cmp ax, word [ebx + 0x20]
je 0x10030278
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x10030278
push eax
lea eax, [esp + 0xc8]
push eax
call fcn.1004ae64
add esp, 8
test eax, eax
jne 0x1003049c
lea eax, [esp + 0x48]
push eax
push 0x38
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0xd0]
push eax
push dword [ebp + 0x14]
push esi
call sub.msjet40.dll_Ordinal_310
mov dword [esp + 0x10], eax
test eax, eax
jns 0x100302b7
or eax, 0xffffffff
mov dword [esp + 0x94], 1
mov dword [esp + 0x90], eax
jmp 0x100302be
mov eax, dword [esp + 0x90]
push eax
push esi
call sub.msjet40.dll_Ordinal_108
cmp dword [esp + 0x94], 0
jne 0x1003049c
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0xc8]
push eax
push dword [ebp + 0x14]
push esi
call sub.msjet40.dll_Ordinal_315
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10030127
push eax
push eax
push eax
push eax
lea eax, [esp + 0x38]
push eax
push 0x10000
push dword [esp + 0x38]
push dword [esp + 0x50]
push esi
call sub.msjet40.dll_Ordinal_317
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10030127
mov eax, dword [esp + 0x28]
push dword [esp + 0x34]
add eax, eax
push esi
mov dword [esp + 0x30], eax
call sub.msjet40.dll_Ordinal_108
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10030127
push eax
push eax
lea eax, [esp + 0x48]
push eax
push 8
lea eax, [esp + 0x5c]
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 0x10030127
push eax
push eax
lea eax, [esp + 0x48]
push eax
push 8
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x8c]
push dword [esp + 0x78]
push esi
call sub.msjet40.dll_Ordinal_167
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10030127
push eax
push dword [esp + 0x18]
push esi
call sub.msjet40.dll_Ordinal_159
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10030127
mov edi, dword [esp + 0x2c]
push eax
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0xd0]
push eax
push dword [edi + 8]
push dword [esp + 0x28]
push esi
call sub.msjet40.dll_Ordinal_172
push 0
push 0
push dword [esp + 0x30]
push dword [esp + 0x2c]
push dword [edi + 0xc]
push dword [esp + 0x28]
push esi
call sub.msjet40.dll_Ordinal_172
push 0
push 0
push 1
lea eax, [esp + 0x27]
push eax
push dword [edi + 0x14]
push dword [esp + 0x28]
push esi
call sub.msjet40.dll_Ordinal_172
push 0
push 0
push 8
lea eax, [esp + 0x58]
push eax
push dword [edi + 0x1c]
push dword [esp + 0x28]
push esi
call sub.msjet40.dll_Ordinal_172
mov dword [esp + 0x10], eax
test eax, eax
js 0x10030127
push 0
push 0
push 8
lea eax, [esp + 0x60]
push eax
push dword [edi + 0x20]
push dword [esp + 0x28]
push esi
call sub.msjet40.dll_Ordinal_172
mov dword [esp + 0x10], eax
test eax, eax
js 0x10030127
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x10]
push eax
push dword [edi + 0x18]
lea eax, [esp + 0xcc]
push dword [esp + 0x1c]
push 0x10060ba0
push 0
push eax
push 0x10060bb8
push dword [ebp + 0x14]
push esi
call fcn.10031b60
mov edi, eax
test edi, edi
js 0x10030579
push 0
push 0
push 0
push dword [esp + 0x20]
push esi
call sub.msjet40.dll_Ordinal_179
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10030127
mov edi, dword [esp + 0x158]
push 0
push 1
push dword [esp + 0x68]
push esi
call sub.msjet40.dll_Ordinal_156
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x64]
jae 0x100304c6
mov eax, dword [esp + 0x1c]
jmp 0x10030195
push 0x20
call fcn.1003d386
add esp, 4
test eax, eax
je 0x10030574
mov ecx, eax
call fcn.10002de0
mov ebx, eax
test ebx, ebx
je 0x10030574
mov ecx, dword [0x100609ec]
lea eax, [esp + 0x10]
push 0
push 0
mov dword [ebx + 0x10], ecx
mov ecx, dword [0x100609e8]
push eax
mov dword [ebx + 0x14], ecx
mov ecx, ebx
mov dword [ebx + 0x1c], 0
push dword [esp + 0x20]
push dword [ebp + 0x14]
push esi
call fcn.10007a40
mov edi, eax
test edi, edi
js 0x10030579
push 0x10068ef8
push 0
push 0
push 1
push ebx
push 0
push 0
push 1
push dword [esp + 0x64]
mov dword [ebx + 4], 9
push dword [esp + 0x38]
push 0
push 0
push 0
push ebp
push 0
push dword [esp + 0x74]
call fcn.1001c790
mov edi, eax
mov eax, dword [esp + 0x60]
cmp eax, 0xffffffff
je 0x10030579
push eax
push esi
call sub.msjet40.dll_Ordinal_108
mov dword [esp + 0x10], eax
test eax, eax
je 0x10030590
mov edi, 0x80004005
jmp 0x1003057d
mov edi, 0x8007000e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10030590
push 0x10068de8
push eax
push edi
push ebp
call fcn.10010bd0
jmp 0x100305a7
test edi, edi
jns 0x100305a7
push 0
push 0x10068de8
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.100105d0
mov eax, dword [esp + 0x60]
cmp eax, 0xffffffff
je 0x100305b7
push eax
push esi
call sub.msjet40.dll_Ordinal_108
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100305c8
push eax
call fcn.1003db94
add esp, 4
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x100305e0
mov eax, dword [0x1007a1e0]
test eax, eax
je 0x100305e0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov ecx, dword [esp + 0x148]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003dba2
add esp, 0x13c
ret 0x14
call fcn.1003e83e
int3