Function at 0x40ad60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4986f8
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x4cb070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x40add0
xor ecx, ecx
jmp 0x40adef
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ade0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a9c0
push 1
push ecx
lea eax, [ebp - 0x24c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x24c], 0x5c
call fcn.00402bb0
push eax
push 0
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402a40
push str.imagePrintPdf.exe
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x274]
call fcn.00403000
add esp, 4
mov esi, eax
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x40aea9
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x40ae80
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.0040aba0
xor eax, eax
mov dword [ebp - 0x21c], 7
push esi
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.0040a380
mov eax, dword [ebp - 0x260]
cmp eax, 8
jb 0x40aec7
inc eax
lea ecx, [ebp - 0x274]
push eax
push dword [ebp - 0x274]
call fcn.0040aba0
xor eax, eax
mov dword [ebp - 0x260], 7
mov word [ebp - 0x274], ax
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x264], 0
cmp eax, 8
jb 0x40af02
inc eax
lea ecx, [ebp - 0x28c]
push eax
push dword [ebp - 0x28c]
call fcn.0040aba0
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
push 0xb
push str.image2pdf__
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 3
call fcn.00403730
push 0xffffffffffffffff
push 0
push ebx
mov ecx, eax
call fcn.00403860
push 3
push 0x4ae8b4
mov ecx, eax
call fcn.00403730
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00403860
push 1
push 0x4ae8bc
mov ecx, eax
call fcn.00403730
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0
call fcn.004456e0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x230]
lea esi, [ebp - 0x25c]
cmovae edx, dword [ebp - 0x248]
cmp dword [ebp - 0x21c], 8
cmovae ecx, dword [ebp - 0x230]
push ecx
push esi
push 0x4e20
sub esp, 8
push edx
push ecx
mov ecx, dword [eax]
call fcn.00445840
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x24c]
test esi, esi
je 0x40b006
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x40b006
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x40b006
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x254], 1
jne 0x40b026
cmp dword [edi + 0x14], 8
jb 0x40b017
mov edi, dword [edi]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b026
mov bl, 1
jmp 0x40b028
xor bl, bl
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x40b046
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.0040aba0
mov ecx, dword [ebp - 0x21c]
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp ecx, 8
jb 0x40b081
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.0040aba0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00459a5d
mov esp, ebp
pop ebp
ret