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

Disassembly:
sub esp, 0x48
push ebx
mov ebx, dword [esp + 0x50]
push esi
push edi
mov edi, dword [esp + 0x5c]
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], 0
mov eax, dword [eax + 0x10]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x74]
mov dword [eax], 0
mov esi, dword [ebx + 0x64]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
lea eax, [eax + ecx*8]
dec eax
cmp edi, eax
ja 0x1001e067
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 0x1001e067
mov eax, dword [esi]
push eax
imul eax, edi
add eax, dword [esi + 8]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.1003e000
mov edx, dword [esp + 0x34]
add esp, 0xc
test edx, edx
je 0x1001e067
cmp dword [esp + 0x64], 0
je 0x1001e059
mov eax, dword [edx + 0x24]
test eax, eax
je 0x1001e059
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x1001e059
cmp ecx, eax
ja 0x1001e059
cmp dword [edx + 8], 0
je 0x1001e04b
mov eax, dword [ebx + 0x6c]
push ebp
xor ebp, ebp
mov dword [esp + 0x50], eax
mov dword [esp + 0x28], ebp
test ecx, ecx
je 0x1001e011
mov dword [esp + 0x44], 1
mov dword [esp + 0x40], 0xd
mov dword [esp + 0x4c], 0x83
jmp 0x1001dbb0
xor eax, eax
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x18], edx
xor esi, esi
mov dword [esp + 0x30], edx
xor ebx, ebx
mov dword [esp + 0x3c], edx
xor edi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x14], eax
test ebp, ebp
jne 0x1001dbea
mov dword [esp + 0x14], 1
jmp 0x1001dc04
cmp dword [esp + 0x70], 1
jne 0x1001dc04
lea eax, [ebp + 1]
cmp eax, dword [esp + 0x64]
mov eax, 1
cmove ecx, eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x68]
imul eax, ebp, 0x34
mov ebp, dword [esp + 0x2c]
add ebp, 0x28
add ebp, eax
mov dword [esp + 0x48], ebp
mov eax, dword [ebp + 0x1c]
test al, 1
je 0x1001dc24
mov edi, dword [ebp + 4]
add edi, ecx
test al, 2
je 0x1001dc2d
mov esi, dword [ebp + 8]
add esi, ecx
test al, 4
je 0x1001dc3e
mov ebx, dword [ebp + 0xc]
add ebx, ecx
je 0x1001dc3e
mov edx, dword [ebx]
mov dword [esp + 0x18], edx
mov ecx, dword [ebp]
test ecx, ecx
je 0x1001e01d
mov eax, dword [esp + 0x5c]
imul ecx, ecx, 0x68
mov eax, dword [eax + 0x94]
mov eax, dword [eax + 0xc]
add ecx, eax
lea eax, [ecx - 0x68]
mov dword [esp + 0x34], eax
test eax, eax
je 0x1001e01d
cmp dword [esp + 0x24], 0
jne 0x1001dfe1
movzx eax, word [eax + 0x28]
mov dword [esp + 0x20], eax
test edi, edi
jne 0x1001dc9f
test esi, esi
jne 0x1001dc9f
test ebx, ebx
je 0x1001dcc1
cmp dword [ebx], 3
je 0x1001dc9f
mov eax, 1
lea edx, [edi + 8]
mov dword [esp + 0x38], eax
jmp 0x1001dff3
test ebx, ebx
je 0x1001dcc1
mov eax, dword [ebx]
test eax, eax
je 0x1001dcc1
cmp eax, 3
je 0x1001dcc1
mov eax, 1
mov edx, 0xc
mov dword [esp + 0x38], eax
jmp 0x1001dff3
movzx eax, word [ebp + 0x30]
cmp word [esp + 0x40], ax
jne 0x1001dcd6
mov dword [esp + 0x3c], 1
jmp 0x1001dcec
mov ebp, dword [esp + 0x30]
cmp ax, word [esp + 0x20]
cmovne ebp, dword [esp + 0x44]
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x48]
test ebx, ebx
je 0x1001dd27
cmp dword [ebx], 3
jne 0x1001dd27
mov eax, dword [esp + 0x28]
mov esi, 1
inc eax
mov dword [esp + 0x10], esi
cmp eax, dword [esp + 0x64]
jne 0x1001dd0f
mov eax, dword [esp + 0x78]
mov dword [eax], esi
mov eax, dword [esp + 0x34]
cmp dword [eax + 0x24], esi
je 0x1001e01d
xor ecx, ecx
mov dword [esp + 0x60], ecx
jmp 0x1001de43
and eax, 0xffff8fff
cmp eax, 0x80
jne 0x1001dd4e
test esi, esi
je 0x1001dd42
mov ecx, dword [esi]
mov dword [esp + 0x60], ecx
jmp 0x1001de3f
mov ecx, dword [ebp + 0x28]
mov dword [esp + 0x60], ecx
jmp 0x1001de3f
cmp eax, 0x81
je 0x1001dd94
cmp eax, 0x82
je 0x1001dd94
cmp eax, 8
jne 0x1001dd6f
mov ecx, 4
mov dword [esp + 0x60], ecx
jmp 0x1001de3f
mov esi, dword [esp + 0x10]
cmp eax, 0x83
jne 0x1001dd88
mov ecx, 0x13
mov dword [esp + 0x60], ecx
jmp 0x1001de43
mov ecx, dword [ecx - 0x3c]
mov dword [esp + 0x60], ecx
jmp 0x1001de43
test esi, esi
je 0x1001dd9f
mov ecx, dword [esi]
jmp 0x1001de32
xor ecx, ecx
mov dword [esp + 0x60], ecx
test edi, edi
je 0x1001de3a
movzx eax, word [ebp + 0x30]
cmp eax, 0x4081
jg 0x1001de0b
je 0x1001ddf3
sub eax, 0x81
je 0x1001dde3
dec eax
jne 0x1001de3a
mov ecx, edi
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001ddd0
sub ecx, esi
sar ecx, 1
add ecx, ecx
jmp 0x1001de32
mov ecx, edi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001dde8
sub ecx, esi
jmp 0x1001de32
mov eax, dword [edi]
test eax, eax
je 0x1001de3a
mov ecx, eax
lea esi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001de00
sub ecx, esi
jmp 0x1001de32
cmp eax, 0x4082
jne 0x1001de3a
mov eax, dword [edi]
test eax, eax
je 0x1001de3a
lea esi, [eax + 2]
jmp 0x1001de20
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001de20
sub eax, esi
sar eax, 1
lea ecx, [eax + eax]
mov dword [esp + 0x60], ecx
test ecx, ecx
jne 0x1001de3f
or dword [esp + 0x14], 0x10
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
cmp word [esp + 0x4c], ax
jne 0x1001de59
mov eax, 0xe
mov dword [esp + 0x20], eax
jmp 0x1001de64
cmp dword [esp + 0x30], 1
jne 0x1001df56
test esi, esi
jne 0x1001df56
mov ecx, dword [0x1007a190]
lea esi, [esp + 0x1c]
push edi
push esi
lea esi, [esp + 0x68]
mov edx, dword [ecx]
push esi
push eax
movzx eax, word [ebp + 0x30]
push eax
push ecx
call dword [edx + 0x14]
mov ecx, dword [esp + 0x18]
test eax, eax
push dword [esp + 0x1c]
mov esi, 2
push dword [esp + 0x60]
cmovs ecx, esi
mov dword [esp + 0x20], ecx
call fcn.1001f2a0
mov ecx, dword [esp + 0x18]
test eax, eax
mov eax, dword [0x1007a190]
cmovs ecx, esi
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
mov esi, dword [eax]
push 0
call fcn.10008c70
mov ecx, dword [esp + 0x38]
movzx eax, al
push eax
call fcn.10008c40
movzx eax, al
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x28]
mov eax, dword [esp + 0x70]
push dword [esp + 0x30]
push dword [eax + 0x8c]
lea eax, [esp + 0x38]
push edi
mov edi, dword [esp + 0x40]
push eax
push dword [esp + 0x84]
movzx eax, word [ebp + 0x30]
push edi
push eax
push dword [0x1007a190]
call dword [esi + 0xc]
mov edx, dword [esp + 0x18]
test eax, eax
jns 0x1001df21
mov dword [esp + 0x24], 1
jmp 0x1001df3b
mov eax, 0x82
cmp di, ax
jne 0x1001df3b
cmp dword [esp + 0x60], 0
jne 0x1001df3b
test edx, edx
jne 0x1001df3b
or dword [esp + 0x14], 0x10
cmp dword [esp + 0x24], 0
mov eax, dword [esp + 0x5c]
mov edi, dword [eax + 0x8c]
jne 0x1001dfe1
mov ecx, dword [esp + 0x1c]
jmp 0x1001df5a
mov dword [esp + 0x1c], ecx
mov eax, 0xb
cmp ax, word [esp + 0x20]
jne 0x1001df81
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x1001df81
cmp edx, 2
je 0x1001df81
test edi, edi
mov eax, 1
cmovne ecx, eax
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x3c], 1
jne 0x1001df98
mov eax, 1
mov edx, 2
mov dword [esp + 0x38], eax
jmp 0x1001dff3
cmp edx, 2
je 0x1001dfe1
cmp dword [esp + 0x6c], 1
jne 0x1001dfbf
mov eax, dword [esp + 0x28]
inc eax
cmp eax, dword [esp + 0x64]
mov eax, dword [esp + 0x14]
jne 0x1001dfc3
test byte [esp + 0x74], 8
je 0x1001dfc3
or eax, 4
jmp 0x1001dfc3
mov eax, dword [esp + 0x14]
push eax
push ecx
push edi
push dword [esp + 0x5c]
push dword [esp + 0x64]
call sub.msjet40.dll_Ordinal_155
mov ecx, dword [esp + 0x7c]
mov dword [ecx], eax
test eax, eax
jne 0x1001e02d
mov edx, dword [esp + 0x18]
test edx, edx
je 0x1001dfef
cmp edx, 2
jbe 0x1001e022
cmp edx, 4
ja 0x1001e022
mov eax, dword [esp + 0x38]
test ebx, ebx
je 0x1001dff9
mov dword [ebx], edx
cmp eax, 1
je 0x1001e03c
mov ebp, dword [esp + 0x28]
inc ebp
mov dword [esp + 0x28], ebp
cmp ebp, dword [esp + 0x64]
jb 0x1001dbb0
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x48
ret 0x24
mov edx, 0xa
mov eax, 1
mov dword [esp + 0x38], eax
jmp 0x1001dff3
pop ebp
pop edi
pop esi
mov eax, 0x80004005
pop ebx
add esp, 0x48
ret 0x24
pop ebp
pop edi
pop esi
mov eax, 0x80040e21
pop ebx
add esp, 0x48
ret 0x24
pop edi
pop esi
mov eax, 0x80040e4b
pop ebx
add esp, 0x48
ret 0x24
pop edi
pop esi
mov eax, 0x80070057
pop ebx
add esp, 0x48
ret 0x24
pop edi
pop esi
mov eax, 0x80040e00
pop ebx
add esp, 0x48
ret 0x24