Function at 0x45daa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4d37f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2f8
push ebx
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 1
lea edi, [ebp + 0xac]
lea ebx, [ebp + 0x10]
lea eax, [esp + 0xa4]
push eax
push 1
push 0x101
push 2
push edi
push ebx
call dword [ebp + 0xc]
cmp ax, si
jne 0x45e383
xor edx, edx
mov eax, dword [ebp + 0x2e4]
mov cl, byte [0x4f55a8]
mov dword [esp + 0x39], edx
mov dword [esp + 0x3d], edx
cmp eax, esi
mov dword [esp + 0x41], edx
mov byte [esp + 0x38], cl
mov dword [esp + 0x45], edx
mov word [esp + 0x49], dx
mov byte [esp + 0x4b], dl
je 0x45dbc1
lea eax, [esp + 0x30]
mov word [esp + 0x30], 0x1004
push eax
push 1
push 1
push 1
push edi
push ebx
mov word [esp + 0x4a], 0xffff
call dword [ebp + 0xc]
cmp ax, si
jne 0x45dbc1
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ebx, [eax + 2]
cmp ebx, esi
je 0x45dbab
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xa
jb 0x45dbab
lea edx, [esp + 0x38]
test edx, edx
je 0x45dbab
lea eax, [ebx + 2]
push 2
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.004aa3c0
lea edx, [ebx + 5]
push 2
lea eax, [esp + 0x48]
push edx
push eax
call fcn.004aa290
add ebx, 8
push 2
lea ecx, [esp + 0x54]
push ebx
push ecx
call fcn.004aa290
add esp, 0x24
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp + 0x278]
lea ecx, [esp + 0x100]
push ecx
lea eax, [esp + 0x3c]
push edx
lea edi, [ebp + 0x154]
push eax
lea ebx, [ebp + 0x27c]
push 1
push edi
push ebx
call fcn.0045e420
add esp, 0x18
lea ecx, [esp + 0x100]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x45dcde
mov eax, dword [ebp + 0x278]
lea edx, [esp + 0x204]
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
push 2
push edi
push ebx
call fcn.0045e420
add esp, 0x18
lea edx, [esp + 0x100]
lea eax, [esp + 0x204]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x45dc6f
mov ecx, dword fs:[0x2c]
mov edx, dword [0x4f83ec]
mov eax, dword [ecx + edx*4]
lea edx, [esp + 0x100]
mov cl, byte [eax + 0x520]
lea eax, [esp + 0x204]
push ecx
push edx
push eax
call fcn.004728a0
add esp, 0xc
jmp 0x45dcde
mov edx, dword [ebp + 0x278]
lea ecx, [esp + 0x100]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
push 2
push edi
push ebx
mov esi, 3
call fcn.0045e420
add esp, 0x18
lea ecx, [esp + 0x100]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x45dcdc
mov ecx, dword [ebp + 0x278]
lea edx, [esp + 0x100]
push edx
lea edx, [esp + 0x3c]
mov eax, esi
push ecx
push edx
push eax
push edi
push ebx
inc esi
call fcn.0045e420
add esp, 0x18
lea eax, [esp + 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45dca7
xor esi, esi
lea ecx, [esp + 0x4c]
call fcn.004819b0
xor eax, eax
mov dword [esp + 0x310], esi
mov ax, word [ebp + 0x2e0]
mov dword [esp + 0x24], esi
sub eax, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
je 0x45e20a
sub eax, 2
je 0x45dd1d
mov dword [esp + 0x14], esi
jmp 0x45df03
lea ecx, [esp + 0x60]
lea eax, [ebp + 0xac]
push ecx
push 1
push 6
push 1
push eax
lea eax, [ebp + 0x10]
push eax
call dword [ebp + 0xc]
cmp dword [esp + 0x68], esi
ja 0x45dd48
mov ecx, dword [esp + 0x60]
cmp ecx, esi
mov dword [esp + 0x68], ecx
jbe 0x45dd4d
cmp ax, si
je 0x45dd56
mov dword [esp + 0x14], esi
jmp 0x45df03
movsx ecx, word [esp + 0xc6]
mov eax, ecx
imul eax, dword [esp + 0xac]
imul eax, dword [esp + 0xb0]
cdq
and edx, 7
add eax, edx
sar eax, 3
and ecx, 0x80000007
jns 0x45dd86
dec ecx
or ecx, 0xfffffff8
inc ecx
neg ecx
sbb ecx, ecx
neg ecx
add eax, ecx
push eax
mov dword [esp + 0x30], eax
call fcn.004bd49b
movsx ecx, word [esp + 0xca]
mov dword [esp + 0x1c], eax
mov eax, ecx
imul eax, dword [esp + 0xb0]
cdq
and edx, 7
add esp, 4
add eax, edx
mov dword [esp + 0x1c], esi
sar eax, 3
and ecx, 0x80000007
jns 0x45ddcb
dec ecx
or ecx, 0xfffffff8
inc ecx
neg ecx
sbb ecx, ecx
neg ecx
add eax, ecx
mov dword [esp + 0x6e], eax
jmp 0x45dddb
xor esi, esi
mov edx, dword [esp + 0x68]
push edx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov eax, dword [esp + 0x68]
xor edx, edx
mov dword [esp + 0x8a], eax
div dword [esp + 0x6e]
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x86], 9
mov dword [esp + 0x8e], edi
mov word [esp + 0x6c], si
mov dword [esp + 0x72], ecx
mov dword [esp + 0x7a], esi
mov dword [esp + 0x7e], edx
mov dword [esp + 0x76], eax
lea eax, [esp + 0x6c]
push eax
push 1
push 0x103
lea eax, [ebp + 0xac]
push 2
push eax
lea eax, [ebp + 0x10]
push eax
call dword [ebp + 0xc]
mov ebx, eax
xor esi, esi
cmp bx, si
je 0x45de63
cmp bx, 6
jne 0x45ded0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x82]
mov esi, edi
lea edi, [edx + eax]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x82]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
add edi, ecx
push edx
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x82]
xor edx, edx
div dword [esp + 0x6e]
mov ecx, dword [esp + 0x1c]
add ecx, eax
test bx, bx
mov dword [esp + 0x1c], ecx
je 0x45ddd9
xor esi, esi
jmp 0x45dee6
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp bx, 6
je 0x45e022
mov edx, dword [esp + 0x18]
push edx
call fcn.004bd4c4
add esp, 4
mov dword [esp + 0x14], esi
xor esi, esi
cmp dword [esp + 0x50], esi
je 0x45e39d
cmp dword [esp + 0x54], esi
je 0x45e39d
cmp dword [esp + 0x14], esi
je 0x45e39d
mov edx, dword [ebp + 4]
mov eax, dword [ebp]
push esi
push esi
push edx
push eax
lea ecx, [esp + 0xe0]
call fcn.00473c00
push 0xd7
lea ecx, [esp + 0xd4]
mov byte [esp + 0x314], 1
call fcn.00473e80
lea ecx, [esp + 0x100]
push ecx
lea ecx, [esp + 0xd4]
call fcn.00473ec0
cmp dword [ebp + 0x2d0], esi
jne 0x45df90
mov edx, dword [ebp + 0x278]
push DrawStatusTextA
push edx
push str.TWAINEncodeSettings
push str.SoftwareACD_SystemsACDSee
call fcn.004a6150
add esp, 0x10
mov dword [ebp + 0x2d0], eax
mov edx, dword [ebp + 0x2d0]
lea eax, [esp + 0xd0]
push eax
mov eax, dword [ebp + 0x278]
lea ecx, [esp + 0x104]
push 0x4740a0
push ecx
push edx
lea ecx, [esp + 0x5c]
push eax
push ecx
call fcn.004a5f30
add esp, 0x18
lea ecx, [esp + 0xd0]
call fcn.00473fa0
xor eax, eax
mov ax, word [ebp + 0x2e0]
sub eax, esi
je 0x45e2fb
sub eax, 2
jne 0x45e311
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x45dff7
push eax
call fcn.004bd4c4
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x45e008
push eax
call fcn.004bd4c4
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x45e311
push eax
call fcn.004bd4c4
add esp, 4
jmp 0x45e311
push 0x28
call fcn.004bd49b
mov ebx, eax
add esp, 4
mov dword [esp + 0x24], ebx
mov dword [ebx], 0x28
mov eax, dword [esp + 0xac]
mov dword [ebx + 4], eax
mov ecx, dword [esp + 0xb0]
mov dword [ebx + 8], ecx
mov word [ebx + 0xc], 1
mov dx, word [esp + 0xc6]
xor eax, eax
mov word [ebx + 0xe], dx
mov ax, word [ebp + 0x2d8]
sub eax, esi
je 0x45e0b7
dec eax
je 0x45e07b
sub eax, 2
je 0x45e07b
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x20], esi
jmp 0x45e0f2
push 0x400
mov dword [ebx + 0x10], 3
mov dword [ebx + 0x20], 0x100
call fcn.004bd49b
add esp, 4
mov dword [esp + 0x20], eax
xor ecx, ecx
inc eax
mov byte [eax + 1], cl
mov byte [eax], cl
mov byte [eax - 1], cl
mov byte [eax + 2], 0
inc ecx
add eax, 4
cmp ecx, 0x100
jl 0x45e09d
jmp 0x45e0f2
push 8
mov dword [ebx + 0x10], 3
mov dword [ebx + 0x20], 2
call fcn.004bd49b
add esp, 4
mov dword [esp + 0x20], eax
mov byte [eax + 2], 0xff
mov byte [eax + 1], 0xff
mov byte [eax], 0xff
mov byte [eax + 6], 0
mov byte [eax + 5], 0
mov byte [eax + 4], 0
mov byte [eax + 7], 0
mov byte [eax + 3], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebx + 0x20]
lea eax, [ebx + 0x14]
mov dword [ebx + 0x24], esi
mov dword [esp + 0x1c], eax
mov dword [eax], ecx
mov eax, 0x48
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx]
lea ecx, [eax + edx*4]
push ecx
call fcn.004bd49b
mov ecx, dword [ebx]
mov esi, ebx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [ebx + 0x20]
test ebx, ebx
jbe 0x45e148
mov esi, dword [esp + 0x20]
test esi, esi
je 0x45e148
mov ecx, ebx
lea edi, [eax + 0x28]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x50], eax
push edi
lea eax, [esp + 0xa8]
push esi
push eax
mov ecx, ebp
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], 0
call fcn.0045f330
movsx ecx, word [esp + 0xc6]
mov eax, ecx
imul eax, dword [esp + 0xac]
cdq
and edx, 7
add eax, edx
sar eax, 3
and ecx, 0x80000007
jns 0x45e199
dec ecx
or ecx, 0xfffffff8
inc ecx
neg ecx
sbb ecx, ecx
neg ecx
add eax, ecx
mov ecx, dword [edi]
push eax
push ecx
push esi
mov ecx, ebp
call fcn.0045eba0
cmp word [ebp + 0x2d8], 2
jne 0x45df01
mov eax, dword [esp + 0x18]
mov edi, dword [edi]
test eax, eax
je 0x45df01
mov eax, edi
mov ecx, 3
cdq
idiv ecx
test edx, edx
jne 0x45df01
test edi, edi
jle 0x45df01
mov ecx, dword [esp + 0x18]
mov esi, 0xfffffffe
sub esi, ecx
lea eax, [ecx + 2]
mov dl, byte [eax]
mov cl, byte [eax - 2]
mov byte [eax - 2], dl
mov byte [eax], cl
add eax, 3
lea ecx, [esi + eax]
cmp ecx, edi
jl 0x45e1f1
jmp 0x45df01
lea edx, [esp + 0x10]
lea edi, [ebp + 0xac]
push edx
push 1
push 0x104
push 2
lea ebx, [ebp + 0x10]
push edi
push ebx
call dword [ebp + 0xc]
cmp ax, 6
jne 0x45dd14
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x45e2dc
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov eax, dword [ebx + 0x20]
cmp eax, esi
je 0x45e262
cmp eax, 0x100
jbe 0x45e277
mov eax, 0x100
jmp 0x45e277
mov cx, word [ebx + 0xe]
cmp cx, 8
ja 0x45e275
mov eax, 1
shl eax, cl
jmp 0x45e277
xor eax, eax
lea esi, [eax*4]
mov eax, dword [ebx]
add eax, esi
mov dword [esp + 0x2c], esi
push eax
call fcn.004bd49b
mov ecx, dword [ebx]
mov edi, eax
add ecx, esi
mov esi, ebx
mov edx, ecx
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x2c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x50], eax
mov eax, dword [ebx]
add eax, edx
mov dword [esp + 0x58], 0
add eax, ebx
lea ecx, [ebx + 0x14]
mov dword [esp + 0x54], eax
mov edx, dword [ebx]
add edx, ebx
push ecx
lea eax, [esp + 0xa8]
push edx
push eax
mov ecx, ebp
call fcn.0045f330
jmp 0x45df01
lea ecx, [esp + 0x94]
push ecx
push 0x701
push 5
push 1
push edi
push ebx
call dword [ebp + 0xc]
mov dword [esp + 0x14], esi
jmp 0x45df03
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x9c]
lea edi, [ebp + 0xac]
push ecx
push 0x701
push 5
push 1
lea ebx, [ebp + 0x10]
push edi
push ebx
call dword [ebp + 0xc]
cmp ax, si
jne 0x45e3e7
mov edx, dword [ebp + 0x2cc]
mov eax, dword [ebp + 4]
push esi
push esi
push edx
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
cmp word [esp + 0x9c], si
mov byte [esp + 0x310], 0
lea ecx, [esp + 0xd0]
je 0x45e3e0
call fcn.00473c60
lea ecx, [esp + 0x4c]
mov dword [esp + 0x310], 0xffffffff
call fcn.00481dd0
jmp 0x45dad8
lea ecx, [esp + 0x94]
push ecx
push 0x701
push 5
push 1
push edi
push ebx
call dword [ebp + 0xc]
xor eax, eax
jmp 0x45e3c7
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x4c]
mov dword [esp + 0x310], 0xffffffff
call fcn.00481dd0
cmp dword [esp + 0x10], esi
je 0x45e3c3
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x308]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x304
ret
call fcn.00473c60
jmp 0x45e3a5
lea ecx, [esp + 0xd0]
mov byte [esp + 0x310], 0
call fcn.00473c60
lea ecx, [esp + 0x4c]
mov dword [esp + 0x310], 0xffffffff
call fcn.00481dd0
xor eax, eax
jmp 0x45e3c7