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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x15c
mov eax, dword [0x10077990]
xor eax, esp
mov dword [esp + 0x158], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x10]
push edi
mov dword [esp + 0x44], edx
xor edi, edi
xor edx, edx
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x74], 0xffffffff
cmp ebx, 2
jbe 0x1002e838
movzx ecx, word [eax + 0x20]
test cx, cx
je 0x1002e838
cmp ecx, 1
mov ecx, 1
cmovne edx, ecx
mov dword [esp + 0x30], edx
cmp ebx, 3
jbe 0x1002e855
movzx ecx, word [eax + 0x30]
test cx, cx
je 0x1002e855
cmp ecx, 1
mov ecx, 1
cmovne edi, ecx
mov dword [esp + 0x3c], edi
cmp ebx, 4
ja 0x1002f03b
test ebx, ebx
je 0x1002e88a
test eax, eax
je 0x1002f03b
movzx ecx, word [eax]
test cx, cx
je 0x1002e88a
cmp ecx, 1
je 0x1002e88a
cmp ecx, 8
jne 0x1002f03b
cmp dword [eax + 8], 0
jne 0x1002f03b
cmp ebx, 1
jbe 0x1002e8b0
movzx ecx, word [eax + 0x10]
test cx, cx
je 0x1002e8b0
cmp ecx, 1
je 0x1002e8b0
cmp ecx, 8
jne 0x1002f03b
cmp dword [eax + 0x18], 0
jne 0x1002f03b
test edx, edx
je 0x1002e8bf
cmp word [eax + 0x20], 8
jne 0x1002f03b
test edi, edi
je 0x1002e8ce
cmp word [eax + 0x30], 8
jne 0x1002f03b
mov eax, dword [0x1007a1e0]
push 0x38
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov dword [esp + 0x34], eax
test eax, eax
je 0x1002f015
push 0
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
push 0x10
call fcn.10031c40
mov edi, eax
test edi, edi
jne 0x1002f01a
mov eax, dword [esp + 0x18]
lea ecx, [edi + 1]
cmp ebx, 3
jb 0x1002e916
cmp cx, word [eax + 0x20]
je 0x1002e921
cmp ebx, 4
jb 0x1002e929
cmp cx, word [eax + 0x30]
jne 0x1002e929
xor edi, edi
mov dword [esp + 0x2c], edi
jmp 0x1002e92e
mov edi, 1
cmp dword [esp + 0x30], 0
mov ebx, dword [esp + 0x18]
je 0x1002e945
xor eax, eax
cmp dword [ebx + 0x28], eax
cmove edi, eax
mov dword [esp + 0x2c], edi
cmp dword [esp + 0x3c], 0
je 0x1002ea3d
mov eax, dword [ebx + 0x38]
xor ecx, ecx
test eax, eax
cmove edi, ecx
mov dword [esp + 0x2c], edi
je 0x1002ea3d
push 0x1005e81c
push eax
call fcn.1004ae64
add esp, 8
test eax, eax
je 0x1002ea3d
push 0x1005e828
push dword [ebx + 0x38]
call fcn.1004ae64
add esp, 8
test eax, eax
je 0x1002ea3d
push 0x1005e844
push dword [ebx + 0x38]
call fcn.1004ae64
add esp, 8
test eax, eax
je 0x1002ea3d
push 0x1005eaa8
push dword [ebx + 0x38]
call fcn.1004ae64
add esp, 8
test eax, eax
je 0x1002ea3d
push 0x1005eab8
push dword [ebx + 0x38]
call fcn.1004ae64
add esp, 8
test eax, eax
je 0x1002ea3d
push 0x1005eac4
push dword [ebx + 0x38]
call fcn.1004ae64
add esp, 8
test eax, eax
je 0x1002ea3d
push 0x1005eae8
push dword [ebx + 0x38]
call fcn.1004ae64
add esp, 8
test eax, eax
je 0x1002ea3d
push 0x1005eb08
push dword [ebx + 0x38]
call fcn.1004ae64
add esp, 8
test eax, eax
je 0x1002ea3d
push 0x1005eb24
push dword [ebx + 0x38]
call fcn.1004ae64
add esp, 8
test eax, eax
je 0x1002ea3d
push str.EXTERNAL_TABLE
push dword [ebx + 0x38]
call fcn.1004ae64
xor ecx, ecx
add esp, 8
test eax, eax
cmovne edi, ecx
mov dword [esp + 0x2c], edi
push 2
push 0x30
lea eax, [esp + 0x78]
push eax
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
push dword [eax + 0x14]
push esi
call sub.msjet40.dll_Ordinal_140
push 0
push SysReAllocStringLen
push dword [esp + 0x7c]
mov dword [esp + 0x18], eax
push esi
call sub.msjet40.dll_Ordinal_156
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1002ef74
lea ebx, [ebx]
test edi, edi
je 0x1002ef74
push 0
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x40], 0
push eax
push 4
lea eax, [esp + 0x28]
mov edi, 1
push eax
push dword [esp + 0x98]
push dword [esp + 0x8c]
push esi
call sub.msjet40.dll_Ordinal_167
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1002ef6a
mov ecx, dword [esp + 0x18]
cmp ecx, edi
je 0x1002eade
cmp ecx, 3
jbe 0x1002ead7
cmp ecx, 6
jbe 0x1002eade
xor edi, edi
jmp 0x1002ebf9
push 0
push 0
lea eax, [esp + 0x28]
push eax
push 4
lea eax, [esp + 0x48]
push eax
push dword [esp + 0xa8]
push dword [esp + 0x8c]
push esi
call sub.msjet40.dll_Ordinal_167
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1002ef6a
mov ecx, dword [esp + 0x18]
cmp ecx, 5
jne 0x1002eb27
movzx eax, word [esp + 0x38]
test eax, eax
je 0x1002eb27
xor edi, edi
jmp 0x1002ebf9
push 0
push 0
lea eax, [esp + 0x28]
push eax
push 0x82
lea eax, [esp + 0xe8]
push eax
push dword [esp + 0x94]
push dword [esp + 0x8c]
push esi
call sub.msjet40.dll_Ordinal_167
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1002ef6a
mov eax, dword [esp + 0x20]
and eax, 0xfffffffe
cmp eax, 0x82
jae 0x1002f0aa
xor ecx, ecx
push ecx
push ecx
mov word [esp + eax + 0xe0], cx
lea eax, [esp + 0x28]
push eax
push 8
lea eax, [esp + 0x78]
push eax
push dword [esp + 0x9c]
push dword [esp + 0x8c]
push esi
call sub.msjet40.dll_Ordinal_167
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1002ef6a
push eax
push eax
lea eax, [esp + 0x28]
push eax
push 8
lea eax, [esp + 0x70]
push eax
push dword [esp + 0xa0]
push dword [esp + 0x8c]
push esi
call sub.msjet40.dll_Ordinal_167
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1002ef6a
cmp dword [esp + 0x30], eax
je 0x1002ebf5
lea eax, [esp + 0xd8]
push eax
push dword [ebx + 0x28]
call fcn.1004ae64
xor ecx, ecx
add esp, 8
test eax, eax
cmovne edi, ecx
mov ecx, dword [esp + 0x18]
test edi, edi
je 0x1002ef4b
xor edi, edi
mov dword [esp + 0x28], edi
cmp ecx, 5
jne 0x1002ec58
lea eax, [esp + 0x5c]
push eax
push 0x38
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0xe4]
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 0x14]
push esi
call sub.msjet40.dll_Ordinal_310
push dword [esp + 0xa4]
mov dword [esp + 0x10], eax
push esi
call sub.msjet40.dll_Ordinal_108
cmp dword [esp + 0xc], edi
jne 0x1002ef4b
cmp dword [esp + 0xa8], edi
jne 0x1002ef4b
push 0
push dword [esp + 0x18]
push esi
call sub.msjet40.dll_Ordinal_159
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1002ef6a
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 5
ja case.0x1002ec7a.2
jmp dword [eax*4 + 0x1002f0b0]
mov eax, dword [esp + 0x38]
test eax, eax
jns 0x1002ec91
mov edi, dword [0x10077190]
jmp 0x1002ecb8
mov edi, dword [0x1007718c]
test al, 2
cmovne edi, dword [0x100771a0]
jmp 0x1002ecb8
mov edi, dword [0x1007719c]
jmp 0x1002ecb8
mov edi, dword [0x10077194]
jmp 0x1002ecb8
mov edi, dword [0x10077198]
mov dword [esp + 0x28], edi
lea ecx, [esp + 0xd8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002ecc6
sub ecx, edx
mov edx, dword [esp + 0x34]
push 0
sar ecx, 1
push 0
lea eax, [ecx + ecx]
push eax
lea eax, [esp + 0xe4]
push eax
push dword [edx + 8]
push dword [esp + 0x28]
push esi
call sub.msjet40.dll_Ordinal_172
mov ecx, edi
mov dword [esp + 0xc], eax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002ed00
sub ecx, edx
push 0
sar ecx, 1
push 0
lea eax, [ecx + ecx]
push eax
push edi
mov edi, dword [esp + 0x44]
push dword [edi + 0xc]
push dword [esp + 0x28]
push esi
call sub.msjet40.dll_Ordinal_172
push 0
push 0
push 1
mov dword [esp + 0x18], eax
lea eax, [esp + 0x33]
push eax
push dword [edi + 0x14]
mov byte [esp + 0x3b], 1
push dword [esp + 0x28]
push esi
call sub.msjet40.dll_Ordinal_172
push 0
push 0
push 4
mov dword [esp + 0x18], eax
lea eax, [esp + 0x28]
push eax
push dword [edi + 0x18]
mov dword [esp + 0x30], 1
push dword [esp + 0x28]
push esi
call sub.msjet40.dll_Ordinal_172
mov dword [esp + 0xc], eax
test eax, eax
js 0x1002ef6a
push 0
push 0
push 2
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 3
push eax
push dword [edi + 0x1c]
push dword [esp + 0x28]
push esi
call sub.msjet40.dll_Ordinal_172
mov dword [esp + 0xc], eax
test eax, eax
js 0x1002ef6a
push 0
push 0
push 4
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 4
push eax
push dword [edi + 0x20]
push dword [esp + 0x28]
push esi
call sub.msjet40.dll_Ordinal_172
mov dword [esp + 0xc], eax
test eax, eax
js 0x1002ef6a
push 0
push 0
push 4
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 1
push eax
push dword [edi + 0x24]
push dword [esp + 0x28]
push esi
call sub.msjet40.dll_Ordinal_172
mov dword [esp + 0xc], eax
test eax, eax
js 0x1002ef6a
push 0
push 0
lea eax, [esp + 0x28]
push eax
push 4
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0xac]
push dword [esp + 0x8c]
push esi
call sub.msjet40.dll_Ordinal_167
mov dword [esp + 0xc], eax
test eax, eax
js 0x1002ef6a
mov eax, dword [esp + 0x1c]
push 0
push 0
push 8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10062450]
lea eax, [esp + 0x5c]
push eax
push dword [edi + 0x2c]
push dword [esp + 0x28]
movsd qword [esp + 0x68], xmm0
push esi
call sub.msjet40.dll_Ordinal_172
mov dword [esp + 0xc], eax
test eax, eax
js 0x1002ef6a
push 0
push 0
lea eax, [esp + 0x28]
push eax
push 8
lea eax, [esp + 0x58]
push eax
push dword [esp + 0xa0]
push dword [esp + 0x8c]
push esi
call sub.msjet40.dll_Ordinal_167
mov dword [esp + 0xc], eax
test eax, eax
js 0x1002ef6a
push 0
push 0
push 4
lea eax, [esp + 0x54]
push eax
push dword [edi + 0x28]
push dword [esp + 0x28]
push esi
call sub.msjet40.dll_Ordinal_172
mov dword [esp + 0xc], eax
test eax, eax
js 0x1002ef6a
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0xc]
push eax
push dword [edi + 0x14]
lea eax, [esp + 0xe0]
push dword [esp + 0x1c]
push 0x1005f1e8
push 0
push eax
mov eax, dword [esp + 0x28]
push 0x1005f218
push dword [eax + 0x14]
push esi
call fcn.10031b60
mov edi, eax
test edi, edi
js 0x1002f01a
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1002ef2d
cmp eax, 1
jne 0x1002ef1f
push dword [ebx + 0x38]
push dword [esp + 0x2c]
call fcn.1004ae64
add esp, 8
test eax, eax
je 0x1002ef2d
push 3
push dword [esp + 0x18]
push esi
call sub.msjet40.dll_Ordinal_159
jmp 0x1002ef3d
push 0
push 0
push 0
push dword [esp + 0x20]
push esi
call sub.msjet40.dll_Ordinal_179
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1002ef6a
cmp dword [esp + 0x30], eax
jne 0x1002ef74
push 0
push 1
push dword [esp + 0x7c]
push esi
call sub.msjet40.dll_Ordinal_156
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1002ef74
mov edi, dword [esp + 0x2c]
jmp 0x1002ea80
mov edi, 0x80004005
jmp 0x1002f01e
push 0x20
mov dword [esp + 0x10], 0
call fcn.1003d386
add esp, 4
test eax, eax
je 0x1002f015
mov ecx, eax
call fcn.10002de0
mov ebx, eax
test ebx, ebx
je 0x1002f015
mov ecx, dword [0x10060aac]
lea eax, [esp + 0xc]
push 0
push 0
mov dword [ebx + 0x10], ecx
mov ecx, dword [0x10060aa8]
push eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x14], ecx
mov ecx, ebx
mov dword [ebx + 0x1c], 0
push dword [esp + 0x20]
push dword [eax + 0x14]
push esi
call 0x10088eff
mov edi, eax
test edi, edi
js 0x1002f01a
push 0x10068ef8
push 0
push 0
push 1
push ebx
push 0
push 0
push 1
push dword [esp + 0x64]
mov dword [ebx + 4], 0xe
push dword [esp + 0x38]
mov ebx, dword [esp + 0x38]
push 0
push 0
push 0
push ebx
push 0
push dword [esp + 0x7c]
call fcn.1001c790
mov edi, eax
mov eax, dword [esp + 0xc]
jmp 0x1002f022
mov edi, 0x8007000e
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
test eax, eax
je 0x1002f035
push 0x10068de8
push eax
push edi
push ebx
call fcn.10010bd0
jmp 0x1002f057
test edi, edi
jns 0x1002f057
jmp 0x1002f040
mov edi, 0x80070057
mov eax, dword [esp + 0x10]
push 0
push 0x10068de8
push edi
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.100105d0
mov edx, dword [esp + 0x34]
test edx, edx
je 0x1002f06f
mov eax, dword [0x1007a1e0]
test eax, eax
je 0x1002f06f
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 0x74]
cmp eax, 0xffffffff
je 0x1002f083
push eax
push esi
call sub.msjet40.dll_Ordinal_108
mov dword [esp + 0xc], eax
test edi, edi
jns 0x1002f091
push dword [esp + 0x14]
push esi
call sub.msjet40.dll_Ordinal_108
mov ecx, dword [esp + 0x164]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003dba2
mov esp, ebp
pop ebp
ret 0x14
call fcn.1003e83e
nop
sub esp, 0xecbc1002
add dl, byte [eax]
mov esp, 0xa21002ec
in al, dx
add dl, byte [eax]
stosb byte es:[edi], al
in al, dx
add dl, byte [eax]
mov dl, 0xec
add dl, byte [eax]
int3