Function at 0x10002d70
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
test byte [0x10005018], 8
jne 0x10002fa0
cmp word [0x1000901c], 0
je 0x10002f78
mov esi, dword [section..bss]
test esi, esi
je 0x10002f38
mov ebx, dword [0x10009008]
test ebx, ebx
je 0x10002f4b
mov eax, dword [ebp + 0xc]
xor edi, edi
cmp byte [eax + 0x7a], 0
je 0x10002e17
test ebx, ebx
jle 0x10002e17
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
mov eax, dword [0x10009004]
lea esi, [ecx + 0x7a]
mov ebx, esi
mov esi, eax
jmp 0x10002dee
lea edx, [edi + 1]
movzx edi, dx
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
jle 0x10002e09
mov dword [esp + 4], ebx
lea eax, [edi + edi*4]
shl eax, 5
lea eax, [esi + eax + 0x7e]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strcmp]
test eax, eax
jne 0x10002de0
mov ebx, dword [ebp - 0x14]
mov eax, 0
cmp ebx, dword [ebp - 0x10]
cmove edi, eax
mov eax, 0xb8
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov ebx, dword fs:[0x18]
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
mov esi, eax
je 0x1000313d
mov eax, dword [0x10009004]
lea edi, [edi + edi*4]
shl edi, 5
mov eax, dword [eax + edi]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x10003080
mov dword [esi + 0xa0], eax
mov edx, str.DS_Entry
mov edi, 3
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov edx, dword [0x10009018]
lea ecx, [edx + 1]
mov dword [0x10009018], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xa4], eax
sub esp, 8
mov dword [ecx], edx
mov edx, 1
mov dword [esp + 4], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x10], ecx
mov ecx, 0x401
mov dword [esp + 8], edi
mov dword [esp + 0xc], ecx
mov dword [esp], edx
call eax
movzx edi, ax
sub esp, 0x14
test edi, edi
jne 0x10003010
mov eax, dword [0x100090c0]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
add eax, 0x7a
mov dword [esp + 4], eax
lea eax, [esi + 0x7e]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strcpy]
lea eax, [esi + 0xa8]
xor edx, edx
mov dword [esi + 0xac], eax
xor ecx, ecx
mov dword [esi + 0xa8], eax
xor eax, eax
mov dword [esi + 0xb0], eax
mov eax, edi
mov dword [esi + 0xb4], edx
mov dword [0x100090c0], esi
mov word [0x100090c8], cx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._twain_autodetect.part.0
mov ebx, dword [0x10009008]
test ebx, ebx
jne 0x10002db0
test byte [0x10005018], 1
jne 0x10003050
mov eax, 3
mov edi, 1
mov word [0x100090c8], ax
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x10005018], 1
jne 0x100030d0
mov edi, 0xb
mov word [0x100090c8], di
lea esp, [ebp - 0xc]
mov edi, 1
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov ecx, str.DG_CONTROL_DAT_IDENTITY_MSG_OPENDS_n
mov ebx, str.TWAIN_OpenDS
mov dword [esp + 0xc], ecx
mov esi, 0x10005018
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test byte [0x10005018], 8
je 0x10002d86
mov dword [esp], 3
mov eax, dword [ebp + 0xc]
mov edx, 0x10005018
mov dword [esp + 4], edx
add eax, 0x7a
mov dword [esp + 0x10], eax
mov eax, str.pIdentity_is__s_n
mov dword [esp + 0xc], eax
mov eax, str.TWAIN_OpenDS
mov dword [esp + 8], eax
call sym._wine_dbg_log.constprop.0
jmp 0x10002d86
mov dword [esp + 8], esi
xor eax, eax
mov edi, 5
mov dword [esp + 4], eax
mov word [0x100090c8], di
mov eax, dword [ebx + 0x30]
mov edi, 1
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, edi
dec dword [0x10009018]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, str.no_devs._n
mov ecx, str.TWAIN_OpenDS
mov dword [esp + 0xc], edx
mov ebx, 0x10005018
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x10002f58
test byte [0x10005018], 2
jne 0x10003100
mov dword [esp + 8], esi
xor ebx, ebx
mov ecx, 5
mov dword [esp + 4], ebx
mov edi, 1
mov eax, dword fs:[0x18]
mov word [0x100090c8], cx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, edi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0
mov eax, str.seq_error_n
mov dword [esp + 0xc], eax
mov eax, str.TWAIN_OpenDS
mov dword [esp + 8], eax
mov eax, 0x10005018
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x10002f85
mov eax, dword [0x10009004]
mov eax, dword [eax + edi]
mov edi, str.Failed_to_load_TWAIN_Source__s_n
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], edi
mov dword [esp], 1
mov dword [esp + 0x10], eax
mov eax, str.TWAIN_OpenDS
mov dword [esp + 8], eax
mov eax, 0x10005018
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x10003089
test byte [0x10005018], 1
mov edi, 1
mov word [0x100090c8], 2
je 0x10002f68
mov dword [esp + 0xc], str.Out_of_memory._n
mov dword [esp + 8], str.TWAIN_OpenDS
mov dword [esp + 4], 0x10005018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x10002f68