Function at 0x100e3c50
Capabilities:
Get common file path
Get file version info

Disassembly:
sub esp, 0x3f0
lea eax, [esp + 0x64]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x1c]
push str.TWAIN_32.DLL
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edi, [esp + 0x74]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x73], 0x5c
je 0x100e3ca1
lea edx, [esp + 0x74]
push 0x10122edc
push edx
call esi
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x74]
push eax
push ecx
call esi
lea edx, [esp + 0x178]
push 0x4000
lea eax, [esp + 0x78]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x100e3e95
lea ecx, [esp + 0x18]
lea edx, [esp + 0x74]
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x100e3cf5
push 1
push eax
push 0xfffff034
push 0x240
jmp 0x100e3ebd
call sym.GEAR32PO.OCX_GPb_AF_mem_unique_tag_get
mov ebp, eax
push esi
push ebp
call sym.GEAR32PO.OCX_GPb_AF_mem_alloc
mov edi, eax
test edi, edi
jne 0x100e3d1a
push eax
push esi
push 0xfffffc18
push 0x247
jmp 0x100e3e73
mov eax, dword [esp + 0x18]
push edi
push esi
lea ecx, [esp + 0x7c]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x100e3d41
push 2
push eax
push 0xfffff034
push 0x24c
jmp 0x100e3e52
push 0
lea edx, [esp + 0x44]
push str.VarFileInfoTranslation
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
push edi
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x100e3e44
test eax, eax
je 0x100e3e44
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x200]
mov eax, dword [eax]
mov ecx, eax
shl ecx, 0x10
shr eax, 0x10
or ecx, eax
push ecx
push str.StringFileInfo_08lxFileVersion
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x200]
push eax
push ecx
push edx
push edi
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x100e3e34
test eax, eax
je 0x100e3e34
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.MSVCRT.dll_strtok]
push 0x10122e98
push eax
call esi
add esp, 8
test eax, eax
jne 0x100e3def
push 5
push eax
push 0xfffff034
push 0x26e
jmp 0x100e3e52
mov ebx, dword [sym.imp.MSVCRT.dll_atoi]
push eax
call ebx
mov ecx, dword [esp + 0x408]
add esp, 4
push 0x10122e98
push 0
mov dword [ecx], eax
call esi
add esp, 8
test eax, eax
jne 0x100e3e23
push 6
push eax
push 0xfffff034
push 0x28a
jmp 0x100e3e52
push eax
call ebx
mov edx, dword [esp + 0x40c]
add esp, 4
mov dword [edx], eax
jmp 0x100e3e5c
push 4
push 0
push 0xfffff034
push 0x264
jmp 0x100e3e52
push 3
push 0
push 0xfffff034
push 0x25b
push str.C:_accusoftgear_sourceSCANNERTWAIN_twain.c
call fcn.10046940
push edi
push ebp
call sym.GEAR32PO.OCX_GPb_AF_mem_free
test eax, eax
je 0x100e3e7d
push ebp
push eax
push 0xfffff42a
push 0x2ab
push str.C:_accusoftgear_sourceSCANNERTWAIN_twain.c
call fcn.10046940
push ebp
call sym.GEAR32PO.OCX_GPb_AF_mem_free_all
call sym.GEAR32PO.OCX_GPb_AF_error_check
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3f0
ret 8
mov eax, dword [esp + 0x404]
mov ecx, dword [esp + 0x408]
push 0
push 0
mov dword [eax], 0
push 0xfffff03d
mov dword [ecx], 0
push 0x2b4
push str.C:_accusoftgear_sourceSCANNERTWAIN_twain.c
call fcn.10046940
call sym.GEAR32PO.OCX_GPb_AF_error_check
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3f0
ret 8