Function at 0x499b88
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f97a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x518
mov dword [ebp - 0x524], ecx
mov dword [ebp - 0x1c], 1
push 0x104
lea eax, [ebp - 0x120]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea ecx, [ebp - 0x120]
push ecx
call fcn.004d03c0
add esp, 8
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
call fcn.0044e6ae
cmp eax, 5
jl 0x499c1e
push 0x5396f4
lea ecx, [ebp - 0x120]
push ecx
call fcn.004cf9b0
add esp, 8
push 0x530d68
lea edx, [ebp - 0x120]
push edx
call fcn.004cf9c0
add esp, 8
jmp 0x499c32
push 0x530d74
lea eax, [ebp - 0x120]
push eax
call fcn.004cf9c0
add esp, 8
lea ecx, [ebp - 0x14]
call fcn.00401900
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
jmp 0x499c53
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [0x539800]
jge 0x49a257
push 0x530d80
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x138c
mov ecx, dword [0x53a2a0]
lea edx, [ecx + eax + 0x1aa]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x49a252
push 0x530d88
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x138c
mov ecx, dword [0x53a2a0]
lea edx, [ecx + eax + 0x181]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x499e21
xor eax, eax
mov ax, word [0x539af6]
test eax, eax
je 0x499cff
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x138c
mov edx, dword [0x53a2a0]
lea eax, [edx + ecx + 0x1aa]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push str._PSU__nCnt___d__g_TreeDB_nCnt_.szParent___s
lea edx, [ebp - 0x1a0]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x530dc4
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x1c]
imul ecx, ecx, 0x138c
mov edx, dword [0x53a2a0]
lea eax, [edx + ecx + 0x1aa]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x499dae
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x138c
mov edx, dword [0x53a2a0]
lea eax, [edx + ecx + 0x24e]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x1c]
imul ecx, ecx, 0x138c
mov edx, dword [0x53a2a0]
lea eax, [edx + ecx + 0x181]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x499da0
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x499d9e
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
push str._PSU__break_Resolution_nCnt___d__nValue___d
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x499dae
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x499cff
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x530dfc
lea edx, [ebp - 0x14]
push edx
call fcn.004e1baf
add esp, 0xc
xor eax, eax
mov ax, word [0x539af6]
test eax, eax
je 0x499df5
mov ecx, dword [ebp - 0x1c]
push ecx
push str._PSU__ScanToPC_Resolution___d
lea edx, [ebp - 0x2a0]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401920
push eax
push 0x530e20
push 0x530e2c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x1c], 1
jmp 0x49a1f7
push str.ScanColor
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x138c
mov eax, dword [0x53a2a0]
lea ecx, [eax + edx + 0x181]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x499f2c
push 0x530e44
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x1c]
imul edx, edx, 0x138c
mov eax, dword [0x53a2a0]
lea ecx, [eax + edx + 0x1aa]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x499eb8
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x138c
mov eax, dword [0x53a2a0]
lea ecx, [eax + edx + 0x24e]
push ecx
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x1c]
imul edx, edx, 0x138c
mov eax, dword [0x53a2a0]
lea ecx, [eax + edx + 0x181]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x499ead
jmp 0x499eb8
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
jmp 0x499e4a
mov eax, dword [ebp - 0x1c]
push eax
push 0x530e4c
lea ecx, [ebp - 0x14]
push ecx
call fcn.004e1baf
add esp, 0xc
xor edx, edx
mov dx, word [0x539af6]
test edx, edx
je 0x499f00
mov eax, dword [ebp - 0x1c]
push eax
push str._PSU__ScanToPC_Output___d
lea ecx, [ebp - 0x320]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x320]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401920
push eax
push 0x530e6c
push 0x530e74
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x1c], 1
jmp 0x49a1f7
push str.ShowPreview
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x138c
mov edx, dword [0x53a2a0]
lea eax, [edx + ecx + 0x181]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x49a0b7
push 0x530e8c
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x1c]
imul ecx, ecx, 0x138c
mov edx, dword [0x53a2a0]
lea eax, [edx + ecx + 0x1aa]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x499fc7
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x138c
mov edx, dword [0x53a2a0]
lea eax, [edx + ecx + 0x24e]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x1c]
imul ecx, ecx, 0x138c
mov edx, dword [0x53a2a0]
lea eax, [edx + ecx + 0x181]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x499fbc
jmp 0x499fc7
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
jmp 0x499f56
cmp dword [ebp - 0x1c], 2
jne 0x499fd6
mov dword [ebp - 0x1c], 1
jmp 0x499ff2
cmp dword [ebp - 0x1c], 1
jne 0x499fe5
mov dword [ebp - 0x1c], 0
jmp 0x499ff2
cmp dword [ebp - 0x1c], 0
jne 0x499ff2
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
push edx
push 0x530e94
lea eax, [ebp - 0x14]
push eax
call fcn.004e1baf
add esp, 0xc
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x49a08b
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x138c
mov eax, dword [0x53a2a0]
lea ecx, [eax + edx + 0x24e]
push ecx
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x1c]
imul edx, edx, 0x138c
mov eax, dword [0x53a2a0]
lea ecx, [eax + edx + 0x181]
push ecx
push str._PSU_ScanToPC_Preview_g_TreeDB_nCntnValue_.szID__s__g_TreeDB_nCnt_.szCurrent__s
lea edx, [ebp - 0x3a0]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x3a0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x1c]
push ecx
push str._PSU__ScanToPC_Preview___d
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401920
push eax
push 0x530f08
push 0x530f10
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x1c], 1
jmp 0x49a1f7
push str.ADFDuplex
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x138c
mov eax, dword [0x53a2a0]
lea ecx, [eax + edx + 0x181]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x49a1f7
push str.Scan
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x1c]
imul edx, edx, 0x138c
mov eax, dword [0x53a2a0]
lea ecx, [eax + edx + 0x1aa]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x49a14e
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x138c
mov eax, dword [0x53a2a0]
lea ecx, [eax + edx + 0x24e]
push ecx
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x1c]
imul edx, edx, 0x138c
mov eax, dword [0x53a2a0]
lea ecx, [eax + edx + 0x181]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x49a143
jmp 0x49a14e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
jmp 0x49a0e0
cmp dword [ebp - 0x1c], 3
jne 0x49a15d
mov dword [ebp - 0x1c], 2
jmp 0x49a188
cmp dword [ebp - 0x1c], 2
jne 0x49a16c
mov dword [ebp - 0x1c], 1
jmp 0x49a188
cmp dword [ebp - 0x1c], 1
jne 0x49a17b
mov dword [ebp - 0x1c], 0
jmp 0x49a188
cmp dword [ebp - 0x1c], 0
jne 0x49a188
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
push eax
push 0x530f30
lea ecx, [ebp - 0x14]
push ecx
call fcn.004e1baf
add esp, 0xc
xor edx, edx
mov dx, word [0x539af6]
test edx, edx
je 0x49a1d0
mov eax, dword [ebp - 0x1c]
push eax
push str._PSU__ScanToPC_DuplexScan___d
lea ecx, [ebp - 0x4a0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x4a0]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401920
push eax
push 0x530f54
push 0x530f60
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x1c], 1
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x49a252
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x138c
mov eax, dword [0x53a2a0]
lea ecx, [eax + edx + 0x24e]
push ecx
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x138c
mov eax, dword [0x53a2a0]
lea ecx, [eax + edx + 0x181]
push ecx
push str._RCP__Option:__s_:__s
lea edx, [ebp - 0x520]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x520]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x499c4a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004e812c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret